← API reference
CANONICAL TYPE REFERENCE

MetricAggregateFunction

Aggregate functions available for metric analytics

COUNT

Number of data points in the bucket

AVG

Average value (delta for counter metrics)

MIN

Minimum value

MAX

Maximum value

SUM

Sum of all values

FIRST

First value in the bucket (time-ordered)

LAST

Last value in the bucket (time-ordered)

STDDEV

Standard deviation of values

TIME_WEIGHTED_AVG

Time-weighted average (Toolkit: time_weight)

DELTA

Counter delta with reset detection (Toolkit: counter_agg)

RATE

Counter rate per second with reset detection (Toolkit: counter_agg)

View exact SDL
"""Aggregate functions available for metric analytics"""
enum MetricAggregateFunction {
  """Number of data points in the bucket"""
  COUNT
  """Average value (delta for counter metrics)"""
  AVG
  """Minimum value"""
  MIN
  """Maximum value"""
  MAX
  """Sum of all values"""
  SUM
  """First value in the bucket (time-ordered)"""
  FIRST
  """Last value in the bucket (time-ordered)"""
  LAST
  """Standard deviation of values"""
  STDDEV
  """Time-weighted average (Toolkit: time_weight)"""
  TIME_WEIGHTED_AVG
  """Counter delta with reset detection (Toolkit: counter_agg)"""
  DELTA
  """Counter rate per second with reset detection (Toolkit: counter_agg)"""
  RATE
}

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