public class Monitoring.Projects.NotificationChannels extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Monitoring.Projects.NotificationChannels.Create |
class |
Monitoring.Projects.NotificationChannels.Delete |
class |
Monitoring.Projects.NotificationChannels.Get |
class |
Monitoring.Projects.NotificationChannels.GetVerificationCode |
class |
Monitoring.Projects.NotificationChannels.List |
class |
Monitoring.Projects.NotificationChannels.Patch |
class |
Monitoring.Projects.NotificationChannels.SendVerificationCode |
class |
Monitoring.Projects.NotificationChannels.Verify |
| Constructor and Description |
|---|
NotificationChannels() |
| Modifier and Type | Method and Description |
|---|---|
Monitoring.Projects.NotificationChannels.Create |
create(String name,
NotificationChannel content)
Creates a new notification channel, representing a single notification endpoint such as an email
address, SMS number, or PagerDuty service.Design your application to single-thread API calls that
modify the state of notification channels in a single project.
|
Monitoring.Projects.NotificationChannels.Delete |
delete(String name)
Deletes a notification channel.Design your application to single-thread API calls that modify the
state of notification channels in a single project.
|
Monitoring.Projects.NotificationChannels.Get |
get(String name)
Gets a single notification channel.
|
Monitoring.Projects.NotificationChannels.GetVerificationCode |
getVerificationCode(String name,
GetNotificationChannelVerificationCodeRequest content)
Requests a verification code for an already verified channel that can then be used in a call to
VerifyNotificationChannel() on a different channel with an equivalent identity in the same or in
a different project.
|
Monitoring.Projects.NotificationChannels.List |
list(String name)
Lists the notification channels that have been created for the project.
|
Monitoring.Projects.NotificationChannels.Patch |
patch(String name,
NotificationChannel content)
Updates a notification channel.
|
Monitoring.Projects.NotificationChannels.SendVerificationCode |
sendVerificationCode(String name,
SendNotificationChannelVerificationCodeRequest content)
Causes a verification code to be delivered to the channel.
|
Monitoring.Projects.NotificationChannels.Verify |
verify(String name,
VerifyNotificationChannelRequest content)
Verifies a NotificationChannel by proving receipt of the code delivered to the channel as a
result of calling SendNotificationChannelVerificationCode.
|
public Monitoring.Projects.NotificationChannels.Create create(String name, NotificationChannel content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. 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.content - the NotificationChannelIOExceptionpublic Monitoring.Projects.NotificationChannels.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The channel for which to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]IOExceptionpublic Monitoring.Projects.NotificationChannels.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The channel for which to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]IOExceptionpublic Monitoring.Projects.NotificationChannels.GetVerificationCode getVerificationCode(String name, GetNotificationChannelVerificationCodeRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. 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.content - the GetNotificationChannelVerificationCodeRequestIOExceptionpublic Monitoring.Projects.NotificationChannels.List list(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. 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 operation.IOExceptionpublic Monitoring.Projects.NotificationChannels.Patch patch(String name, NotificationChannel content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Identifier. The full REST resource name for this channel. The format is:
projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] The [CHANNEL_ID] is
automatically assigned by the server on creation.content - the NotificationChannelIOExceptionpublic Monitoring.Projects.NotificationChannels.SendVerificationCode sendVerificationCode(String name, SendNotificationChannelVerificationCodeRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.name - Required. The notification channel to which to send a verification code.content - the SendNotificationChannelVerificationCodeRequestIOExceptionpublic Monitoring.Projects.NotificationChannels.Verify verify(String name, VerifyNotificationChannelRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The notification channel to verify.content - the VerifyNotificationChannelRequestIOExceptionCopyright © 2011–2025 Google. All rights reserved.