alicloud_arms_prometheus_alert_rule

Nivis 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_id
  • duration
  • expression
  • message
  • prometheus_alert_rule_name
Optional arguments
  • dispatch_rule_id (defaults to null)
  • id (defaults to null)
  • notify_type (defaults to null)
  • type (defaults to null)
  • annotations (defaults to null)
  • labels (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • prometheus_alert_rule_id
  • status
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.