File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
monitoring/api/v3/alerts-client Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff 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]
121122def 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]
You can’t perform that action at this time.
0 commit comments