public class Monitoring.Projects.NotificationChannels
extends java.lang.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(java.lang.String name,
NotificationChannel content)
Creates a new notification channel, representing a single notification endpoint such as an email
address, SMS number, or pagerduty service.
|
Monitoring.Projects.NotificationChannels.Delete |
delete(java.lang.String name)
Deletes a notification channel.
|
Monitoring.Projects.NotificationChannels.Get |
get(java.lang.String name)
Gets a single notification channel.
|
Monitoring.Projects.NotificationChannels.GetVerificationCode |
getVerificationCode(java.lang.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(java.lang.String name)
Lists the notification channels that have been created for the project.
|
Monitoring.Projects.NotificationChannels.Patch |
patch(java.lang.String name,
NotificationChannel content)
Updates a notification channel.
|
Monitoring.Projects.NotificationChannels.SendVerificationCode |
sendVerificationCode(java.lang.String name,
SendNotificationChannelVerificationCodeRequest content)
Causes a verification code to be delivered to the channel.
|
Monitoring.Projects.NotificationChannels.Verify |
verify(java.lang.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(java.lang.String name, NotificationChannel content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The project on which to execute the request. The format is:
projects/[PROJECT_ID]
Note that 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 NotificationChanneljava.io.IOExceptionpublic Monitoring.Projects.NotificationChannels.Delete delete(java.lang.String name) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The channel for which to execute the request. The format is
projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID].java.io.IOExceptionpublic Monitoring.Projects.NotificationChannels.Get get(java.lang.String name) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The channel for which to execute the request. The format is
projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID].java.io.IOExceptionpublic Monitoring.Projects.NotificationChannels.GetVerificationCode getVerificationCode(java.lang.String name, GetNotificationChannelVerificationCodeRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - 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 GetNotificationChannelVerificationCodeRequestjava.io.IOExceptionpublic Monitoring.Projects.NotificationChannels.List list(java.lang.String name) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The project on which to execute the request. The format is projects/[PROJECT_ID]. That is, 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.java.io.IOExceptionpublic Monitoring.Projects.NotificationChannels.Patch patch(java.lang.String name, NotificationChannel content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The full REST resource name for this channel. The syntax is:
projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
The [CHANNEL_ID] is automatically
assigned by the server on creation.content - the NotificationChanneljava.io.IOExceptionpublic Monitoring.Projects.NotificationChannels.SendVerificationCode sendVerificationCode(java.lang.String name, SendNotificationChannelVerificationCodeRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.name - The notification channel to which to send a verification code.content - the SendNotificationChannelVerificationCodeRequestjava.io.IOExceptionpublic Monitoring.Projects.NotificationChannels.Verify verify(java.lang.String name, VerifyNotificationChannelRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The notification channel to verify.content - the VerifyNotificationChannelRequestjava.io.IOException