AlarmPrometheusArgs

data class AlarmPrometheusArgs(val annotations: Output<Map<String, Any>>? = null, val level: Output<String>? = null, val promQl: Output<String>? = null, val times: Output<Int>? = null) : ConvertibleToJava<AlarmPrometheusArgs>

Constructors

Link copied to clipboard
fun AlarmPrometheusArgs(annotations: Output<Map<String, Any>>? = null, level: Output<String>? = null, promQl: Output<String>? = null, times: Output<Int>? = null)

Functions

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

Properties

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

The annotations of the Prometheus alert rule. When a Prometheus alert is triggered, the system renders the annotated keys and values to help you understand the metrics and alert rule.

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

The level of the alert. Valid values: Critical, Warn, Info.

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

The PromQL query statement. Note: The data obtained by using the PromQL query statement is the monitoring data. You must include the alert threshold in this statement.

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

The number of consecutive triggers. If the number of times that the metric values meet the trigger conditions reaches the value of this parameter, CloudMonitor sends alert notifications.