notification_channel_descriptors
Creates, updates, deletes, gets or lists a notification_channel_descriptors
resource.
Overview
Name | notification_channel_descriptors |
Type | Resource |
Id | google.monitoring.notification_channel_descriptors |
Fields
The following fields are returned by SELECT
queries:
- projects_notification_channel_descriptors_get
- projects_notification_channel_descriptors_list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | The full REST resource name for this descriptor. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE] In the above, [TYPE] is the value of the type field. |
description | string | A human-readable description of the notification channel type. The description may include a description of the properties of the channel and pointers to external documentation. |
displayName | string | A human-readable name for the notification channel type. This form of the name is suitable for a user interface. |
labels | array | The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated. |
launchStage | string | The product launch stage for channels of this type. |
supportedTiers | array | The tiers that support this notification channel; the project service tier must be one of the supported_tiers. |
type | string | The type of notification channel, such as "email" and "sms". To view the full list of channels, see Channel descriptors (https://cloud.google.com/monitoring/alerts/using-channels-api#ncd). Notification channel types are globally unique. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | The full REST resource name for this descriptor. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE] In the above, [TYPE] is the value of the type field. |
description | string | A human-readable description of the notification channel type. The description may include a description of the properties of the channel and pointers to external documentation. |
displayName | string | A human-readable name for the notification channel type. This form of the name is suitable for a user interface. |
labels | array | The set of labels that must be defined to identify a particular channel of the corresponding type. Each label includes a description for how that field should be populated. |
launchStage | string | The product launch stage for channels of this type. |
supportedTiers | array | The tiers that support this notification channel; the project service tier must be one of the supported_tiers. |
type | string | The type of notification channel, such as "email" and "sms". To view the full list of channels, see Channel descriptors (https://cloud.google.com/monitoring/alerts/using-channels-api#ncd). Notification channel types are globally unique. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
projects_notification_channel_descriptors_get | select | projectsId , notificationChannelDescriptorsId | Gets a single channel descriptor. The descriptor indicates which fields are expected / permitted for a notification channel of the given type. | |
projects_notification_channel_descriptors_list | select | projectsId | pageSize , pageToken | Lists the descriptors for supported channel types. The use of descriptors makes it possible for new channel types to be dynamically added. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
notificationChannelDescriptorsId | string | |
projectsId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- projects_notification_channel_descriptors_get
- projects_notification_channel_descriptors_list
Gets a single channel descriptor. The descriptor indicates which fields are expected / permitted for a notification channel of the given type.
SELECT
name,
description,
displayName,
labels,
launchStage,
supportedTiers,
type
FROM google.monitoring.notification_channel_descriptors
WHERE projectsId = '{{ projectsId }}' -- required
AND notificationChannelDescriptorsId = '{{ notificationChannelDescriptorsId }}' -- required;
Lists the descriptors for supported channel types. The use of descriptors makes it possible for new channel types to be dynamically added.
SELECT
name,
description,
displayName,
labels,
launchStage,
supportedTiers,
type
FROM google.monitoring.notification_channel_descriptors
WHERE projectsId = '{{ projectsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';