File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -45,15 +45,19 @@ resource "aws_cloudwatch_metric_alarm" "error_alarm_count_medium" {
4545 label = " error count for search patient, high if about 4, low if between 1 and 3"
4646 return_data = true
4747 expression = " IF(m1 >= 1 AND m1 <= 3, 1, 0)"
48+ namespace = " AWS/Lambda"
49+
4850 }
4951
5052 metric_query {
5153 id = " m1"
5254
5355 metric {
5456 metric_name = " Errors"
55- period = 120
56- stat = " Sum"
57+ namespace = " AWS/Lambda"
58+
59+ period = 120
60+ stat = " Sum"
5761 dimensions = {
5862 FunctionName = module.search- patient- details- lambda.function_name
5963 }
@@ -74,6 +78,7 @@ resource "aws_cloudwatch_metric_alarm" "error_alarm_count_high" {
7478 }
7579 metric_name = " Errors"
7680 statistic = " Sum"
81+ namespace = " AWS/Lambda"
7782}
7883
7984
You can’t perform that action at this time.
0 commit comments