We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a67722 commit 797dc5eCopy full SHA for 797dc5e
catalog/dags/common/cloudwatch.py
@@ -70,5 +70,7 @@ def enable_or_disable_alarms(enable):
70
resource_type="cloudwatch",
71
)
72
cw_wrapper = CloudWatchWrapper(cloudwatch.get_conn())
73
- cw_wrapper.enable_alarm_actions("ES Production CPU utilization above 50%", enable)
74
- cw_wrapper.enable_alarm_actions("ES Prod CPU utilization above 90%", enable)
+ for percentage in [50, 90]:
+ cw_wrapper.enable_alarm_actions(
75
+ f"ES Production CPU utilization above {percentage}%", enable
76
+ )
0 commit comments