AggregateMetricPointsInput
Input for time-bucketed metric aggregation
Fields
Metric to aggregate
Start of time range (ISO8601, required)
End of time range (ISO8601, required)
Time bucket interval (e.g. HOUR, DAY)
Possible values (8)
SECONDOne-second buckets
MINUTEOne-minute buckets
FIVE_MINUTESFive-minute buckets
FIFTEEN_MINUTESFifteen-minute buckets
HOUROne-hour buckets
DAYOne-day buckets
WEEKOne-week buckets
MONTHOne-month buckets
Aggregate functions to compute (default: [AVG])
Possible values (11)
COUNTNumber of data points in the bucket
AVGAverage value (delta for counter metrics)
MINMinimum value
MAXMaximum value
SUMSum of all values
FIRSTFirst value in the bucket (time-ordered)
LASTLast value in the bucket (time-ordered)
STDDEVStandard deviation of values
TIME_WEIGHTED_AVGTime-weighted average (Toolkit: time_weight)
DELTACounter delta with reset detection (Toolkit: counter_agg)
RATECounter rate per second with reset detection (Toolkit: counter_agg)
Gap-fill strategy for missing time buckets (default: NONE). Requires Toolkit.
Possible values (3)
NONENo gap filling — missing buckets are omitted
LOCFLast Observation Carried Forward — fill gaps with last known value
INTERPOLATELinear 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
}