AlertPolicyService

google.monitoring.v3. AlertPolicyService

Represents an AlertPolicyService

Constructor

new AlertPolicyService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new AlertPolicyService service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

createAlertPolicy(request, callback) → {undefined}

Calls CreateAlertPolicy.

Parameters:
Name Type Description
request google.monitoring.v3.ICreateAlertPolicyRequest

CreateAlertPolicyRequest message or plain object

callback google.monitoring.v3.AlertPolicyService.CreateAlertPolicyCallback

Node-style callback called with the error, if any, and AlertPolicy

Returns:
Type Description
undefined

createAlertPolicy(request) → {Promise.<google.monitoring.v3.AlertPolicy>}

Calls CreateAlertPolicy.

Parameters:
Name Type Description
request google.monitoring.v3.ICreateAlertPolicyRequest

CreateAlertPolicyRequest message or plain object

Returns:
Type Description
Promise.<google.monitoring.v3.AlertPolicy>

Promise

deleteAlertPolicy(request, callback) → {undefined}

Calls DeleteAlertPolicy.

Parameters:
Name Type Description
request google.monitoring.v3.IDeleteAlertPolicyRequest

DeleteAlertPolicyRequest message or plain object

callback google.monitoring.v3.AlertPolicyService.DeleteAlertPolicyCallback

Node-style callback called with the error, if any, and Empty

Returns:
Type Description
undefined

deleteAlertPolicy(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteAlertPolicy.

Parameters:
Name Type Description
request google.monitoring.v3.IDeleteAlertPolicyRequest

DeleteAlertPolicyRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

getAlertPolicy(request, callback) → {undefined}

Calls GetAlertPolicy.

Parameters:
Name Type Description
request google.monitoring.v3.IGetAlertPolicyRequest

GetAlertPolicyRequest message or plain object

callback google.monitoring.v3.AlertPolicyService.GetAlertPolicyCallback

Node-style callback called with the error, if any, and AlertPolicy

Returns:
Type Description
undefined

getAlertPolicy(request) → {Promise.<google.monitoring.v3.AlertPolicy>}

Calls GetAlertPolicy.

Parameters:
Name Type Description
request google.monitoring.v3.IGetAlertPolicyRequest

GetAlertPolicyRequest message or plain object

Returns:
Type Description
Promise.<google.monitoring.v3.AlertPolicy>

Promise

listAlertPolicies(request, callback) → {undefined}

Calls ListAlertPolicies.

Parameters:
Name Type Description
request google.monitoring.v3.IListAlertPoliciesRequest

ListAlertPoliciesRequest message or plain object

callback google.monitoring.v3.AlertPolicyService.ListAlertPoliciesCallback

Node-style callback called with the error, if any, and ListAlertPoliciesResponse

Returns:
Type Description
undefined

listAlertPolicies(request) → {Promise.<google.monitoring.v3.ListAlertPoliciesResponse>}

Calls ListAlertPolicies.

Parameters:
Name Type Description
request google.monitoring.v3.IListAlertPoliciesRequest

ListAlertPoliciesRequest message or plain object

Returns:
Type Description
Promise.<google.monitoring.v3.ListAlertPoliciesResponse>

Promise

updateAlertPolicy(request, callback) → {undefined}

Calls UpdateAlertPolicy.

Parameters:
Name Type Description
request google.monitoring.v3.IUpdateAlertPolicyRequest

UpdateAlertPolicyRequest message or plain object

callback google.monitoring.v3.AlertPolicyService.UpdateAlertPolicyCallback

Node-style callback called with the error, if any, and AlertPolicy

Returns:
Type Description
undefined

updateAlertPolicy(request) → {Promise.<google.monitoring.v3.AlertPolicy>}

Calls UpdateAlertPolicy.

Parameters:
Name Type Description
request google.monitoring.v3.IUpdateAlertPolicyRequest

UpdateAlertPolicyRequest message or plain object

Returns:
Type Description
Promise.<google.monitoring.v3.AlertPolicy>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {AlertPolicyService}

Creates new AlertPolicyService service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
AlertPolicyService

RPC service. Useful where requests and/or responses are streamed.

Type Definitions

CreateAlertPolicyCallback(error, responseopt)

Callback as used by createAlertPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.monitoring.v3.AlertPolicy <optional>

AlertPolicy

DeleteAlertPolicyCallback(error, responseopt)

Callback as used by deleteAlertPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetAlertPolicyCallback(error, responseopt)

Callback as used by getAlertPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.monitoring.v3.AlertPolicy <optional>

AlertPolicy

ListAlertPoliciesCallback(error, responseopt)

Callback as used by listAlertPolicies.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.monitoring.v3.ListAlertPoliciesResponse <optional>

ListAlertPoliciesResponse

UpdateAlertPolicyCallback(error, responseopt)

Callback as used by updateAlertPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.monitoring.v3.AlertPolicy <optional>

AlertPolicy