Google Cloud Monitoring v3 API - Class SnoozeService.SnoozeServiceClient (3.9.0)

public class SnoozeService.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 > ClientBaseSnoozeServiceSnoozeServiceClient > SnoozeService.SnoozeServiceClient

Namespace

Google.Cloud.Monitoring.V3

Assembly

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(ClientBaseConfiguration)

protected SnoozeServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

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, DateTime?, CancellationToken)

public virtual Snooze CreateSnooze(CreateSnoozeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 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
AsyncUnaryCallSnooze

The call object.

CreateSnoozeAsync(CreateSnoozeRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Snooze> CreateSnoozeAsync(CreateSnoozeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 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
AsyncUnaryCallSnooze

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, DateTime?, CancellationToken)

public virtual Snooze GetSnooze(GetSnoozeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 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
AsyncUnaryCallSnooze

The call object.

GetSnoozeAsync(GetSnoozeRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Snooze> GetSnoozeAsync(GetSnoozeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 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
AsyncUnaryCallSnooze

The call object.

ListSnoozes(ListSnoozesRequest, CallOptions)

public virtual ListSnoozesResponse ListSnoozes(ListSnoozesRequest request, CallOptions options)

Lists the Snoozes associated with a project. Can optionally pass in filter, which specifies predicates to match Snoozes.

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, DateTime?, CancellationToken)

public virtual ListSnoozesResponse ListSnoozes(ListSnoozesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists the Snoozes associated with a project. Can optionally pass in filter, which specifies predicates to match Snoozes.

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 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 Snoozes associated with a project. Can optionally pass in filter, which specifies predicates to match Snoozes.

Parameters
Name Description
request ListSnoozesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListSnoozesResponse

The call object.

ListSnoozesAsync(ListSnoozesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListSnoozesResponse> ListSnoozesAsync(ListSnoozesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists the Snoozes associated with a project. Can optionally pass in filter, which specifies predicates to match Snoozes.

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 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
AsyncUnaryCallListSnoozesResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override SnoozeService.SnoozeServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
SnoozeServiceSnoozeServiceClient
Overrides

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, DateTime?, CancellationToken)

public virtual Snooze UpdateSnooze(UpdateSnoozeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 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
AsyncUnaryCallSnooze

The call object.

UpdateSnoozeAsync(UpdateSnoozeRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Snooze> UpdateSnoozeAsync(UpdateSnoozeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 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
AsyncUnaryCallSnooze

The call object.