class ProjectsNotificationChannelDescriptors extends Resource (View source)

The "notificationChannelDescriptors" collection of methods.

Typical usage is:

 $monitoringService = new Google\Service\Monitoring(...);
 $notificationChannelDescriptors = $monitoringService->projects_notificationChannelDescriptors;

Methods

get(string $name, array $optParams = [])

Gets a single channel descriptor. The descriptor indicates which fields are expected / permitted for a notification channel of the given type.

listProjectsNotificationChannelDescriptors(string $name, array $optParams = [])

Lists the descriptors for supported channel types. The use of descriptors makes it possible for new channel types to be dynamically added.

Details

NotificationChannelDescriptor get(string $name, array $optParams = [])

Gets a single channel descriptor. The descriptor indicates which fields are expected / permitted for a notification channel of the given type.

(notificationChannelDescriptors.get)

Parameters

string $name

Required. The channel type for which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]

array $optParams

Optional parameters.

Return Value

NotificationChannelDescriptor

Exceptions

Exception

ListNotificationChannelDescriptorsResponse listProjectsNotificationChannelDescriptors(string $name, array $optParams = [])

Lists the descriptors for supported channel types. The use of descriptors makes it possible for new channel types to be dynamically added.

(notificationChannelDescriptors.listProjectsNotificationChannelDescriptors)

Parameters

string $name

Required. The REST resource name of the parent from which to retrieve the notification channel descriptors. The expected syntax is: projects/[PROJECT_ID_OR_NUMBER] Note that this names (https://cloud.google.com/monitoring/api/v3#project_name) the parent container in which to look for the descriptors; to retrieve a single descriptor by name, use the GetNotificationChannelDescriptor operation, instead.

array $optParams

Optional parameters.

Return Value

ListNotificationChannelDescriptorsResponse

Exceptions

Exception