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

Represents a ServiceMonitoringService

Inheritance

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

Package

@google-cloud/monitoring

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new ServiceMonitoringService 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): ServiceMonitoringService;

Creates new ServiceMonitoringService 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
ServiceMonitoringService

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

createService(request, callback)

public createService(request: google.monitoring.v3.ICreateServiceRequest, callback: google.monitoring.v3.ServiceMonitoringService.CreateServiceCallback): void;

Calls CreateService.

Parameters
NameDescription
request ICreateServiceRequest

CreateServiceRequest message or plain object

callback CreateServiceCallback

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

Returns
TypeDescription
void

createService(request)

public createService(request: google.monitoring.v3.ICreateServiceRequest): Promise<google.monitoring.v3.Service>;

Calls CreateService.

Parameter
NameDescription
request ICreateServiceRequest

CreateServiceRequest message or plain object

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

Promise

createServiceLevelObjective(request, callback)

public createServiceLevelObjective(request: google.monitoring.v3.ICreateServiceLevelObjectiveRequest, callback: google.monitoring.v3.ServiceMonitoringService.CreateServiceLevelObjectiveCallback): void;

Calls CreateServiceLevelObjective.

Parameters
NameDescription
request ICreateServiceLevelObjectiveRequest

CreateServiceLevelObjectiveRequest message or plain object

callback CreateServiceLevelObjectiveCallback

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

Returns
TypeDescription
void

createServiceLevelObjective(request)

public createServiceLevelObjective(request: google.monitoring.v3.ICreateServiceLevelObjectiveRequest): Promise<google.monitoring.v3.ServiceLevelObjective>;

Calls CreateServiceLevelObjective.

Parameter
NameDescription
request ICreateServiceLevelObjectiveRequest

CreateServiceLevelObjectiveRequest message or plain object

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

Promise

deleteService(request, callback)

public deleteService(request: google.monitoring.v3.IDeleteServiceRequest, callback: google.monitoring.v3.ServiceMonitoringService.DeleteServiceCallback): void;

Calls DeleteService.

Parameters
NameDescription
request IDeleteServiceRequest

DeleteServiceRequest message or plain object

callback DeleteServiceCallback

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

Returns
TypeDescription
void

deleteService(request)

public deleteService(request: google.monitoring.v3.IDeleteServiceRequest): Promise<google.protobuf.Empty>;

Calls DeleteService.

Parameter
NameDescription
request IDeleteServiceRequest

DeleteServiceRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

deleteServiceLevelObjective(request, callback)

public deleteServiceLevelObjective(request: google.monitoring.v3.IDeleteServiceLevelObjectiveRequest, callback: google.monitoring.v3.ServiceMonitoringService.DeleteServiceLevelObjectiveCallback): void;

Calls DeleteServiceLevelObjective.

Parameters
NameDescription
request IDeleteServiceLevelObjectiveRequest

DeleteServiceLevelObjectiveRequest message or plain object

callback DeleteServiceLevelObjectiveCallback

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

Returns
TypeDescription
void

deleteServiceLevelObjective(request)

public deleteServiceLevelObjective(request: google.monitoring.v3.IDeleteServiceLevelObjectiveRequest): Promise<google.protobuf.Empty>;

Calls DeleteServiceLevelObjective.

Parameter
NameDescription
request IDeleteServiceLevelObjectiveRequest

DeleteServiceLevelObjectiveRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getService(request, callback)

public getService(request: google.monitoring.v3.IGetServiceRequest, callback: google.monitoring.v3.ServiceMonitoringService.GetServiceCallback): void;

Calls GetService.

Parameters
NameDescription
request IGetServiceRequest

GetServiceRequest message or plain object

callback GetServiceCallback

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

Returns
TypeDescription
void

getService(request)

public getService(request: google.monitoring.v3.IGetServiceRequest): Promise<google.monitoring.v3.Service>;

Calls GetService.

Parameter
NameDescription
request IGetServiceRequest

GetServiceRequest message or plain object

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

Promise

getServiceLevelObjective(request, callback)

