← All types
Ob Object

MetricTrendOutput

Regression-based trend analysis over daily metric values

Fields

slope

Float!Non-null

Slope of daily averages over time (value change per second of epoch time)

Pearson correlation coefficient (-1 to 1). Values near ±1 indicate strong linear trend.

rSquared

Float!Non-null

R² coefficient of determination (0 to 1). Higher means the trend explains more variance.

sampleDays

Int!Non-null

Number of days with data used in the regression

Derived trend direction: rising, falling, stable, or insufficient_data. Uses |correlation| >= 0.3 as significance threshold.

avgValue

Float!Non-null

Mean daily value over the trend window

Standard deviation of daily values. Null when insufficient data.

Referenced by (1)
Exact type SDL
"""Regression-based trend analysis over daily metric values"""
type MetricTrendOutput {
  """
  Slope of daily averages over time (value change per second of epoch time)
  """
  slope: Float!
  """
  Pearson correlation coefficient (-1 to 1). Values near ±1 indicate strong linear trend.
  """
  correlation: Float!
  """
  R² coefficient of determination (0 to 1). Higher means the trend explains more variance.
  """
  rSquared: Float!
  """Number of days with data used in the regression"""
  sampleDays: Int!
  """
  Derived trend direction: rising, falling, stable, or insufficient_data. Uses |correlation| >= 0.3 as significance threshold.
  """
  direction: String!
  """Mean daily value over the trend window"""
  avgValue: Float!
  """Standard deviation of daily values. Null when insufficient data."""
  stddevValue: Float
}