Represents an AlertPolicyService
Inheritance
$protobuf.rpc.Service > protos.google.monitoring.v3.AlertPolicyServicePackage
@google-cloud/monitoringConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new AlertPolicyService service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
ICreateAlertPolicyRequest
CreateAlertPolicyRequest message or plain object |
callback |
CreateAlertPolicyCallback
Node-style callback called with the error, if any, and AlertPolicy |
Returns | |
---|---|
Type | Description |
void |
createAlertPolicy(request)
public createAlertPolicy(request: google.monitoring.v3.ICreateAlertPolicyRequest): Promise<google.monitoring.v3.AlertPolicy>;
Calls CreateAlertPolicy.
Parameter | |
---|---|
Name | Description |
request |
ICreateAlertPolicyRequest
CreateAlertPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IDeleteAlertPolicyRequest
DeleteAlertPolicyRequest message or plain object |
callback |
DeleteAlertPolicyCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteAlertPolicy(request)
public deleteAlertPolicy(request: google.monitoring.v3.IDeleteAlertPolicyRequest): Promise<google.protobuf.Empty>;
Calls DeleteAlertPolicy.
Parameter | |
---|---|
Name | Description |
request |
IDeleteAlertPolicyRequest
DeleteAlertPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IGetAlertPolicyRequest
GetAlertPolicyRequest message or plain object |
callback |
GetAlertPolicyCallback
Node-style callback called with the error, if any, and AlertPolicy |
Returns | |
---|---|
Type | Description |
void |
getAlertPolicy(request)
public getAlertPolicy(request: google.monitoring.v3.IGetAlertPolicyRequest): Promise<google.monitoring.v3.AlertPolicy>;
Calls GetAlertPolicy.
Parameter | |
---|---|
Name | Description |
request |
IGetAlertPolicyRequest
GetAlertPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IListAlertPoliciesRequest
ListAlertPoliciesRequest message or plain object |
callback |
ListAlertPoliciesCallback
Node-style callback called with the error, if any, and ListAlertPoliciesResponse |
Returns | |
---|---|
Type | Description |
void |
listAlertPolicies(request)
public listAlertPolicies(request: google.monitoring.v3.IListAlertPoliciesRequest): Promise<google.monitoring.v3.ListAlertPoliciesResponse>;
Calls ListAlertPolicies.
Parameter | |
---|---|
Name | Description |
request |
IListAlertPoliciesRequest
ListAlertPoliciesRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IUpdateAlertPolicyRequest
UpdateAlertPolicyRequest message or plain object |
callback |
UpdateAlertPolicyCallback
Node-style callback called with the error, if any, and AlertPolicy |
Returns | |
---|---|
Type | Description |
void |
updateAlertPolicy(request)
public updateAlertPolicy(request: google.monitoring.v3.IUpdateAlertPolicyRequest): Promise<google.monitoring.v3.AlertPolicy>;
Calls UpdateAlertPolicy.
Parameter | |
---|---|
Name | Description |
request |
IUpdateAlertPolicyRequest
UpdateAlertPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.monitoring.v3.AlertPolicy> | Promise |