Refactor alerts.replaceChannels.js snippet to align with code sample snippet guidelines #3114
Labels
api: monitoring
Issues related to the Cloud Monitoring API.
lang: nodejs
Issues specific to JavaScript or TypeScript.
priority: p2
Moderately-important priority. Fix may not be included in next release.
samples
Issues that are directly related to samples.
type: cleanup
An internal cleanup or hygiene concern.
The current version of alerts.replaceChannels.js contains four different region tags that demonstrate 3 (or, arguably 4) different actions. The sample flow does three different actions:
The code should be split into 3 snippets (a snippet per file) to demonstrate the following three actions:
All snippets should provide a reasonable error handling. Inputs should be clearly commented to explain expectations. Error handling should, at least, handle errors when inputs are invalid.
The text was updated successfully, but these errors were encountered: