alicloud_arms_prometheus_alert_ruleNivis Nix constructor for the alicloud_arms_prometheus_alert_rule resource (provider alicloud). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.
Constructor
{
name,
cluster_id,
duration,
expression,
message,
prometheus_alert_rule_name,
dispatch_rule_id ? null,
id ? null,
notify_type ? null,
type ? null,
annotations ? null,
labels ? null,
overrides ? {}
}Required arguments
cluster_iddurationexpressionmessageprometheus_alert_rule_name
Optional arguments
dispatch_rule_id(defaults tonull)id(defaults tonull)notify_type(defaults tonull)type(defaults tonull)annotations(defaults tonull)labels(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
prometheus_alert_rule_idstatus
Example
alicloud_arms_prometheus_alert_rule {
name = "arms_prometheus_alert_rule";
cluster_id = …; # required
duration = …; # required
expression = …; # required
message = …; # required
prometheus_alert_rule_name = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.