Represents a QueryService
Inheritance
$protobuf.rpc.Service > protos.google.monitoring.v3.QueryServicePackage
@google-cloud/monitoringConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new QueryService 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): QueryService;
Creates new QueryService 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 |
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 | |
---|---|
Name | Description |
request |
IQueryTimeSeriesRequest
QueryTimeSeriesRequest message or plain object |
callback |
QueryTimeSeriesCallback
Node-style callback called with the error, if any, and QueryTimeSeriesResponse |
Returns | |
---|---|
Type | Description |
void |
queryTimeSeries(request)
public queryTimeSeries(request: google.monitoring.v3.IQueryTimeSeriesRequest): Promise<google.monitoring.v3.QueryTimeSeriesResponse>;
Calls QueryTimeSeries.
Parameter | |
---|---|
Name | Description |
request |
IQueryTimeSeriesRequest
QueryTimeSeriesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.monitoring.v3.QueryTimeSeriesResponse> | Promise |