Class protos.google.monitoring.v3.AlertPolicyService (4.0.0)

Represents an AlertPolicyService

Inheritance

$protobuf.rpc.Service > protos.google.monitoring.v3.AlertPolicyService

Package

@google-cloud/monitoring

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new AlertPolicyService service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AlertPolicyService;

Creates new AlertPolicyService service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
AlertPolicyService

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

createAlertPolicy(request, callback)

public createAlertPolicy(request: google.monitoring.v3.ICreateAlertPolicyRequest, callback: google.monitoring.v3.AlertPolicyService.CreateAlertPolicyCallback): void;

Calls CreateAlertPolicy.

Parameters
NameDescription
request ICreateAlertPolicyRequest

CreateAlertPolicyRequest message or plain object

callback CreateAlertPolicyCallback

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

Returns
TypeDescription
void

createAlertPolicy(request)

public createAlertPolicy(request: google.monitoring.v3.ICreateAlertPolicyRequest): Promise<google.monitoring.v3.AlertPolicy>;

Calls CreateAlertPolicy.

Parameter
NameDescription
request ICreateAlertPolicyRequest

CreateAlertPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.monitoring.v3.AlertPolicy>

Promise

deleteAlertPolicy(request, callback)

public deleteAlertPolicy(request: google.monitoring.v3.IDeleteAlertPolicyRequest, callback: google.monitoring.v3.AlertPolicyService.DeleteAlertPolicyCallback): void;

Calls DeleteAlertPolicy.

Parameters
NameDescription
request IDeleteAlertPolicyRequest

DeleteAlertPolicyRequest message or plain object

callback DeleteAlertPolicyCallback

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

Returns
TypeDescription
void

deleteAlertPolicy(request)

public deleteAlertPolicy(request: google.monitoring.v3.IDeleteAlertPolicyRequest): Promise<google.protobuf.Empty>;

Calls DeleteAlertPolicy.

Parameter
NameDescription
request IDeleteAlertPolicyRequest

DeleteAlertPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getAlertPolicy(request, callback)

public getAlertPolicy(request: google.monitoring.v3.IGetAlertPolicyRequest, callback: google.monitoring.v3.AlertPolicyService.GetAlertPolicyCallback): void;

Calls GetAlertPolicy.

Parameters
NameDescription
request IGetAlertPolicyRequest

GetAlertPolicyRequest message or plain object

callback GetAlertPolicyCallback

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

Returns
TypeDescription
void

getAlertPolicy(request)

public getAlertPolicy(request: google.monitoring.v3.IGetAlertPolicyRequest): Promise<google.monitoring.v3.AlertPolicy>;

Calls GetAlertPolicy.

Parameter
NameDescription
request IGetAlertPolicyRequest

GetAlertPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.monitoring.v3.AlertPolicy>

Promise

listAlertPolicies(request, callback)

public listAlertPolicies(request: google.monitoring.v3.IListAlertPoliciesRequest, callback: google.monitoring.v3.AlertPolicyService.ListAlertPoliciesCallback): void;

Calls ListAlertPolicies.

Parameters
NameDescription
request IListAlertPoliciesRequest

ListAlertPoliciesRequest message or plain object

callback ListAlertPoliciesCallback

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

Returns
TypeDescription
void

listAlertPolicies(request)

public listAlertPolicies(request: google.monitoring.v3.IListAlertPoliciesRequest): Promise<google.monitoring.v3.ListAlertPoliciesResponse>;

Calls ListAlertPolicies.

Parameter
NameDescription
request IListAlertPoliciesRequest

ListAlertPoliciesRequest message or plain object

Returns
TypeDescription
Promise<google.monitoring.v3.ListAlertPoliciesResponse>

Promise

updateAlertPolicy(request, callback)

public updateAlertPolicy(request: google.monitoring.v3.IUpdateAlertPolicyRequest, callback: google.monitoring.v3.AlertPolicyService.UpdateAlertPolicyCallback): void;

Calls UpdateAlertPolicy.

Parameters
NameDescription
request IUpdateAlertPolicyRequest

UpdateAlertPolicyRequest message or plain object

callback UpdateAlertPolicyCallback

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

Returns
TypeDescription
void

updateAlertPolicy(request)

public updateAlertPolicy(request: google.monitoring.v3.IUpdateAlertPolicyRequest): Promise<google.monitoring.v3.AlertPolicy>;

Calls UpdateAlertPolicy.

Parameter
NameDescription
request IUpdateAlertPolicyRequest

UpdateAlertPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.monitoring.v3.AlertPolicy>

Promise