Service Client: Google::Monitoring::V3::NotificationService::NotificationChannelServiceClient
Client stub representing the remote NotificationChannelService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to monitoring.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Monitoring::V3::NotificationService - Compiled Protocol Buffers messages for google/monitoring/v3/notification_service.proto
SYNOPSIS
use Google::Monitoring::V3::NotificationService;
my $msg = Google::Monitoring::V3::NotificationService::ListNotificationChannelDescriptorsRequest->new({
name => $name,
page_size => $page_size,
page_token => $page_token,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Monitoring::V3::NotificationService::ListNotificationChannelDescriptorsRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/monitoring/v3/notification_service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Monitoring::V3::NotificationService::ListNotificationChannelDescriptorsRequest
The `ListNotificationChannelDescriptors` request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. 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][google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor] operation, instead.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of results to return in a single response. If not set to a positive number, a reasonable value will be chosen by the service.
$msg->page_token()/$msg->page_token($value)Type:
StringIf non-empty, `page_token` must contain a value returned as the `next_page_token` in a previous response to request the next set of results.
Google::Monitoring::V3::NotificationService::ListNotificationChannelDescriptorsResponse
The `ListNotificationChannelDescriptors` response.
Inherits from Protobuf::Message.
Accessors
$msg->channel_descriptors()/$msg->channel_descriptors($value)Type:
Message(Google::Monitoring::V3::Notification::NotificationChannelDescriptor)The monitored resource descriptors supported for the specified project, optionally filtered.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringIf not empty, indicates that there may be more results that match the request. Use the value in the `page_token` field in a subsequent request to fetch the next set of results. If empty, all results have been returned.
Google::Monitoring::V3::NotificationService::GetNotificationChannelDescriptorRequest
The `GetNotificationChannelDescriptor` response.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The channel type for which to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[CHANNEL_TYPE]
Google::Monitoring::V3::NotificationService::CreateNotificationChannelRequest
The `CreateNotificationChannel` request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on which to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]This names the container into which the channel will be written, this does not name the newly created channel. The resulting channel's name will have a normalized version of this field as a prefix, but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
$msg->notification_channel()/$msg->notification_channel($value)Type:
Message(Google::Monitoring::V3::Notification::NotificationChannel)Required. The definition of the `NotificationChannel` to create.
Google::Monitoring::V3::NotificationService::ListNotificationChannelsRequest
The `ListNotificationChannels` request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on which to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]This names the container in which to look for the notification channels; it does not name a specific channel. To query a specific channel by REST resource name, use the [`GetNotificationChannel`][google.monitoring.v3.NotificationChannelService.GetNotificationChannel] operation.
$msg->filter()/$msg->filter($value)Type:
StringOptional. If provided, this field specifies the criteria that must be met by notification channels to be included in the response.
For more details, see [sorting and filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
$msg->order_by()/$msg->order_by($value)Type:
StringOptional. A comma-separated list of fields by which to sort the result. Supports the same set of fields as in `filter`. Entries can be prefixed with a minus sign to sort in descending rather than ascending order.
For more details, see [sorting and filtering](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of results to return in a single response. If not set to a positive number, a reasonable value will be chosen by the service.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. If non-empty, `page_token` must contain a value returned as the `next_page_token` in a previous response to request the next set of results.
Google::Monitoring::V3::NotificationService::ListNotificationChannelsResponse
The `ListNotificationChannels` response.
Inherits from Protobuf::Message.
Accessors
$msg->notification_channels()/$msg->notification_channels($value)Type:
Message(Google::Monitoring::V3::Notification::NotificationChannel)The notification channels defined for the specified project.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringIf not empty, indicates that there may be more results that match the request. Use the value in the `page_token` field in a subsequent request to fetch the next set of results. If empty, all results have been returned.
$msg->total_size()/$msg->total_size($value)Type:
Int32The total number of notification channels in all pages. This number is only an estimate, and may change in subsequent pages. https://aip.dev/158
Google::Monitoring::V3::NotificationService::GetNotificationChannelRequest
The `GetNotificationChannel` request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The channel for which to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
Google::Monitoring::V3::NotificationService::UpdateNotificationChannelRequest
The `UpdateNotificationChannel` request.
Inherits from Protobuf::Message.
Accessors
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. The fields to update.
$msg->notification_channel()/$msg->notification_channel($value)Type:
Message(Google::Monitoring::V3::Notification::NotificationChannel)Required. A description of the changes to be applied to the specified notification channel. The description must provide a definition for fields to be updated; the names of these fields should also be included in the `update_mask`.
Google::Monitoring::V3::NotificationService::DeleteNotificationChannelRequest
The `DeleteNotificationChannel` request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The channel for which to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]$msg->force()/$msg->force($value)Type:
BoolIf true, the notification channel will be deleted regardless of its use in alert policies (the policies will be updated to remove the channel). If false, this operation will fail if the notification channel is referenced by existing alerting policies.
Google::Monitoring::V3::NotificationService::SendNotificationChannelVerificationCodeRequest
The `SendNotificationChannelVerificationCode` request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The notification channel to which to send a verification code.
Google::Monitoring::V3::NotificationService::GetNotificationChannelVerificationCodeRequest
The `GetNotificationChannelVerificationCode` request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The notification channel for which a verification code is to be generated and retrieved. This must name a channel that is already verified; if the specified channel is not verified, the request will fail.
$msg->expire_time()/$msg->expire_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The desired expiration time. If specified, the API will guarantee that the returned code will not be valid after the specified timestamp; however, the API cannot guarantee that the returned code will be valid for at least as long as the requested time (the API puts an upper bound on the amount of time for which a code may be valid). If omitted, a default expiration will be used, which may be less than the max permissible expiration (so specifying an expiration may extend the code's lifetime over omitting an expiration, even though the API does impose an upper limit on the maximum expiration that is permitted).
Google::Monitoring::V3::NotificationService::GetNotificationChannelVerificationCodeResponse
The `GetNotificationChannelVerificationCode` request.
Inherits from Protobuf::Message.
Accessors
$msg->code()/$msg->code($value)Type:
StringThe verification code, which may be used to verify other channels that have an equivalent identity (i.e. other channels of the same type with the same fingerprint such as other email channels with the same email address or other sms channels with the same number).
$msg->expire_time()/$msg->expire_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The expiration time associated with the code that was returned. If an expiration was provided in the request, this is the minimum of the requested expiration in the request and the max permitted expiration.
Google::Monitoring::V3::NotificationService::VerifyNotificationChannelRequest
The `VerifyNotificationChannel` request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The notification channel to verify.
$msg->code()/$msg->code($value)Type:
StringRequired. The verification code that was delivered to the channel as a result of invoking the `SendNotificationChannelVerificationCode` API method or that was retrieved from a verified channel via `GetNotificationChannelVerificationCode`. For example, one might have "G-123456" or "TKNZGhhd2EyN3I1MnRnMjRv" (in general, one is only guaranteed that the code is valid UTF-8; one should not make any assumptions regarding the structure or format of the code).
SEE ALSO
Protobuf, Protobuf::Message, Google::Monitoring::V3::NotificationService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.