Skip to Content
Xeonr Developer Docs
API Specificationxmb.api.v1.StatsService

Get stat series

POST
/xmb.api.v1.StatsService/GetStatSeries

Returns time series for one hub, grabber or the server itself — resource, network, and playback metrics — at the storage resolution matching the range.

Required scopes: xmb:admin

Authorization

BearerAuth
AuthorizationBearer <token>

An access token issued by the xeonr identity provider.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

serverSlug?string

The server whose entity is being read. Required: even a platform operator reads these one server at a time.

Lengthlength <= 64
entityKind?string

What kind of entity a series belongs to.

Value in"STATS_ENTITY_KIND_UNSPECIFIED" | "STATS_ENTITY_KIND_HUB" | "STATS_ENTITY_KIND_GRABBER" | "STATS_ENTITY_KIND_SERVER" | "STATS_ENTITY_KIND_TUNER"
entityUuid?string

The hub or grabber uuid. Empty when entity_kind is SERVER.

Lengthlength <= 64
metrics?array<>

Which series to return. Unknown names come back as all-gap series rather than failing the call, so a UI ahead of its API degrades to an empty panel instead of a broken page.

Items1 <= items <= 32
start?string

A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (Z); input may use an offset from UTC.

Formatdate-time
end?string

A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (Z); input may use an offset from UTC.

Formatdate-time
stepSeconds?integer

The bucket width the caller would like, in seconds. Advisory: the platform serves the nearest tier it stores (60, 300, 3600, 86400) and reports the one it chose. Zero lets the platform pick from the range.

Rangevalue <= 604800
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.StatsService/GetStatSeries" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "timestamps": [
    "2026-10-22T06:00:00Z",
    "2026-10-22T06:05:00Z",
    "2026-10-22T06:10:00Z"
  ],
  "series": [
    "map[defined:[true false true] metric:cpu_used_percent values:[12.5 0 31.25]]"
  ],
  "stepSeconds": "300"
}