PrometheusRuleArgs

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
val alert: Output<String>? = null

Alert rule name.

Link copied to clipboard
val annotations: Output<Map<String, String>>? = null

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
val enabled: Output<Boolean>? = null

Enable/disable rule.

Link copied to clipboard
val expression: Output<String>

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
val for: Output<String>? = null

The amount of time alert must be active before firing.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

Labels to add or overwrite before storing the result.

Link copied to clipboard
val record: Output<String>? = null

Recorded metrics name.

Link copied to clipboard

Defines the configuration for resolving fired alerts. Only relevant for alerts.

Link copied to clipboard
val severity: Output<Int>? = null

The severity of the alerts fired by the rule. Must be between 0 and 4.

Functions

Link copied to clipboard
open override fun toJava(): PrometheusRuleArgs