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):
118
118
# [START monitoring_alert_create_policy]
119
119
# [START monitoring_alert_create_channel]
120
120
# [START monitoring_alert_update_channel]
121
+ # [START monitoring_alert_enable_channel]
121
122
def restore (project_name ):
122
123
print ('Loading alert policies and notification channels from backup.json.' )
123
124
record = json .load (open ('backup.json' , 'rt' ))
@@ -197,6 +198,7 @@ def restore(project_name):
197
198
condition .ClearField ("name" )
198
199
policy = alert_client .create_alert_policy (project_name , policy )
199
200
print ('Updated' , policy .name )
201
+ # [END monitoring_alert_enable_channel]
200
202
# [END monitoring_alert_restore_policies]
201
203
# [END monitoring_alert_create_policy]
202
204
# [END monitoring_alert_create_channel]
You can’t perform that action at this time.
0 commit comments