mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-08 10:35:03 +00:00
70 lines
2.1 KiB
Text
70 lines
2.1 KiB
Text
|
|
NAME
|
||
|
|
gcloud monitoring snoozes cancel - cancels a snooze
|
||
|
|
|
||
|
|
SYNOPSIS
|
||
|
|
gcloud monitoring snoozes cancel SNOOZE [GCLOUD_WIDE_FLAG ...]
|
||
|
|
|
||
|
|
DESCRIPTION
|
||
|
|
Cancel a snooze.
|
||
|
|
|
||
|
|
If the start time is in the future, then this command is equivalent to:
|
||
|
|
|
||
|
|
▪ update --start-time="+PT1S" --end-time="+PT1S
|
||
|
|
|
||
|
|
Otherwise, if the start time is past and the ending time is in the future,
|
||
|
|
then this command is equivalent to:
|
||
|
|
|
||
|
|
▪ 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
|
||
|
|
|
||
|
|
EXAMPLES
|
||
|
|
To cancel a snooze, run:
|
||
|
|
|
||
|
|
$ gcloud monitoring snoozes cancel MY-SNOOZE
|
||
|
|
|
||
|
|
To cancel a snooze contained within a specific project, run:
|
||
|
|
|
||
|
|
$ gcloud monitoring snoozes cancel MY-SNOOZE --project=MY-PROJECT
|
||
|
|
|
||
|
|
To cancel a snooze with a fully qualified snooze ID, run:
|
||
|
|
|
||
|
|
$ gcloud monitoring snoozes cancel \
|
||
|
|
projects/MY-PROJECT/snoozes/MY-SNOOZE
|
||
|
|
|
||
|
|
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
|
||
|
|
group but can be set in other ways.
|
||
|
|
|
||
|
|
To set the project attribute:
|
||
|
|
◆ 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
|
||
|
|
ID of the Snooze or fully qualified identifier for the Snooze.
|
||
|
|
|
||
|
|
To set the snooze attribute:
|
||
|
|
▸ 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
|
||
|
|
These variants are also available:
|
||
|
|
|
||
|
|
$ gcloud alpha monitoring snoozes cancel
|
||
|
|
|
||
|
|
$ gcloud beta monitoring snoozes cancel
|
||
|
|
|