PrometheusAlertRuleArgs

data class PrometheusAlertRuleArgs(val annotations: Output<List<PrometheusAlertRuleAnnotationArgs>>? = null, val clusterId: Output<String>? = null, val dispatchRuleId: Output<String>? = null, val duration: Output<String>? = null, val expression: Output<String>? = null, val labels: Output<List<PrometheusAlertRuleLabelArgs>>? = null, val message: Output<String>? = null, val notifyType: Output<String>? = null, val prometheusAlertRuleName: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<PrometheusAlertRuleArgs>

Provides a Application Real-Time Monitoring Service (ARMS) Prometheus Alert Rule resource. For information about Application Real-Time Monitoring Service (ARMS) Prometheus Alert Rule and how to use it, see What is Prometheus Alert Rule.

NOTE: Available since v1.136.0.

Import

Application Real-Time Monitoring Service (ARMS) Prometheus Alert Rule can be imported using the id, e.g.

$ pulumi import alicloud:arms/prometheusAlertRule:PrometheusAlertRule example <cluster_id>:<prometheus_alert_rule_id>

Constructors

Link copied to clipboard
fun PrometheusAlertRuleArgs(annotations: Output<List<PrometheusAlertRuleAnnotationArgs>>? = null, clusterId: Output<String>? = null, dispatchRuleId: Output<String>? = null, duration: Output<String>? = null, expression: Output<String>? = null, labels: Output<List<PrometheusAlertRuleLabelArgs>>? = null, message: Output<String>? = null, notifyType: Output<String>? = null, prometheusAlertRuleName: Output<String>? = null, type: Output<String>? = null)

Functions

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

Properties

Link copied to clipboard

The annotations of the alert rule. See annotations below.

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

The ID of the cluster.

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

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

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

The duration of the alert.

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

The alert rule expression that follows the PromQL syntax.

Link copied to clipboard

The labels of the resource. See labels below.

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

The message of the alert notification.

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

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

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

The name of the resource.

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

The type of the alert rule.