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

Represents a QueryService

Inheritance

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

Package

@google-cloud/monitoring

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

queryTimeSeries(request, callback)

public queryTimeSeries(request: google.monitoring.v3.IQueryTimeSeriesRequest, callback: google.monitoring.v3.QueryService.QueryTimeSeriesCallback): void;

Calls QueryTimeSeries.

Parameters
NameDescription
request IQueryTimeSeriesRequest

QueryTimeSeriesRequest message or plain object

callback QueryTimeSeriesCallback

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

Returns
TypeDescription
void

queryTimeSeries(request)

public queryTimeSeries(request: google.monitoring.v3.IQueryTimeSeriesRequest): Promise<google.monitoring.v3.QueryTimeSeriesResponse>;

Calls QueryTimeSeries.

Parameter
NameDescription
request IQueryTimeSeriesRequest

QueryTimeSeriesRequest message or plain object

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

Promise