|
| 1 | +#Copyright (c) 2023 Oracle Corporation and/or its affiliates. |
| 2 | +#Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl |
| 3 | + |
| 4 | +variable "compartment_ocid" { |
| 5 | + description = "Compartment OCID" |
| 6 | + type = string |
| 7 | +} |
| 8 | + |
| 9 | + |
| 10 | +variable "alarm_def" { |
| 11 | + description = "OCI Alarm definition" |
| 12 | + type = map(object({ |
| 13 | + destination = string |
| 14 | + display_name = string |
| 15 | + severity = optional(string, "CRITICAL") |
| 16 | + query = string |
| 17 | + is_enabled = optional(bool, true) |
| 18 | + namespace = string |
| 19 | + metric_compartment_id = optional(string) |
| 20 | + repeat_notification_duration = optional(string, "PT5M") |
| 21 | + trigger = optional(string, "PT5M") |
| 22 | + suppression_from_time = optional(string) |
| 23 | + suppression_till_time = optional(string) |
| 24 | + message_format = optional(string, "RAW") |
| 25 | + body = optional(string, null) |
| 26 | + freeform_tags = optional(map(string)) |
| 27 | + defined_tags = optional(map(string)) |
| 28 | + })) |
| 29 | +} |
| 30 | + |
| 31 | +variable "notification" { |
| 32 | + description = "Notification Topic and Subscription" |
| 33 | + type = map(object({ |
| 34 | + description = optional(string) |
| 35 | + create_topic = optional(bool, true) |
| 36 | + defined_tags = optional(map(string)) |
| 37 | + freeform_tags = optional(map(string)) |
| 38 | + subscription = optional(map(object({ |
| 39 | + endpoint = string |
| 40 | + protocol = string |
| 41 | + }))) |
| 42 | + })) |
| 43 | +} |
| 44 | + |
| 45 | +variable "label_prefix" { |
| 46 | + default = "none" |
| 47 | + description = "Prefix to be added to the resources" |
| 48 | + type = string |
| 49 | +} |
0 commit comments