Skip to main content

equinix_fabric_stream_alert_rule (Data Source)

Fabric V4 API compatible data source that allows user to fetch Equinix Fabric Stream Alert Rule by Stream Id and Alert Rule Id ~> Note Equinix Fabric v4 Stream Alert Rule By ID datasource is currently in Beta. The interfaces related to equinix_fabric_stream_alert_rule may change ahead of general availability. Please, do not hesitate to report any problems that you experience by opening a new issue https://github.com/equinix/terraform-provider-equinix/issues/new?template=bug.md

Additional Documentation:

Example Usage

data "equinix_fabric_stream_alert_rule" "data_stream_alert_rule" {
stream_id = "<uuid_of_stream>"
stream_alert_rule_id = "<uuid_of_stream_alert_rule>"
}

output "stream_alert_rule_type" {
value = data.equinix_fabric_stream_alert_rule.alert_rule.type
}

output "stream_alert_rule_id" {
value = data.equinix_fabric_stream_alert_rule.alert_rule.uuid
}

output "stream_alert_rule_state" {
value = data.equinix_fabric_stream_alert_rule.alert_rule.state
}

output "stream_alert_rule_stream_id" {
value = data.equinix_fabric_stream_alert_rule.alert_rule.stream_id
}

Schema

Required

  • alert_rule_id (String) The uuid of the stream alert rule
  • stream_id (String) The uuid of the stream that is the target of the stream alert rule

Optional

Read-Only

  • change_log (Attributes) Details of the last change on the stream resource (see below for nested schema)
  • description (String) Customer-provided stream alert rule description
  • enabled (Boolean) Stream subscription enabled status
  • href (String) Equinix assigned URI of the stream alert rule resource
  • id (String) The unique identifier of the resource
  • name (String) Customer-provided stream alert rule name
  • resource_selector (Attributes) Lists of metrics to be included/excluded on the stream alert rule (see below for nested schema)
  • state (String) Value representing provisioning status for the stream resource
  • type (String) Type of the stream alert rule
  • uuid (String) Equinix assigned unique identifier of the stream subscription resource

Nested Schema for detection_method

Required:

  • type (String) Stream Alert Rule detection method type

Optional:

  • critical_threshold (String) Stream alert rule metric critical threshold
  • operand (String) Stream alert rule metric operand
  • warning_threshold (String) Stream alert rule metric warning threshold
  • window_size (String) Stream alert rule metric window size

Nested Schema for metric_selector

Required:

  • include (List of String) List of metrics to include

Nested Schema for change_log

Read-Only:

  • created_by (String) User name of creator of the stream resource
  • created_by_email (String) Email of creator of the stream resource
  • created_by_full_name (String) Legal name of creator of the stream resource
  • created_date_time (String) Creation time of the stream resource
  • deleted_by (String) User name of deleter of the stream resource
  • deleted_by_email (String) Email of deleter of the stream resource
  • deleted_by_full_name (String) Legal name of deleter of the stream resource
  • deleted_date_time (String) Deletion time of the stream resource
  • updated_by (String) User name of last updater of the stream resource
  • updated_by_email (String) Email of last updater of the stream resource
  • updated_by_full_name (String) Legal name of last updater of the stream resource
  • updated_date_time (String) Last update time of the stream resource

Nested Schema for resource_selector

Read-Only:

  • include (List of String) List of metrics to include
Was this page helpful?