|
| 1 | +variable "gcp_project_id" { |
| 2 | + type = string |
| 3 | + description = "The Google Cloud project ID." |
| 4 | +} |
| 5 | + |
| 6 | +variable "uptime_monitoring_display_name" { |
| 7 | + type = string |
| 8 | + description = "A human-friendly name for the uptime check configuration. Used for monitoring display_name." |
| 9 | + default = "" |
| 10 | +} |
| 11 | + |
| 12 | +variable "uptime_monitoring_path" { |
| 13 | + type = string |
| 14 | + description = "The path to the page to run the check against." |
| 15 | + default = "/" |
| 16 | +} |
| 17 | + |
| 18 | +variable "uptime_check_period" { |
| 19 | + type = string |
| 20 | + description = "How often, in seconds, the uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Defaults to 300s." |
| 21 | + default = "60s" |
| 22 | +} |
| 23 | + |
| 24 | +variable "uptime_check_timeout" { |
| 25 | + type = string |
| 26 | + description = "The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds)." |
| 27 | + default = "10s" |
| 28 | +} |
| 29 | + |
| 30 | +variable "uptime_monitoring_host" { |
| 31 | + type = string |
| 32 | + description = "A hostname to monitor (without protocol, example: 'www.my-site.com')." |
| 33 | +} |
| 34 | + |
| 35 | +variable "uptime_check_regions" { |
| 36 | + type = list(string) |
| 37 | + description = "The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions to include a minimum of 3 locations must be provided, or an error message is returned. Not specifying this field will result in uptime checks running from all regions." |
| 38 | + default = ["USA_VIRGINIA", "EUROPE", "ASIA_PACIFIC"] |
| 39 | +} |
| 40 | + |
| 41 | +variable "uptime_alert_user_labels" { |
| 42 | + type = map(string) |
| 43 | + description = "This field is intended to be used for labelling the SSL alerts. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter." |
| 44 | + default = {} |
| 45 | +} |
| 46 | + |
| 47 | +variable "uptime_monitoring_headers" { |
| 48 | + type = map(string) |
| 49 | + description = "A set of key/value header pairs to send in the HTTP request to the URL." |
| 50 | + default = {} |
| 51 | +} |
| 52 | + |
| 53 | +variable "alert_threshold_duration" { |
| 54 | + type = string |
| 55 | + description = "The amount of time that a time series must violate the threshold to be considered failing. Currently, only values that are a multiple of a minute--e.g., 0, 60, 120, or 300 seconds--are supported." |
| 56 | + default = "60s" |
| 57 | +} |
| 58 | + |
| 59 | +variable "alert_threshold_value" { |
| 60 | + type = number |
| 61 | + description = "A value against which to compare the time series." |
| 62 | + default = 1 |
| 63 | +} |
| 64 | + |
| 65 | +variable "alert_notification_channels" { |
| 66 | + type = list(string) |
| 67 | + description = "Identifies the notification channels to which notifications should be sent when incidents are opened or closed. The syntax of the entries in this field is projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]" |
| 68 | +} |
| 69 | + |
| 70 | +variable "alert_display_name" { |
| 71 | + type = string |
| 72 | + description = "A human-friendly name for the alert policy. Used for monitoring display_name." |
| 73 | + default = "" |
| 74 | +} |
| 75 | + |
| 76 | +variable "accepted_response_status_values" { |
| 77 | + description = "Check will only pass if the HTTP response status code is in this set of status values (combined with the set of status classes)." |
| 78 | + type = set(number) |
| 79 | + default = [] |
| 80 | +} |
| 81 | + |
| 82 | +variable "accepted_response_status_classes" { |
| 83 | + description = "Check will only pass if the HTTP response status code is in this set of status classes (combined with the set of status values). Possible values: STATUS_CLASS_1XX, STATUS_CLASS_2XX, STATUS_CLASS_3XX, STATUS_CLASS_4XX, STATUS_CLASS_5XX, STATUS_CLASS_ANY" |
| 84 | + type = set(string) |
| 85 | + default = [] |
| 86 | +} |
0 commit comments