AlarmPrometheus

data class AlarmPrometheus(val annotations: Map<String, String>? = null, val level: String? = null, val promQl: String? = null, val times: Int? = null)

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val annotations: Map<String, String>? = 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: String? = null

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

Link copied to clipboard
val promQl: 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: 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.