← All types
In Input object

AggregateMetricPointsInput

Input for time-bucketed metric aggregation

Fields

Metric to aggregate

from

ISO8601!Required

Start of time range (ISO8601, required)

to

ISO8601!Required

End of time range (ISO8601, required)

Time bucket interval (e.g. HOUR, DAY)

Possible values (8)
SECOND

One-second buckets

MINUTE

One-minute buckets

FIVE_MINUTES

Five-minute buckets

FIFTEEN_MINUTES

Fifteen-minute buckets

HOUR

One-hour buckets

DAY

One-day buckets

WEEK

One-week buckets

MONTH

One-month buckets

Aggregate functions to compute (default: [AVG])

Possible values (11)
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)

Filter by tag key-value pairs (only points matching all tags are included)

Gap-fill strategy for missing time buckets (default: NONE). Requires Toolkit.

Possible values (3)
NONE

No gap filling — missing buckets are omitted

LOCF

Last Observation Carried Forward — fill gaps with last known value

INTERPOLATE

Linear interpolation between surrounding values

Referenced by (1)
Exact type SDL
"""Input for time-bucketed metric aggregation"""
input AggregateMetricPointsInput {
  """Metric to aggregate"""
  metricId: MetricID!
  """Start of time range (ISO8601, required)"""
  from: ISO8601!
  """End of time range (ISO8601, required)"""
  to: ISO8601!
  """Time bucket interval (e.g. HOUR, DAY)"""
  interval: MetricInterval!
  """Aggregate functions to compute (default: [AVG])"""
  aggregates: [MetricAggregateFunction!]
  """
  Filter by tag key-value pairs (only points matching all tags are included)
  """
  tags: [DictionaryInput!]
  """
  Gap-fill strategy for missing time buckets (default: NONE). Requires Toolkit.
  """
  gapfill: GapfillMode
}