module "fargate_service_dashboard" {
  source             = "git@github.com:theorchard/terraform-datadog.git//modules/service?ref=6.18.1"
  environment        = var.environment
  environment_type   = "fargate"
  service_name       = var.service_name
  application_family = var.application_family

  healthy_tasks_monitor_enabled = true
  service_4xx_monitor_enabled   = false
  service_5xx_monitor_enabled   = true
  service_cpu_monitor_enabled   = true

  notification_endpoints            = var.notification_endpoints
  escalation_notification_endpoints = var.escalation_notification_endpoints
}
