GetPrometheusAlertRulesRule

data class GetPrometheusAlertRulesRule(val annotations: List<GetPrometheusAlertRulesRuleAnnotation>, val clusterId: String, val dispatchRuleId: String, val duration: String, val expression: String, val id: String, val labels: List<GetPrometheusAlertRulesRuleLabel>, val message: String, val notifyType: String, val prometheusAlertRuleId: String, val prometheusAlertRuleName: String, val status: Int, val type: String)

Constructors

Link copied to clipboard
constructor(annotations: List<GetPrometheusAlertRulesRuleAnnotation>, clusterId: String, dispatchRuleId: String, duration: String, expression: String, id: String, labels: List<GetPrometheusAlertRulesRuleLabel>, message: String, notifyType: String, prometheusAlertRuleId: String, prometheusAlertRuleName: String, status: Int, type: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The annotations of the alert rule.

Link copied to clipboard

The ID of the cluster.

Link copied to clipboard

The ID of the notification policy. This parameter is required when the notify_type parameter is set to DISPATCH_RULE.

Link copied to clipboard

The duration of the alert.

Link copied to clipboard

The alert rule expression that follows the PromQL syntax..

Link copied to clipboard
val id: String

The ID of the Prometheus Alert Rule.

Link copied to clipboard

The labels of the resource.

Link copied to clipboard

The message of the alert notification.

Link copied to clipboard

The method of sending the alert notification. Valid values: ALERT_MANAGER, DISPATCH_RULE.

Link copied to clipboard

The first ID of the resource.

Link copied to clipboard

The name of the resource.

Link copied to clipboard
val status: Int

The status of the resource. Valid values: 0, 1.

Link copied to clipboard

The type of the alert rule.