Prometheus Alert Rule Args
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 in v1.136.0+.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.arms.PrometheusAlertRule;
import com.pulumi.alicloud.arms.PrometheusAlertRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new PrometheusAlertRule("example", PrometheusAlertRuleArgs.builder()
.clusterId("example_value")
.duration("example_value")
.expression("example_value")
.message("example_value")
.prometheusAlertRuleName("example_value")
.build());
}
}
Content copied to clipboard
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>
Content copied to clipboard
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)