public class SnoozeServiceClient : ClientBase<SnoozeService.SnoozeServiceClient>
Reference documentation and code samples for the Google Cloud Monitoring v3 API class SnoozeService.SnoozeServiceClient.
Client for SnoozeService
Inheritance
Object > ClientBase > ClientBase<SnoozeService.SnoozeServiceClient> > SnoozeService.SnoozeServiceClientNamespace
Google.Cloud.Monitoring.V3Assembly
Google.Cloud.Monitoring.V3.dll
Constructors
SnoozeServiceClient()
protected SnoozeServiceClient()
Protected parameterless constructor to allow creation of test doubles.
SnoozeServiceClient(CallInvoker)
public SnoozeServiceClient(CallInvoker callInvoker)
Creates a new client for SnoozeService that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
SnoozeServiceClient(ChannelBase)
public SnoozeServiceClient(ChannelBase channel)
Creates a new client for SnoozeService
Parameter | |
---|---|
Name | Description |
channel | ChannelBase The channel to use to make remote calls. |
SnoozeServiceClient(ClientBase.ClientBaseConfiguration)
protected SnoozeServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration The client configuration. |
Methods
CreateSnooze(CreateSnoozeRequest, CallOptions)
public virtual Snooze CreateSnooze(CreateSnoozeRequest request, CallOptions options)
Creates a Snooze
that will prevent alerts, which match the provided
criteria, from being opened. The Snooze
applies for a specific time
interval.
Parameters | |
---|---|
Name | Description |
request | CreateSnoozeRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Snooze | The response received from the server. |
CreateSnooze(CreateSnoozeRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Snooze CreateSnooze(CreateSnoozeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Creates a Snooze
that will prevent alerts, which match the provided
criteria, from being opened. The Snooze
applies for a specific time
interval.
Parameters | |
---|---|
Name | Description |
request | CreateSnoozeRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
Snooze | The response received from the server. |
CreateSnoozeAsync(CreateSnoozeRequest, CallOptions)
public virtual AsyncUnaryCall<Snooze> CreateSnoozeAsync(CreateSnoozeRequest request, CallOptions options)
Creates a Snooze
that will prevent alerts, which match the provided
criteria, from being opened. The Snooze
applies for a specific time
interval.
Parameters | |
---|---|
Name | Description |
request | CreateSnoozeRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Snooze> | The call object. |
CreateSnoozeAsync(CreateSnoozeRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Snooze> CreateSnoozeAsync(CreateSnoozeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Creates a Snooze
that will prevent alerts, which match the provided
criteria, from being opened. The Snooze
applies for a specific time
interval.
Parameters | |
---|---|
Name | Description |
request | CreateSnoozeRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
AsyncUnaryCall<Snooze> | The call object. |
GetSnooze(GetSnoozeRequest, CallOptions)
public virtual Snooze GetSnooze(GetSnoozeRequest request, CallOptions options)
Retrieves a Snooze
by name
.
Parameters | |
---|---|
Name | Description |
request | GetSnoozeRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Snooze | The response received from the server. |
GetSnooze(GetSnoozeRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Snooze GetSnooze(GetSnoozeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Retrieves a Snooze
by name
.
Parameters | |
---|---|
Name | Description |
request | GetSnoozeRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
Snooze | The response received from the server. |
GetSnoozeAsync(GetSnoozeRequest, CallOptions)
public virtual AsyncUnaryCall<Snooze> GetSnoozeAsync(GetSnoozeRequest request, CallOptions options)
Retrieves a Snooze
by name
.
Parameters | |
---|---|
Name | Description |
request | GetSnoozeRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Snooze> | The call object. |
GetSnoozeAsync(GetSnoozeRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Snooze> GetSnoozeAsync(GetSnoozeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Retrieves a Snooze
by name
.
Parameters | |
---|---|
Name | Description |
request | GetSnoozeRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
AsyncUnaryCall<Snooze> | The call object. |
ListSnoozes(ListSnoozesRequest, CallOptions)
public virtual ListSnoozesResponse ListSnoozes(ListSnoozesRequest request, CallOptions options)
Lists the Snooze
s associated with a project. Can optionally pass in
filter
, which specifies predicates to match Snooze
s.
Parameters | |
---|---|
Name | Description |
request | ListSnoozesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
ListSnoozesResponse | The response received from the server. |
ListSnoozes(ListSnoozesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual ListSnoozesResponse ListSnoozes(ListSnoozesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Lists the Snooze
s associated with a project. Can optionally pass in
filter
, which specifies predicates to match Snooze
s.
Parameters | |
---|---|
Name | Description |
request | ListSnoozesRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
ListSnoozesResponse | The response received from the server. |
ListSnoozesAsync(ListSnoozesRequest, CallOptions)
public virtual AsyncUnaryCall<ListSnoozesResponse> ListSnoozesAsync(ListSnoozesRequest request, CallOptions options)
Lists the Snooze
s associated with a project. Can optionally pass in
filter
, which specifies predicates to match Snooze
s.
Parameters | |
---|---|
Name | Description |
request | ListSnoozesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<ListSnoozesResponse> | The call object. |
ListSnoozesAsync(ListSnoozesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<ListSnoozesResponse> ListSnoozesAsync(ListSnoozesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Lists the Snooze
s associated with a project. Can optionally pass in
filter
, which specifies predicates to match Snooze
s.
Parameters | |
---|---|
Name | Description |
request | ListSnoozesRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
AsyncUnaryCall<ListSnoozesResponse> | The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override SnoozeService.SnoozeServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
SnoozeService.SnoozeServiceClient |
UpdateSnooze(UpdateSnoozeRequest, CallOptions)
public virtual Snooze UpdateSnooze(UpdateSnoozeRequest request, CallOptions options)
Updates a Snooze
, identified by its name
, with the parameters in the
given Snooze
object.
Parameters | |
---|---|
Name | Description |
request | UpdateSnoozeRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Snooze | The response received from the server. |
UpdateSnooze(UpdateSnoozeRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Snooze UpdateSnooze(UpdateSnoozeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Updates a Snooze
, identified by its name
, with the parameters in the
given Snooze
object.
Parameters | |
---|---|
Name | Description |
request | UpdateSnoozeRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
Snooze | The response received from the server. |
UpdateSnoozeAsync(UpdateSnoozeRequest, CallOptions)
public virtual AsyncUnaryCall<Snooze> UpdateSnoozeAsync(UpdateSnoozeRequest request, CallOptions options)
Updates a Snooze
, identified by its name
, with the parameters in the
given Snooze
object.
Parameters | |
---|---|
Name | Description |
request | UpdateSnoozeRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Snooze> | The call object. |
UpdateSnoozeAsync(UpdateSnoozeRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Snooze> UpdateSnoozeAsync(UpdateSnoozeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Updates a Snooze
, identified by its name
, with the parameters in the
given Snooze
object.
Parameters | |
---|---|
Name | Description |
request | UpdateSnoozeRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
AsyncUnaryCall<Snooze> | The call object. |