Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
Added new region tag [(#1844)](GoogleCloudPlatform/python-docs-sample…
Browse files Browse the repository at this point in the history
  • Loading branch information
engelke authored Nov 15, 2018
1 parent 7bc0405 commit ce09c55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions samples/snippets/v3/alerts-client/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def default(self, obj):
# [START monitoring_alert_create_policy]
# [START monitoring_alert_create_channel]
# [START monitoring_alert_update_channel]
# [START monitoring_alert_enable_channel]
def restore(project_name):
print('Loading alert policies and notification channels from backup.json.')
record = json.load(open('backup.json', 'rt'))
Expand Down Expand Up @@ -197,6 +198,7 @@ def restore(project_name):
condition.ClearField("name")
policy = alert_client.create_alert_policy(project_name, policy)
print('Updated', policy.name)
# [END monitoring_alert_enable_channel]
# [END monitoring_alert_restore_policies]
# [END monitoring_alert_create_policy]
# [END monitoring_alert_create_channel]
Expand Down

0 comments on commit ce09c55

Please sign in to comment.