From a11b7598e844cb4b74838a0502099c736fee4e96 Mon Sep 17 00:00:00 2001 From: Alexandre Gaillet Date: Fri, 23 Feb 2018 10:31:05 +0100 Subject: [PATCH] MON-48 - Updated with new best practice --- cloud/aws/apigateway/monitors-api.tf | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cloud/aws/apigateway/monitors-api.tf b/cloud/aws/apigateway/monitors-api.tf index c0cfc79..1e66ad2 100644 --- a/cloud/aws/apigateway/monitors-api.tf +++ b/cloud/aws/apigateway/monitors-api.tf @@ -1,8 +1,9 @@ # Monitoring Api Gateway latency resource "datadog_monitor" "API_Gateway_latency" { - name = "[${var.environment}] API Gateway latency > ${var.latency_threshold_critical}" + name = "[${var.environment}] API Gateway latency {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)" type = "metric alert" message = "${var.message}" + query = <