Get instance metrics
Returns time-series metrics and current distributions for an instance. Supports incremental fetching via the "since" parameter.
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
instance_id*stringThe UUID of the SoulFire instance to get metrics for.
uuidsince?|If set, only return snapshots taken after this timestamp. Used for incremental fetching to reduce payload size.
Response containing time-series metrics and current distributions.
application/json- response
Response containing time-series metrics and current distributions.
snapshots*array<>Time-series snapshots ordered oldest to newest. Contains up to 600 snapshots (30 minutes at 3-second intervals). If the request included a "since" timestamp, only newer snapshots are returned.
distributions*Current-state distributions computed from the latest bot data.
curl -X GET 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/metrics'{
"snapshots": [
{
"timestamp": "2019-08-24T14:15:22Z",
"botsOnline": 0,
"botsTotal": 0,
"packetsSentTotal": "string",
"packetsReceivedTotal": "string",
"bytesSentTotal": "string",
"bytesReceivedTotal": "string",
"packetsSentPerSecond": 0.1,
"packetsReceivedPerSecond": 0.1,
"bytesSentPerSecond": 0.1,
"bytesReceivedPerSecond": 0.1,
"avgTickDurationMs": 0.1,
"maxTickDurationMs": 0.1,
"avgHealth": 0.1,
"avgFoodLevel": 0.1,
"totalLoadedChunks": 0,
"totalTrackedEntities": 0,
"connections": 0,
"disconnections": 0
}
],
"distributions": {
"healthHistogram": [
0
],
"foodHistogram": [
0
],
"dimensionCounts": {
"property1": 0,
"property2": 0
},
"gameModeCounts": {
"property1": 0,
"property2": 0
},
"botPositions": [
{
"x": 0.1,
"z": 0.1,
"dimension": "string"
}
]
}
}Was this page helpful?
Refresh Minecraft account POST
Refreshes the authentication tokens for an existing Minecraft account. Used to renew expired access tokens using stored refresh tokens. For Microsoft accounts, this refreshes the Minecraft token, profile, and player certificates. For offline accounts, returns the account unchanged (offline accounts never expire).
Get server metrics GET
Returns server-level system metrics (CPU, memory, threads, GC, aggregate bots). Supports incremental fetching via the "since" parameter.
