QueryService

google.monitoring.v3. QueryService

Represents a QueryService

Constructor

new QueryService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new QueryService service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

queryTimeSeries(request, callback) → {undefined}

Calls QueryTimeSeries.

Parameters:
Name Type Description
request google.monitoring.v3.IQueryTimeSeriesRequest

QueryTimeSeriesRequest message or plain object

callback google.monitoring.v3.QueryService.QueryTimeSeriesCallback

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

Returns:
Type Description
undefined

queryTimeSeries(request) → {Promise.<google.monitoring.v3.QueryTimeSeriesResponse>}

Calls QueryTimeSeries.

Parameters:
Name Type Description
request google.monitoring.v3.IQueryTimeSeriesRequest

QueryTimeSeriesRequest message or plain object

Returns:
Type Description
Promise.<google.monitoring.v3.QueryTimeSeriesResponse>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {QueryService}

Creates new QueryService service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
QueryService

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

Type Definitions

QueryTimeSeriesCallback(error, responseopt)

Callback as used by queryTimeSeries.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.monitoring.v3.QueryTimeSeriesResponse <optional>

QueryTimeSeriesResponse