AlertPrometheusRuleGroupRule

data class AlertPrometheusRuleGroupRule(val actions: List<AlertPrometheusRuleGroupRuleAction>? = null, val alert: String? = null, val alertResolution: AlertPrometheusRuleGroupRuleAlertResolution? = null, val annotations: Map<String, String>? = null, val enabled: Boolean? = null, val expression: String, val for: String? = null, val labels: Map<String, String>? = null, val record: String? = null, val severity: Int? = null)

Constructors

Link copied to clipboard
constructor(actions: List<AlertPrometheusRuleGroupRuleAction>? = null, alert: String? = null, alertResolution: AlertPrometheusRuleGroupRuleAlertResolution? = null, annotations: Map<String, String>? = null, enabled: Boolean? = null, expression: String, for: String? = null, labels: Map<String, String>? = null, record: String? = null, severity: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

An action block as defined below.

Link copied to clipboard
val alert: String? = null

Specifies the Alert rule name.

Link copied to clipboard

An alert_resolution block as defined below.

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

Specifies a set of informational labels that can be used to store longer additional information such as alert descriptions or runbook links.

Link copied to clipboard
val enabled: Boolean? = null

Is this rule enabled? Possible values are true and false.

Link copied to clipboard

Specifies the Prometheus Query Language expression to evaluate. For more details see this doc. Evaluate at the period given by interval and record the result as a new set of time series with the metric name given by record.

Link copied to clipboard
val for: String? = null

Specifies the amount of time alert must be active before firing, represented in ISO 8601 duration format.

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

Specifies the labels to add or overwrite before storing the result.

Link copied to clipboard
val record: String? = null

Specifies the recorded metrics name.

Link copied to clipboard
val severity: Int? = null

Specifies the severity of the alerts fired by the rule. Possible values are between 0 and 4.