gcloud_alpha_monitoring_channels_create (1)
NAME
- gcloud alpha monitoring channels create - create a new notification channel
SYNOPSIS
-
gcloud alpha monitoring channels create [--channel-content=CHANNEL_CONTENT | --channel-content-from-file=CHANNEL_CONTENT_FROM_FILE] [--channel-labels=[KEY=VALUE,...] --description=DESCRIPTION --display-name=DISPLAY_NAME --no-enabled --type=TYPE --user-labels=[KEY=VALUE,...]] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) Creates a new notification channel. A channel can be specified as
For information about the JSON/YAML format of a notification channel: cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.notificationChannels
FLAGS
-
-
At most one of these may be specified:
-
- --channel-content=CHANNEL_CONTENT
-
The channel-content as a string. In either JSON or YAML format.
- --channel-content-from-file=CHANNEL_CONTENT_FROM_FILE
-
The path to a JSON or YAML file containing the channel-content.
-
-
Notification channel settings
-
- --channel-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.
These are configuration fields that define the channel and its behavior.If the channel was given as a JSON/YAML object from a string or file, this flag will replace the labels value in the given channel.
- --description=DESCRIPTION
-
An optional description for the channel.
- --display-name=DISPLAY_NAME
-
The display name for the channel.
- --enabled
-
Whether notifications are forwarded to the described channel. Enabled by
default, use --no-enabled to disable.
- --type=TYPE
-
The type of the notification channel. This field matches the value of the
NotificationChannelDescriptor type field.
- --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.
If the channel was given as a JSON/YAML object from a string or file, this flag will replace the labels value in the given channel.
-
-
At most one of these may be specified:
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
NOTES
This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you will have to apply for early access and have your projects registered on the API whitelist to use it. To do so, contact Support at cloud.google.com/support