โ† API reference
Query / devices

getMetricPoints

Query time-series data points for a metric. Returns a flat array ordered by timestamp, with summary stats. Requires metric:read permission.

Arguments

metricIdMetricID!

Metric ID to query points for

Start of time range (ISO8601)

End of time range (ISO8601)

limitInt

Maximum number of points to return (default 1000)

Returns MetricPointsResult!

Scalar fields at a glance

metricIdMetricID!
countInt!
minFloat
maxFloat
avgFloat
โ†— View the complete MetricPointsResult type

Explore in a view

Device Fleet
View exact SDL
"""
Query time-series data points for a metric. Returns a flat array ordered by timestamp, with summary stats. Requires metric:read permission.
"""
getMetricPoints(
  """Metric ID to query points for"""
  metricId: MetricID!
  """Start of time range (ISO8601)"""
  from: ISO8601
  """End of time range (ISO8601)"""
  to: ISO8601
  """Maximum number of points to return (default 1000)"""
  limit: Int
): MetricPointsResult! @topic(names: ["devices"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.