1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-20 21:20:07 +00:00

gcloud: Wed Feb 11 11:28:24 UTC 2026

This commit is contained in:
Automated 2026-02-11 11:28:25 +00:00
parent 582f364023
commit aaff695a08
2667 changed files with 84754 additions and 68242 deletions

View file

@ -50,99 +50,99 @@ FLAGS
◆ provide the argument --project on the command line;
◆ set the property core/project.
--notification-channels=[NOTIFICATION_CHANNELS,...]
IDs of the Notification Channels or fully qualified identifiers for
the Notification Channels.
--notification-channels=[NOTIFICATION_CHANNELS,...]
IDs of the Notification Channels or fully qualified identifiers for the
Notification Channels.
To set the notification_channels attribute:
provide the argument --notification-channels on the command line.
To set the notification_channels attribute:
provide the argument --notification-channels on the command line.
Condition Settings. This will add a condition to the created policy. If
any conditions are already specified, this condition will be appended.
--aggregation=AGGREGATION
Specifies an Aggregation message as a JSON/YAML value to be applied
to the condition. For more information about the format:
https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.alertPolicies
--aggregation=AGGREGATION
Specifies an Aggregation message as a JSON/YAML value to be applied to
the condition. For more information about the format:
https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.alertPolicies
--condition-display-name=CONDITION_DISPLAY_NAME
The display name for the condition.
--condition-display-name=CONDITION_DISPLAY_NAME
The display name for the condition.
--condition-filter=CONDITION_FILTER
Specifies the "filter" in a metric absence or metric threshold
condition.
--condition-filter=CONDITION_FILTER
Specifies the "filter" in a metric absence or metric threshold
condition.
--duration=DURATION
The duration (e.g. "60s", "2min", etc.) that the condition must hold
in order to trigger as true.
--duration=DURATION
The duration (e.g. "60s", "2min", etc.) that the condition must hold in
order to trigger as true.
--if=IF_VALUE
One of "absent", "< THRESHOLD", "> THRESHOLD" where "THRESHOLD" is an
integer or float.
--if=IF_VALUE
One of "absent", "< THRESHOLD", "> THRESHOLD" where "THRESHOLD" is an
integer or float.
At most one of these can be specified:
At most one of these can be specified:
--trigger-count=TRIGGER_COUNT
The absolute number of time series that must fail the predicate for
the condition to be triggered.
--trigger-count=TRIGGER_COUNT
The absolute number of time series that must fail the predicate for
the condition to be triggered.
--trigger-percent=TRIGGER_PERCENT
The percentage of time series that must fail the predicate for the
condition to be triggered.
--trigger-percent=TRIGGER_PERCENT
The percentage of time series that must fail the predicate for the
condition to be triggered.
Policy Settings. If any of these are specified, they will overwrite fields
in the --policy or --policy-from-file flags if specified.
--combiner=COMBINER
The combiner for the Alert Policy. COMBINER must be one of:
--combiner=COMBINER
The combiner for the Alert Policy. COMBINER must be one of:
AND
An incident is created only if all conditions are met
simultaneously. This combiner is satisfied if all conditions are
met, even if they are met on completely different resources.
AND_WITH_MATCHING_RESOURCE
Combine conditions using logical AND operator, but unlike the
regular AND option, an incident is created only if all conditions
are met simultaneously on at least one resource.
COMBINE_UNSPECIFIED
An unspecified combiner
OR
An incident is created if any of the listed conditions is met.
AND
An incident is created only if all conditions are met
simultaneously. This combiner is satisfied if all conditions are
met, even if they are met on completely different resources.
AND_WITH_MATCHING_RESOURCE
Combine conditions using logical AND operator, but unlike the
regular AND option, an incident is created only if all conditions
are met simultaneously on at least one resource.
COMBINE_UNSPECIFIED
An unspecified combiner
OR
An incident is created if any of the listed conditions is met.
--display-name=DISPLAY_NAME
The display name for the Alert Policy.
--display-name=DISPLAY_NAME
The display name for the Alert Policy.
--enabled
If the policy is enabled. Enabled by default, use --no-enabled to
disable.
--enabled
If the policy is enabled. Enabled by default, use --no-enabled to
disable.
--user-labels=[KEY=VALUE,...]
List of label KEY=VALUE pairs to add.
--user-labels=[KEY=VALUE,...]
List of label KEY=VALUE pairs to add.
Keys must start with a lowercase character and contain only hyphens
(-), underscores (_), lowercase characters, and numbers. Values must
contain only hyphens (-), underscores (_), lowercase characters, and
numbers.
Keys must start with a lowercase character and contain only hyphens
(-), underscores (_), lowercase characters, and numbers. Values must
contain only hyphens (-), underscores (_), lowercase characters, and
numbers.
If the policy was given as a JSON/YAML object from a string or file,
this flag will replace the labels value in the given policy.
If the policy was given as a JSON/YAML object from a string or file,
this flag will replace the labels value in the given policy.
Documentation
Documentation
--documentation-format=DOCUMENTATION_FORMAT; default="text/markdown"
The MIME type that should be used with --documentation or
--documentation-from-file. Currently, only "text/markdown" is
supported.
--documentation-format=DOCUMENTATION_FORMAT; default="text/markdown"
The MIME type that should be used with --documentation or
--documentation-from-file. Currently, only "text/markdown" is
supported.
At most one of these can be specified:
At most one of these can be specified:
--documentation=DOCUMENTATION
The documentation to be included with the policy.
--documentation=DOCUMENTATION
The documentation to be included with the policy.
--documentation-from-file=PATH_TO_FILE
The path to a file containing the documentation to be included
with the policy. Use a full or relative path to a local file
containing the value of documentation.
--documentation-from-file=PATH_TO_FILE
The path to a file containing the documentation to be included with
the policy. Use a full or relative path to a local file containing
the value of documentation.
At most one of these can be specified: