[BindServiceMethod(typeof(AlertPolicyService), "BindService")]
public abstract class AlertPolicyServiceBaseBase class for server-side implementations of AlertPolicyService
Namespace
Google.Cloud.Monitoring.V3Assembly
Google.Cloud.Monitoring.V3.dll
Methods
CreateAlertPolicy(CreateAlertPolicyRequest, ServerCallContext)
public virtual Task<AlertPolicy> CreateAlertPolicy(CreateAlertPolicyRequest request, ServerCallContext context)Creates a new alerting policy.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateAlertPolicyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
Task<AlertPolicy> |
The response to send back to the client (wrapped by a task). |
DeleteAlertPolicy(DeleteAlertPolicyRequest, ServerCallContext)
public virtual Task<Empty> DeleteAlertPolicy(DeleteAlertPolicyRequest request, ServerCallContext context)Deletes an alerting policy.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteAlertPolicyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
Task<Empty> |
The response to send back to the client (wrapped by a task). |
GetAlertPolicy(GetAlertPolicyRequest, ServerCallContext)
public virtual Task<AlertPolicy> GetAlertPolicy(GetAlertPolicyRequest request, ServerCallContext context)Gets a single alerting policy.
| Parameters | |
|---|---|
| Name | Description |
request |
GetAlertPolicyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
Task<AlertPolicy> |
The response to send back to the client (wrapped by a task). |
ListAlertPolicies(ListAlertPoliciesRequest, ServerCallContext)
public virtual Task<ListAlertPoliciesResponse> ListAlertPolicies(ListAlertPoliciesRequest request, ServerCallContext context)Lists the existing alerting policies for the workspace.
| Parameters | |
|---|---|
| Name | Description |
request |
ListAlertPoliciesRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
Task<ListAlertPoliciesResponse> |
The response to send back to the client (wrapped by a task). |
UpdateAlertPolicy(UpdateAlertPolicyRequest, ServerCallContext)
public virtual Task<AlertPolicy> UpdateAlertPolicy(UpdateAlertPolicyRequest request, ServerCallContext context)Updates an alerting policy. You can either replace the entire policy with
a new one or replace only certain fields in the current alerting policy by
specifying the fields to be updated via updateMask. Returns the
updated alerting policy.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateAlertPolicyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
Task<AlertPolicy> |
The response to send back to the client (wrapped by a task). |