2018-05-23 11:04:56 +02:00

163 lines
4.7 KiB
HCL

# Global Terraform
variable "environment" {
description = "Architecture environment"
type = "string"
}
# Global DataDog
variable "message" {
description = "Message sent when a Redis monitor is triggered"
}
variable "delay" {
description = "Delay in seconds for the metric evaluation"
default = 900
}
variable "filter_tags_use_defaults" {
description = "Use default filter tags convention"
default = "true"
}
variable "filter_tags_custom" {
description = "Tags used for custom filtering when filter_tags_use_defaults is false"
default = "*"
}
# Azure API Management specific
variable "status_silenced" {
description = "Groups to mute for API Management status monitor"
type = "map"
default = {}
}
variable "status_message" {
description = "Custom message for API Management status monitor"
type = "string"
default = ""
}
variable "status_time_aggregator" {
description = "Monitor aggregator for API Management status [available values: min, max or avg]"
type = "string"
default = "avg"
}
variable "status_timeframe" {
description = "Monitor timeframe for API Management status [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
type = "string"
default = "last_5m"
}
variable "failed_requests_silenced" {
description = "Groups to mute for API Management failed requests monitor"
type = "map"
default = {}
}
variable "failed_requests_message" {
description = "Custom message for API Management failed requests monitor"
type = "string"
default = ""
}
variable "failed_requests_timeframe" {
description = "Monitor timeframe for API Management failed requests [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
type = "string"
default = "last_5m"
}
variable "failed_requests_threshold_critical" {
description = "Maximum acceptable percent of failed requests"
default = 90
}
variable "failed_requests_threshold_warning" {
description = "Warning regarding acceptable percent of failed requests"
default = 50
}
variable "other_requests_silenced" {
description = "Groups to mute for API Management other requests monitor"
type = "map"
default = {}
}
variable "other_requests_message" {
description = "Custom message for API Management other requests monitor"
type = "string"
default = ""
}
variable "other_requests_timeframe" {
description = "Monitor timeframe for API Management other requests [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
type = "string"
default = "last_5m"
}
variable "other_requests_threshold_critical" {
description = "Maximum acceptable percent of other requests"
default = 90
}
variable "other_requests_threshold_warning" {
description = "Warning regarding acceptable percent of other requests"
default = 50
}
variable "unauthorized_requests_silenced" {
description = "Groups to mute for API Management unauthorized requests monitor"
type = "map"
default = {}
}
variable "unauthorized_requests_message" {
description = "Custom message for API Management unauthorized requests monitor"
type = "string"
default = ""
}
variable "unauthorized_requests_timeframe" {
description = "Monitor timeframe for API Management unauthorized requests [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
type = "string"
default = "last_5m"
}
variable "unauthorized_requests_threshold_critical" {
description = "Maximum acceptable percent of unauthorized requests"
default = 90
}
variable "unauthorized_requests_threshold_warning" {
description = "Warning regarding acceptable percent of unauthorized requests"
default = 50
}
variable "successful_requests_silenced" {
description = "Groups to mute for API Management successful requests monitor"
type = "map"
default = {}
}
variable "successful_requests_message" {
description = "Custom message for API Management successful requests monitor"
type = "string"
default = ""
}
variable "successful_requests_timeframe" {
description = "Monitor timeframe for API Management successful requests [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
type = "string"
default = "last_5m"
}
variable "successful_requests_threshold_critical" {
description = "Minimum acceptable percent of successful requests"
default = 10
}
variable "successful_requests_threshold_warning" {
description = "Warning regarding acceptable percent of successful requests"
default = 30
}