[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
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 |
CreateSnoozeRequest The request received from the client. |
context |
ServerCallContext The 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 |
GetSnoozeRequest The request received from the client. |
context |
ServerCallContext The 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 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 received from the client. |
context |
ServerCallContext The 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 |
UpdateSnoozeRequest The request received from the client. |
context |
ServerCallContext The 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). |