# # Sending Operations Count # resource "datadog_monitor" "sending_operations_count" { count = "${var.sending_operations_count_enabled == "true" ? 1 : 0}" name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] GCP pubsub sending messages operations {{#is_alert}}{{{comparator}}} {{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}} ({{value}}){{/is_warning}}" message = "${coalesce(var.sending_operations_count_message, var.message)}" type = "query alert" query = <= ${var.unavailable_sending_operations_count_threshold_critical} EOQ thresholds { warning = "${var.unavailable_sending_operations_count_threshold_warning}" critical = "${var.unavailable_sending_operations_count_threshold_critical}" } notify_audit = false locked = false timeout_h = 0 include_tags = true require_full_window = false notify_no_data = false renotify_interval = 0 evaluation_delay = "${var.evaluation_delay}" new_host_delay = "${var.new_host_delay}" silenced = "${var.unavailable_sending_operations_count_silenced}" tags = ["env:${var.environment}", "type:cloud", "provider:gcp", "resource:pubsub", "team:claranet", "created-by:terraform", "${var.unavailable_sending_operations_count_extra_tags}"] }