Request createImpactMetricsConfigSchema
metricName string Required
The Prometheus metric series to query. It includes both unleash prefix and metric type and display name
timeRange enum Required
The time range for the metric data.
Allowed values: hour day week month
yAxisMin enum Required
Whether the chart should begin at zero on the y-axis.
Allowed values: auto zero
aggregationMode enum Required
The aggregation mode for the metric data.
labelSelectors map from strings to lists of strings Required
The selected labels and their values for filtering the metric data.
id string Optional
The unique ULID identifier for this impact metric configuration. Generated automatically if not provided.
title string Optional
Optional title for the impact metric chart.
source enum Optional
The Prometheus data source for this metric. Defaults to internal.
Allowed values: internal external
Response impactMetricsConfigSchema
id string
The unique ULID identifier for this impact metric configuration. Generated automatically if not provided.
metricName string
The Prometheus metric series to query. It includes both unleash prefix and metric type and display name
timeRange enum
The time range for the metric data.
Allowed values: hour day week month
aggregationMode enum
The aggregation mode for the metric data.
labelSelectors map from strings to lists of strings
The selected labels and their values for filtering the metric data.
displayName string
The human readable display name of the impact metric
yAxisMin enum
Whether the chart should begin at zero on the y-axis.
Allowed values: auto zero
source enum
The Prometheus data source for this metric. Defaults to internal.
Allowed values: internal external
step enum or null
The step interval for querying metrics data. This is automatically calculated from the timeRange and stored when the metric is created or updated.
Allowed values: 1m 15m 3h 1d
title string
Optional title for the impact metric chart.
mode enum
The access mode for this impact metric configuration: “read” when referenced by a safeguard, “write” otherwise.
Allowed values: read write