← API reference
CANONICAL TYPE REFERENCE

MetricTrendOutput

Regression-based trend analysis over daily metric values

slopeFloat!

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.

rSquaredFloat!

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

Number of days with data used in the regression

directionString!

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

avgValueFloat!

Mean daily value over the trend window

Standard deviation of daily values. Null when insufficient data.

View exact 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
}

One stable address across all schema views. Follow a field’s type to explore connections between domains.