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 73690ea commit 1e23252Copy full SHA for 1e23252
monitoring/snippets/v3/alerts-client/snippets.py
@@ -216,6 +216,14 @@ def default(self, obj):
216
# [START monitoring_alert_update_channel]
217
# [START monitoring_alert_enable_channel]
218
def restore(project_name, backup_filename):
219
+ """Restore alert policies in a project.
220
+
221
+ Arguments:
222
+ project_name (str): The Google Cloud Project to use. The project name
223
+ must be in the format - 'projects/<PROJECT_NAME>'.
224
+ backup_filename (str): Name of the file (along with its path) from
225
+ which the alert policies will be restored.
226
+ """
227
print(
228
"Loading alert policies and notification channels from {}.".format(
229
backup_filename
0 commit comments