--- # generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "opensearch_monitor Resource - terraform-provider-opensearch" subcategory: "" description: |- Provides an OpenSearch monitor. Please refer to the OpenSearch monitor documentation for details. --- # opensearch_monitor (Resource) Provides an OpenSearch monitor. Please refer to the OpenSearch monitor documentation for details. ## Example Usage ```terraform resource "opensearch_monitor" "movies_last_hour" { body = < 0", "lang" : "painless" } }, "actions" : [ { "name" : "Slack", "destination_id" : "${opensearch_destination.slack_on_call_channel.id}", "message_template" : { "source" : "bogus", "lang" : "mustache" }, "throttle_enabled" : false, "subject_template" : { "source" : "Production Errors", "lang" : "mustache" } } ] } ] } EOF } ``` ## Schema ### Required - `body` (String) The monitor document ### Read-Only - `id` (String) The ID of this resource. ## Import Import is supported using the following syntax: ```shell terraform import opensearch_monitor.alert lgOZb3UB96pyyRQv0ppQ ```