Query impact metrics time series data
Enterprise feature
Queries an impact metric source for time series data based on the provided metric name, time range, and aggregation mode.
Authentication
Authorizationstring
API key needed to access this API
OR
AuthorizationBearer
API key needed to access this API, in Bearer token format
Query parameters
metricName
The Prometheus metric name to query.
range
The time range for the query.
aggregationMode
The aggregation mode for the query.
labels
A JSON-encoded object mapping label names to arrays of label values to filter by.
mode
Query mode. edit (default) also returns the available labels for the metric (used by filter UIs). display skips label discovery and returns time-series data only (cheaper; use for dashboard rendering).
Allowed values:
source
Whether the metric comes from the internal Unleash impact metrics or an external source.
Allowed values:
Response
impactMetricsDataSchema
start
The start of the queried time range as a Unix epoch timestamp in seconds.
end
The end of the queried time range as a Unix epoch timestamp in seconds.
step
The step interval between data points.
series
Array of time series results.
labels
Available label values for the queried metric, keyed by label name.
debug
Internal debug information. This field is not part of the public API and may be removed without notice.
Errors
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error