AlertPrometheusRuleGroupRuleArgs

data class AlertPrometheusRuleGroupRuleArgs(val actions: Output<List<AlertPrometheusRuleGroupRuleActionArgs>>? = null, val alert: Output<String>? = null, val alertResolution: Output<AlertPrometheusRuleGroupRuleAlertResolutionArgs>? = 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 severity: Output<Int>? = null) : ConvertibleToJava<AlertPrometheusRuleGroupRuleArgs>

Constructors

Link copied to clipboard
constructor(actions: Output<List<AlertPrometheusRuleGroupRuleActionArgs>>? = null, alert: Output<String>? = null, alertResolution: Output<AlertPrometheusRuleGroupRuleAlertResolutionArgs>? = 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, severity: Output<Int>? = null)

Properties

Link copied to clipboard

An action block as defined below.

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

Specifies the Alert rule name.

Link copied to clipboard

An alert_resolution block as defined below.

Link copied to clipboard
val annotations: Output<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: Output<Boolean>? = null

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

Link copied to clipboard
val expression: Output<String>

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: Output<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: Output<Map<String, String>>? = null

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

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

Specifies the recorded metrics name.

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

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

Functions

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