โ† API reference
Query / devices

metricProjection

Compute a linear regression over historical data and project forward. Returns slope, R-squared, projected values with confidence intervals, and optionally the estimated time a target value will be reached. Requires metric:read permission.

Arguments

Projection parameters

Returns MetricProjectionResult!

Scalar fields at a glance

metricIdMetricID!
slopeFloat!
interceptFloat!
rSquaredFloat!
sampleCountInt!
targetReachesAtString
โ†— View the complete MetricProjectionResult type

Explore in a view

Device Fleet
View exact SDL
"""
Compute a linear regression over historical data and project forward. Returns slope, R-squared, projected values with confidence intervals, and optionally the estimated time a target value will be reached. Requires metric:read permission.
"""
metricProjection(
  """Projection parameters"""
  input: MetricProjectionInput!
): MetricProjectionResult! @topic(names: ["devices"])

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