Skip to navigation

Get categorical stats time series

View as Markdown

Returns aligned daily categorical chart data for a customer, node group, or compute zone over a trailing window ending at the current server time. Historical points come from stored stats. The final point is calculated live at request time and replaces any stored data for the current day. A missing historical record retains its scheduled timestamp and has null at the same index in every series; zero is an observed count. timestamps[i] identifies the point for every series.values[i], and all arrays have the same length. The agentStatus stat currently returns Online and Offline series in that order and requires dataSource. Healthy liveness counts as Online; every other, missing, or unrecognized liveness value counts as Offline.

Query parameters

nameenumRequired
The stat to query
Allowed values:
dataSourceenumOptional
Data source to query. Required for agentStatus.
Allowed values:
groupByenumRequired
The aggregation level to group stats by
Allowed values:
groupIdstringOptional

Entity ID. Required when groupBy is nodegroup or computezone; omit when groupBy is customer.

windowstringRequired

Trailing daily window ending at the current server time. Must be a positive whole multiple of 24h and cannot exceed 8760h (365 days); use 240h for 10 days. ‘d’ is not supported.

Response

Categorical time series for the requested stat
serieslist of objectsOptional
timeRangeobjectOptional
timestampslist of integersOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
499
Client Closed Request Error
500
Internal Server Error
503
Service Unavailable Error