← All types
In Input object

CompareMetricsInput

Input for multi-metric comparison

Fields

metricIds

[MetricID!]!Required

Metrics to compare (2-10)

from

ISO8601!Required

Start of time range (ISO8601)

to

ISO8601!Required

End of time range (ISO8601)

Time bucket interval

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 (applied to all metrics)

Referenced by (1)
Exact type SDL
"""Input for multi-metric comparison"""
input CompareMetricsInput {
  """Metrics to compare (2-10)"""
  metricIds: [MetricID!]!
  """Start of time range (ISO8601)"""
  from: ISO8601!
  """End of time range (ISO8601)"""
  to: ISO8601!
  """Time bucket interval"""
  interval: MetricInterval!
  """Aggregate functions to compute (default: [AVG])"""
  aggregates: [MetricAggregateFunction!]
  """Filter by tag key-value pairs (applied to all metrics)"""
  tags: [DictionaryInput!]
}