[BindServiceMethod(typeof(SnoozeService), "BindService")]
public abstract class SnoozeService.SnoozeServiceBaseReference documentation and code samples for the Google Cloud Monitoring v3 API class SnoozeService.SnoozeServiceBase.
Base class for server-side implementations of SnoozeService
Namespace
Google.Cloud.Monitoring.V3Assembly
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 | |
|---|---|
| Name | Description |
request |
CreateSnoozeRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
GetSnoozeRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListSnoozesRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
UpdateSnoozeRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskSnooze |
The response to send back to the client (wrapped by a task). |