public getServiceLevelObjective(request: google.monitoring.v3.IGetServiceLevelObjectiveRequest, callback: google.monitoring.v3.ServiceMonitoringService.GetServiceLevelObjectiveCallback): void;

Calls GetServiceLevelObjective.

Parameters
NameDescription
request IGetServiceLevelObjectiveRequest

GetServiceLevelObjectiveRequest message or plain object

callback GetServiceLevelObjectiveCallback

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

Returns
TypeDescription
void

getServiceLevelObjective(request)

public getServiceLevelObjective(request: google.monitoring.v3.IGetServiceLevelObjectiveRequest): Promise<google.monitoring.v3.ServiceLevelObjective>;

Calls GetServiceLevelObjective.

Parameter
NameDescription
request IGetServiceLevelObjectiveRequest

GetServiceLevelObjectiveRequest message or plain object

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

Promise

listServiceLevelObjectives(request, callback)

public listServiceLevelObjectives(request: google.monitoring.v3.IListServiceLevelObjectivesRequest, callback: google.monitoring.v3.ServiceMonitoringService.ListServiceLevelObjectivesCallback): void;

Calls ListServiceLevelObjectives.

Parameters
NameDescription
request IListServiceLevelObjectivesRequest

ListServiceLevelObjectivesRequest message or plain object

callback ListServiceLevelObjectivesCallback

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

Returns
TypeDescription
void

listServiceLevelObjectives(request)

public listServiceLevelObjectives(request: google.monitoring.v3.IListServiceLevelObjectivesRequest): Promise<google.monitoring.v3.ListServiceLevelObjectivesResponse>;

Calls ListServiceLevelObjectives.

Parameter
NameDescription
request IListServiceLevelObjectivesRequest

ListServiceLevelObjectivesRequest message or plain object

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

Promise

listServices(request, callback)

public listServices(request: google.monitoring.v3.IListServicesRequest, callback: google.monitoring.v3.ServiceMonitoringService.ListServicesCallback): void;

Calls ListServices.

Parameters
NameDescription
request IListServicesRequest

ListServicesRequest message or plain object

callback ListServicesCallback

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

Returns
TypeDescription
void

listServices(request)

public listServices(request: google.monitoring.v3.IListServicesRequest): Promise<google.monitoring.v3.ListServicesResponse>;

Calls ListServices.

Parameter
NameDescription
request IListServicesRequest

ListServicesRequest message or plain object

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

Promise

updateService(request, callback)

public updateService(request: google.monitoring.v3.IUpdateServiceRequest, callback: google.monitoring.v3.ServiceMonitoringService.UpdateServiceCallback): void;

Calls UpdateService.

Parameters
NameDescription
request IUpdateServiceRequest

UpdateServiceRequest message or plain object

callback UpdateServiceCallback

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

Returns
TypeDescription
void

updateService(request)

public updateService(request: google.monitoring.v3.IUpdateServiceRequest): Promise<google.monitoring.v3.Service>;

Calls UpdateService.

Parameter
NameDescription
request IUpdateServiceRequest

UpdateServiceRequest message or plain object

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

Promise

updateServiceLevelObjective(request, callback)

public updateServiceLevelObjective(request: google.monitoring.v3.IUpdateServiceLevelObjectiveRequest, callback: google.monitoring.v3.ServiceMonitoringService.UpdateServiceLevelObjectiveCallback): void;

Calls UpdateServiceLevelObjective.

Parameters
NameDescription
request IUpdateServiceLevelObjectiveRequest

UpdateServiceLevelObjectiveRequest message or plain object

callback UpdateServiceLevelObjectiveCallback

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

Returns
TypeDescription
void

updateServiceLevelObjective(request)

public updateServiceLevelObjective(request: google.monitoring.v3.IUpdateServiceLevelObjectiveRequest): Promise<google.monitoring.v3.ServiceLevelObjective>;

Calls UpdateServiceLevelObjective.

Parameter
NameDescription
request IUpdateServiceLevelObjectiveRequest

UpdateServiceLevelObjectiveRequest message or plain object

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

Promise