variable "application_family" {
  default = "assets"
}

variable "team_name" {
  type        = string
  description = "Name of team that owns the service"
  default     = "content-delivery-asset-management"
}

variable "aws_region" {
  default     = "us-east-1"
  description = "All elements of the state machine execution flow have to be placed in the same region."
}

variable "environment" {
  description = "Available values:  dev, qa, prod."
  default     = "prod"
}

variable "service_name" {
  default = "ows-assets"
}

variable "secrets_manager_secret_names" {
  description = "List of secrets manager secrets to create"
  type        = list(string)
  default = [
    "WOWZA_SHARED_SECRET_V2",
    "RDS_DB_PASS",
    "AR_DB_PASS",
  ]
}

# non sensitive env variables
variable "IAM_ROLE" {}
variable "REDIS_PORT" {}
variable "SERVER_LOCATION_AVL" {}
variable "STREAM_URL" {}
variable "STS_TOKEN_DURATION" {}
variable "WOWZA_PATH_PREFIX" {}
variable "WOWZA_PATH_PREFIX_V2" {}
variable "WOWZA_URL" {}
variable "WOWZA_URL_V2" {}

variable "critical_number_5xx" {
  description = "Number of 5xx requests (per 5m) for critical alerts"
  default     = 100
}

variable "critical_recovery_number_5xx" {
  description = "Number of 5xx requests (per 5m) for critical recovery"
  default     = 50
}

variable "warning_number_5xx" {
  description = "Number of 5xx requests (per 5m) for warnings"
  default     = 50
}

variable "warning_recovery_number_5xx" {
  description = "Number of 5xx requests (per 5m) for warning recovery"
  default     = 40
}

variable "cpu_time_window" {
  description = "Time window for CPU utilization evaluation"
  default     = "last_30m"
}

variable "cpu_critical_number" {
  description = "CPU utilization percentage for critical alerts"
  default     = 100
}

variable "cpu_critical_recovery_number" {
  description = "CPU utilization percentage for critical recovery"
  default     = 99
}

variable "cpu_warning_number" {
  description = "CPU utilization percentage for warnings"
  default     = 98
}

variable "cpu_warning_recovery_number" {
  description = "CPU utilization percentage for warning recovery"
  default     = 97
}

variable "application_alert_channel" {
  default = "@slack-content-delivery-and-asset-mgmt-alerts"
}

variable "healthy_tasks_notification_endpoints" {
  default = "@oncall-content-delivery-asset-management"
}

variable "UWSGI_WORKERS" {
  default = "8"
}

variable "UWSGI_CHEAPER_RSS_LIMIT_SOFT_GB" {
  description = "Memory high-level to stop creating workers, in gigabytes"
  default     = 1.43
}
variable "dependent_applications" {
  default = [
    "workstation", "content", "insights", "moneyhub", "songwip",
  "collaborator-suite", "oa"]
}

variable "rds_db_user" {
  description = "ows-assets RDS db user name"
  default     = "ows-assets"
}

variable "rds_db_connection_charset" {
  description = "ows-assets RDS db connection character set"
  default     = "utf8mb4"
}

variable "ar_db_host" {
  description = "prod art_relations db host URL"
  default     = "ar-db.theorchard.com"
}

variable "ar_db_name" {
  description = "prod art_relations db name"
  default     = "art_relations"
}

variable "ar_db_user" {
  description = "ows-assets art_relations db user name"
  default     = "ows-assets"
}

variable "ar_db_connection_charset" {
  description = "ows-assets art_relations db connection character set"
  default     = "utf8mb4"
}
