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
inputMetricProjectionInput!Projection parameters
Returns MetricProjectionResult!
Scalar fields at a glance
metricIdMetricID!slopeFloat!interceptFloat!rSquaredFloat!sampleCountInt!targetReachesAtStringExplore in a view
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.