public class NotificationChannelService.NotificationChannelServiceClient : ClientBase<NotificationChannelService.NotificationChannelServiceClient>
Reference documentation and code samples for the Google Cloud Monitoring v3 API class NotificationChannelService.NotificationChannelServiceClient.
Client for NotificationChannelService
Inheritance
object > ClientBase > ClientBaseNotificationChannelServiceNotificationChannelServiceClient > NotificationChannelService.NotificationChannelServiceClientNamespace
Google.Cloud.Monitoring.V3Assembly
Google.Cloud.Monitoring.V3.dll
Constructors
NotificationChannelServiceClient()
protected NotificationChannelServiceClient()
Protected parameterless constructor to allow creation of test doubles.
NotificationChannelServiceClient(CallInvoker)
public NotificationChannelServiceClient(CallInvoker callInvoker)
Creates a new client for NotificationChannelService that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
NotificationChannelServiceClient(ChannelBase)
public NotificationChannelServiceClient(ChannelBase channel)
Creates a new client for NotificationChannelService
Parameter | |
---|---|
Name | Description |
channel | ChannelBase The channel to use to make remote calls. |
NotificationChannelServiceClient(ClientBaseConfiguration)
protected NotificationChannelServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBaseClientBaseConfiguration The client configuration. |
Methods
CreateNotificationChannel(CreateNotificationChannelRequest, CallOptions)
public virtual NotificationChannel CreateNotificationChannel(CreateNotificationChannelRequest request, CallOptions options)
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. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.
Parameters | |
---|---|
Name | Description |
request | CreateNotificationChannelRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
NotificationChannel | The response received from the server. |
CreateNotificationChannel(CreateNotificationChannelRequest, Metadata, DateTime?, CancellationToken)
public virtual NotificationChannel CreateNotificationChannel(CreateNotificationChannelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.
Parameters | |
---|---|
Name | Description |
request | CreateNotificationChannelRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
NotificationChannel | The response received from the server. |
CreateNotificationChannelAsync(CreateNotificationChannelRequest, CallOptions)
public virtual AsyncUnaryCall<NotificationChannel> CreateNotificationChannelAsync(CreateNotificationChannelRequest request, CallOptions options)
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. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.
Parameters | |
---|---|
Name | Description |
request | CreateNotificationChannelRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallNotificationChannel | The call object. |
CreateNotificationChannelAsync(CreateNotificationChannelRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<NotificationChannel> CreateNotificationChannelAsync(CreateNotificationChannelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.
Parameters | |
---|---|
Name | Description |
request | CreateNotificationChannelRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallNotificationChannel | The call object. |
DeleteNotificationChannel(DeleteNotificationChannelRequest, CallOptions)
public virtual Empty DeleteNotificationChannel(DeleteNotificationChannelRequest request, CallOptions options)
Deletes a notification channel.
Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.
Parameters | |
---|---|
Name | Description |
request | DeleteNotificationChannelRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Empty | The response received from the server. |
DeleteNotificationChannel(DeleteNotificationChannelRequest, Metadata, DateTime?, CancellationToken)
public virtual Empty DeleteNotificationChannel(DeleteNotificationChannelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Deletes a notification channel.
Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.
Parameters | |
---|---|
Name | Description |
request | DeleteNotificationChannelRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Empty | The response received from the server. |
DeleteNotificationChannelAsync(DeleteNotificationChannelRequest, CallOptions)
public virtual AsyncUnaryCall<Empty> DeleteNotificationChannelAsync(DeleteNotificationChannelRequest request, CallOptions options)
Deletes a notification channel.
Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.
Parameters | |
---|---|
Name | Description |
request | DeleteNotificationChannelRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallEmpty | The call object. |
DeleteNotificationChannelAsync(DeleteNotificationChannelRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Empty> DeleteNotificationChannelAsync(DeleteNotificationChannelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Deletes a notification channel.
Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.
Parameters | |
---|---|
Name | Description |
request | DeleteNotificationChannelRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallEmpty | The call object. |