diff --git a/samples/snippets/v3/alerts-client/snippets.py b/samples/snippets/v3/alerts-client/snippets.py index aeaa45a1..6362ff37 100644 --- a/samples/snippets/v3/alerts-client/snippets.py +++ b/samples/snippets/v3/alerts-client/snippets.py @@ -216,6 +216,14 @@ def default(self, obj): # [START monitoring_alert_update_channel] # [START monitoring_alert_enable_channel] def restore(project_name, backup_filename): + """Restore alert policies in a project. + + Arguments: + project_name (str): The Google Cloud Project to use. The project name + must be in the format - 'projects/'. + backup_filename (str): Name of the file (along with its path) from + which the alert policies will be restored. + """ print( "Loading alert policies and notification channels from {}.".format( backup_filename