You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/alerts.js,samples/README.md)
32
+
33
+
__Usage:__`node alerts.js --help`
34
+
35
+
```
36
+
alerts.js <command>
37
+
38
+
Commands:
39
+
alerts.js backup <projectId> Save alert policies to a ./policies_backup.json file.
40
+
alerts.js restore <projectId> Restore alert policies from a ./policies_backup.json file.
41
+
alerts.js replace <alertPolicyName> <channelNames..> Replace the notification channels of the specified alert policy.
42
+
alerts.js disable <projectId> [filter] Disables policies that match the given filter.
43
+
alerts.js enable <projectId> [filter] Enables policies that match the given filter.
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/metrics.js,samples/README.md)
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/uptime.js,samples/README.md)
0 commit comments