# equinix\_fabric\_stream\_alert\_rules (Data Source) Fabric V4 API compatible data source that allows user to fetch Equinix Fabric Stream Alert Rules with pagination \~> Note Equinix Fabric v4 Stream Alert Rules datasource is currently in Beta. The interfaces related to equinix\_fabric\_stream\_alert\_rule may change ahead of general availability. Report any problems that you experience by opening a new issue Additional Documentation: * Getting Started: * API: ## Example Usage[​](#example-usage "Direct link to Example Usage") ``` data "equinix_fabric_stream_alert_rules" "data_stream_alert_rules" { stream_id = "" pagination = { limit = 5 offset = 1 } } output "stream_alert_rules_type" { value = data.equinix_fabric_stream_alert_rules.alert_rules.data[0].type } output "stream_alert_rules_id" { value = data.equinix_fabric_stream_alert_rules.alert_rules.data[0].uuid } output "stream_alert_rules_state" { value = data.equinix_fabric_stream_alert_rules.alert_rules.data[0].state } output "stream_alert_rules_stream_id" { value = data.equinix_fabric_stream_alert_rules.alert_rules.data[0].stream_id } ``` ## Schema[​](#schema "Direct link to Schema") ### Required[​](#required "Direct link to Required") * `pagination` (Attributes) Pagination details for the returned stream alert rules list (see [below for nested schema](#nestedatt--pagination)) * `stream_id` (String) The uuid of the stream that is the target of the stream alert rule ### Read-Only[​](#read-only "Direct link to Read-Only") * `data` (Attributes List) Returned list of stream objects (see [below for nested schema](#nestedatt--data)) * `id` (String) The unique identifier of the resource []() ### Nested Schema for `pagination`[​](#nested-schema-for-pagination "Direct link to nested-schema-for-pagination") Optional: * `limit` (Number) Maximum number of search results returned per page. Number must be between 1 and 100, and the default is 20 * `offset` (Number) Index of the first item returned in the response. The default is 0 Read-Only: * `next` (String) The URL relative to the next item in the response * `previous` (String) The URL relative to the previous item in the response * `total` (Number) The total number of alert rules available to the user making the request []() ### Nested Schema for `data`[​](#nested-schema-for-data "Direct link to nested-schema-for-data") Optional: * `detection_method` (Attributes) Detection method for stream alert rule (see [below for nested schema](#nestedatt--data--detection_method)) * `metric_selector` (Attributes) Metric selector for the stream alert rule (see [below for nested schema](#nestedatt--data--metric_selector)) Read-Only: * `change_log` (Attributes) Details of the last change on the stream resource (see [below for nested schema](#nestedatt--data--change_log)) * `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 * `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](#nestedatt--data--resource_selector)) * `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 `data.detection_method`[​](#nested-schema-for-datadetection_method "Direct link to nested-schema-for-datadetection_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 `data.metric_selector`[​](#nested-schema-for-datametric_selector "Direct link to nested-schema-for-datametric_selector") Required: * `include` (List of String) List of metrics to include []() ### Nested Schema for `data.change_log`[​](#nested-schema-for-datachange_log "Direct link to nested-schema-for-datachange_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 `data.resource_selector`[​](#nested-schema-for-dataresource_selector "Direct link to nested-schema-for-dataresource_selector") Read-Only: * `include` (List of String) List of metrics to include