PrometheusAlertRule

class PrometheusAlertRule : KotlinCustomResource

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>

Properties

Link copied to clipboard

The annotations of the alert rule. See annotations below.

Link copied to clipboard
val clusterId: Output<String>

The ID of the cluster.

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

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>

The duration of the alert.

Link copied to clipboard
val expression: Output<String>

The alert rule expression that follows the PromQL syntax.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

The labels of the resource. See labels below.

Link copied to clipboard
val message: Output<String>

The message of the alert notification.

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

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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Output<Int>

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

Link copied to clipboard
val type: Output<String>

The type of the alert rule.

Link copied to clipboard
val urn: Output<String>