Skip to content

Commit 72c7915

Browse files
authored
Added new region tag (#1844)
1 parent a5158e6 commit 72c7915

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

monitoring/api/v3/alerts-client/snippets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ def default(self, obj):
118118
# [START monitoring_alert_create_policy]
119119
# [START monitoring_alert_create_channel]
120120
# [START monitoring_alert_update_channel]
121+
# [START monitoring_alert_enable_channel]
121122
def restore(project_name):
122123
print('Loading alert policies and notification channels from backup.json.')
123124
record = json.load(open('backup.json', 'rt'))
@@ -197,6 +198,7 @@ def restore(project_name):
197198
condition.ClearField("name")
198199
policy = alert_client.create_alert_policy(project_name, policy)
199200
print('Updated', policy.name)
201+
# [END monitoring_alert_enable_channel]
200202
# [END monitoring_alert_restore_policies]
201203
# [END monitoring_alert_create_policy]
202204
# [END monitoring_alert_create_channel]

0 commit comments

Comments
 (0)