Prometheus Rule Args
data class PrometheusRuleArgs(val actions: Output<List<PrometheusRuleGroupActionArgs>>? = null, val alert: Output<String>? = null, val annotations: Output<Map<String, String>>? = null, val enabled: Output<Boolean>? = null, val expression: Output<String>, val for: Output<String>? = null, val labels: Output<Map<String, String>>? = null, val record: Output<String>? = null, val resolveConfiguration: Output<PrometheusRuleResolveConfigurationArgs>? = null, val severity: Output<Int>? = null) : ConvertibleToJava<PrometheusRuleArgs>
An Azure Prometheus alerting or recording rule.
Constructors
Link copied to clipboard
constructor(actions: Output<List<PrometheusRuleGroupActionArgs>>? = null, alert: Output<String>? = null, annotations: Output<Map<String, String>>? = null, enabled: Output<Boolean>? = null, expression: Output<String>, for: Output<String>? = null, labels: Output<Map<String, String>>? = null, record: Output<String>? = null, resolveConfiguration: Output<PrometheusRuleResolveConfigurationArgs>? = null, severity: Output<Int>? = null)
Properties
Link copied to clipboard
Actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
Link copied to clipboard
The annotations clause specifies a set of informational labels that can be used to store longer additional information such as alert descriptions or runbook links. The annotation values can be templated.
Link copied to clipboard
The PromQL expression to evaluate. https://prometheus.io/docs/prometheus/latest/querying/basics/. Evaluated periodically as given by 'interval', and the result recorded as a new set of time series with the metric name as given by 'record'.
Link copied to clipboard
Defines the configuration for resolving fired alerts. Only relevant for alerts.