File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 31
31
scope = app ,
32
32
construct_id = f"Event{ feature_name } " ,
33
33
service_name = service_name ,
34
+ feature_name = feature_name ,
34
35
maturity_level = maturity_level ,
35
36
idempotency_table = db_stack .idempotency_table ,
36
37
)
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ def __init__(
25
25
construct_id : str ,
26
26
27
27
service_name : str ,
28
+ feature_name : str ,
28
29
maturity_level : str ,
29
30
idempotency_table : Table ,
30
31
@@ -84,7 +85,7 @@ def __init__(
84
85
on_failure_alarm = aws_cloudwatch .Alarm (
85
86
scope = self ,
86
87
id = "OnFailureQueueAlarm" ,
87
- alarm_name = f"[{ maturity_level } ][NotifyRestaurant function] Failed events detected in OnFailure destination" ,
88
+ # alarm_name=f"[{maturity_level}][NotifyRestaurant function] Failed events detected in OnFailure destination",
88
89
metric = restaurant_notification_error_queue .metric_approximate_number_of_messages_visible (),
89
90
comparison_operator = aws_cloudwatch .ComparisonOperator .GREATER_THAN_THRESHOLD ,
90
91
threshold = 0 ,
@@ -96,7 +97,7 @@ def __init__(
96
97
destination_delivery_alarm = aws_cloudwatch .Alarm (
97
98
scope = self ,
98
99
id = "DestinationDeliveryFailuresAlarm" ,
99
- alarm_name = f"[{ maturity_level } ][NotifyRestaurant function] Failed to deliver failed events to OnFailure destination" ,
100
+ # alarm_name=f"[{maturity_level}][NotifyRestaurant function] Failed to deliver failed events to OnFailure destination",
100
101
metric = notify_restaurant_fn .metric ("DestinationDeliveryFailures" ),
101
102
comparison_operator = aws_cloudwatch .ComparisonOperator .GREATER_THAN_THRESHOLD ,
102
103
threshold = 0 ,
You can’t perform that action at this time.
0 commit comments