Google Cloud Monitoring v3 API - Class AlertPolicyService.AlertPolicyServiceBase (3.13.0)

[BindServiceMethod(typeof(AlertPolicyService), "BindService")]
public abstract class AlertPolicyService.AlertPolicyServiceBase

Reference documentation and code samples for the Google Cloud Monitoring v3 API class AlertPolicyService.AlertPolicyServiceBase.

Base class for server-side implementations of AlertPolicyService

Inheritance

object > AlertPolicyService.AlertPolicyServiceBase

Namespace

Google.Cloud.Monitoring.V3

Assembly

Google.Cloud.Monitoring.V3.dll

Methods

CreateAlertPolicy(CreateAlertPolicyRequest, ServerCallContext)

public virtual Task<AlertPolicy> CreateAlertPolicy(CreateAlertPolicyRequest request, ServerCallContext context)

Creates a new alerting policy.

Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.

Parameters
Name Description
request CreateAlertPolicyRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskAlertPolicy

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.

Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.

Parameters
Name Description
request DeleteAlertPolicyRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskEmpty

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 GetAlertPolicyRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskAlertPolicy

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 ListAlertPoliciesRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskListAlertPoliciesResponse

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.

Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.

Parameters
Name Description
request UpdateAlertPolicyRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskAlertPolicy

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