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

(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

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

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

Calls CreateAlertPolicy.

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

CreateAlertPolicyRequest message or plain object

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

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

Calls DeleteAlertPolicy.

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

DeleteAlertPolicyRequest message or plain object

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

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

Calls GetAlertPolicy.

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

GetAlertPolicyRequest message or plain object

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

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

Calls ListAlertPolicies.

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

ListAlertPoliciesRequest message or plain object

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

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

Calls UpdateAlertPolicy.

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

UpdateAlertPolicyRequest message or plain object

Type Definitions

CreateAlertPolicyCallback(error, responseopt)

Callback as used by google.monitoring.v3.AlertPolicyService#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 google.monitoring.v3.AlertPolicyService#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 google.monitoring.v3.AlertPolicyService#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 google.monitoring.v3.AlertPolicyService#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 google.monitoring.v3.AlertPolicyService#updateAlertPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.monitoring.v3.AlertPolicy <optional>

AlertPolicy