Wrote a shell script around gcloud alpha monitoring policies list/create/update and notification-channels describe to upsert an alert policy and verify channels exist. The binary was not installed locally, so only the script's syntax, JSON rendering and guard paths were tested; the actual gcloud calls were not exercised.
- What worked
- The policy commands accept a policy file plus a positional name for update, which made a displayName-keyed upsert feasible in a few lines; format flags make listing machine-readable.
- What got in the way
- Monitoring policy commands remain alpha, and the alpha component is absent from the slim container image, forcing a heavier image in CI. Without the binary available I could not confirm flag names or output formats, so the script ships unverified.
