Google Cloud Monitoring v3 API - Class SnoozeService.SnoozeServiceBase (3.5.0)

[BindServiceMethod(typeof(SnoozeService), "BindService")]
public abstract class SnoozeService.SnoozeServiceBase

Reference documentation and code samples for the Google Cloud Monitoring v3 API class SnoozeService.SnoozeServiceBase.

Base class for server-side implementations of SnoozeService

Inheritance

object > SnoozeService.SnoozeServiceBase

Namespace

Google.Cloud.Monitoring.V3

Assembly

Google.Cloud.Monitoring.V3.dll

Methods

CreateSnooze(CreateSnoozeRequest, ServerCallContext)

public virtual Task<Snooze> CreateSnooze(CreateSnoozeRequest request, ServerCallContext context)

Creates a Snooze that will prevent alerts, which match the provided criteria, from being opened. The Snooze applies for a specific time interval.

Parameters
NameDescription
requestCreateSnoozeRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskSnooze

The response to send back to the client (wrapped by a task).

GetSnooze(GetSnoozeRequest, ServerCallContext)

public virtual Task<Snooze> GetSnooze(GetSnoozeRequest request, ServerCallContext context)

Retrieves a Snooze by name.

Parameters
NameDescription
requestGetSnoozeRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskSnooze

The response to send back to the client (wrapped by a task).

ListSnoozes(ListSnoozesRequest, ServerCallContext)

public virtual Task<ListSnoozesResponse> ListSnoozes(ListSnoozesRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestListSnoozesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListSnoozesResponse

The response to send back to the client (wrapped by a task).

UpdateSnooze(UpdateSnoozeRequest, ServerCallContext)

public virtual Task<Snooze> UpdateSnooze(UpdateSnoozeRequest request, ServerCallContext context)

Updates a Snooze, identified by its name, with the parameters in the given Snooze object.

Parameters
NameDescription
requestUpdateSnoozeRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskSnooze

The response to send back to the client (wrapped by a task).