1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-16 12:22:03 +00:00
gcloud-help/gcloud/alpha/monitoring/snoozes/cancel

74 lines
2.4 KiB
Text
Raw Normal View History

2023-03-08 10:34:05 +00:00
NAME
gcloud alpha monitoring snoozes cancel - cancels a snooze
SYNOPSIS
gcloud alpha monitoring snoozes cancel SNOOZE [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
2023-03-29 10:40:15 +00:00
(ALPHA) Cancel a snooze.
2023-03-08 10:34:05 +00:00
2023-03-29 10:40:15 +00:00
If the start time is in the future, then this command is equivalent to:
2023-03-08 10:34:05 +00:00
▪ update --start-time="+PT1S" --end-time="+PT1S
2023-03-29 10:40:15 +00:00
Otherwise, if the start time is past and the ending time is in the future,
then this command is equivalent to:
2023-03-08 10:34:05 +00:00
▪ update --end-time="+PT1S
For information about the JSON/YAML format of a snooze:
https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.snoozes
2023-05-04 10:43:54 +00:00
EXAMPLES
To cancel a snooze, run:
$ gcloud alpha monitoring snoozes cancel MY-SNOOZE
To cancel a snooze contained within a specific project, run:
$ gcloud alpha monitoring snoozes cancel MY-SNOOZE \
--project=MY-PROJECT
To cancel a snooze with a fully qualified snooze ID, run:
$ gcloud alpha monitoring snoozes cancel \
projects/MY-PROJECT/snoozes/MY-SNOOZE
2023-03-08 10:34:05 +00:00
POSITIONAL ARGUMENTS
Snooze resource - Name of the Snooze to be canceled. This represents a
Cloud resource. (NOTE) Some attributes are not given arguments in this
2023-05-04 10:43:54 +00:00
group but can be set in other ways.
To set the project attribute:
2023-03-08 10:34:05 +00:00
◆ provide the argument snooze on the command line with a fully
specified name;
◆ provide the argument --project on the command line;
◆ set the property core/project.
This must be specified.
SNOOZE
2023-05-04 10:43:54 +00:00
ID of the Snooze or fully qualified identifier for the Snooze.
To set the snooze attribute:
2023-03-08 10:34:05 +00:00
▸ provide the argument snooze on the command line.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,
--billing-project, --configuration, --flags-file, --flatten, --format,
--help, --impersonate-service-account, --log-http, --project, --quiet,
--trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
NOTES
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct
project, you might be trying to access an API with an invitation-only early
2023-05-04 10:43:54 +00:00
access allowlist. These variants are also available:
$ gcloud monitoring snoozes cancel
$ gcloud beta monitoring snoozes cancel
2023-03-08 10:34:05 +00:00