MetricService

google.monitoring.v3. MetricService

Represents a MetricService

Constructor

new MetricService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new MetricService 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

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

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

createMetricDescriptor(request, callback) → {undefined}

Calls CreateMetricDescriptor.

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

CreateMetricDescriptorRequest message or plain object

callback google.monitoring.v3.MetricService.CreateMetricDescriptorCallback

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

createMetricDescriptor(request) → {Promise.<google.api.MetricDescriptor>}

Calls CreateMetricDescriptor.

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

CreateMetricDescriptorRequest message or plain object

createTimeSeries(request, callback) → {undefined}

Calls CreateTimeSeries.

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

CreateTimeSeriesRequest message or plain object

callback google.monitoring.v3.MetricService.CreateTimeSeriesCallback

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

createTimeSeries(request) → {Promise.<google.protobuf.Empty>}

Calls CreateTimeSeries.

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

CreateTimeSeriesRequest message or plain object

deleteMetricDescriptor(request, callback) → {undefined}

Calls DeleteMetricDescriptor.

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

DeleteMetricDescriptorRequest message or plain object

callback google.monitoring.v3.MetricService.DeleteMetricDescriptorCallback

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

deleteMetricDescriptor(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteMetricDescriptor.

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

DeleteMetricDescriptorRequest message or plain object

getMetricDescriptor(request, callback) → {undefined}

Calls GetMetricDescriptor.

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

GetMetricDescriptorRequest message or plain object

callback google.monitoring.v3.MetricService.GetMetricDescriptorCallback

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

getMetricDescriptor(request) → {Promise.<google.api.MetricDescriptor>}

Calls GetMetricDescriptor.

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

GetMetricDescriptorRequest message or plain object

getMonitoredResourceDescriptor(request, callback) → {undefined}

Calls GetMonitoredResourceDescriptor.

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

GetMonitoredResourceDescriptorRequest message or plain object

callback google.monitoring.v3.MetricService.GetMonitoredResourceDescriptorCallback

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

getMonitoredResourceDescriptor(request) → {Promise.<google.api.MonitoredResourceDescriptor>}

Calls GetMonitoredResourceDescriptor.

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

GetMonitoredResourceDescriptorRequest message or plain object

listMetricDescriptors(request, callback) → {undefined}

Calls ListMetricDescriptors.

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

ListMetricDescriptorsRequest message or plain object

callback google.monitoring.v3.MetricService.ListMetricDescriptorsCallback

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

listMetricDescriptors(request) → {Promise.<google.monitoring.v3.ListMetricDescriptorsResponse>}

Calls ListMetricDescriptors.

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

ListMetricDescriptorsRequest message or plain object

listMonitoredResourceDescriptors(request, callback) → {undefined}

Calls ListMonitoredResourceDescriptors.

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

ListMonitoredResourceDescriptorsRequest message or plain object

callback google.monitoring.v3.MetricService.ListMonitoredResourceDescriptorsCallback

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

listMonitoredResourceDescriptors(request) → {Promise.<google.monitoring.v3.ListMonitoredResourceDescriptorsResponse>}

Calls ListMonitoredResourceDescriptors.

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

ListMonitoredResourceDescriptorsRequest message or plain object

listTimeSeries(request, callback) → {undefined}

Calls ListTimeSeries.

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

ListTimeSeriesRequest message or plain object

callback google.monitoring.v3.MetricService.ListTimeSeriesCallback

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

listTimeSeries(request) → {Promise.<google.monitoring.v3.ListTimeSeriesResponse>}

Calls ListTimeSeries.

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

ListTimeSeriesRequest message or plain object

Type Definitions

CreateMetricDescriptorCallback(error, responseopt)

Callback as used by google.monitoring.v3.MetricService#createMetricDescriptor.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.api.MetricDescriptor <optional>

MetricDescriptor

CreateTimeSeriesCallback(error, responseopt)

Callback as used by google.monitoring.v3.MetricService#createTimeSeries.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

DeleteMetricDescriptorCallback(error, responseopt)

Callback as used by google.monitoring.v3.MetricService#deleteMetricDescriptor.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetMetricDescriptorCallback(error, responseopt)

Callback as used by google.monitoring.v3.MetricService#getMetricDescriptor.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.api.MetricDescriptor <optional>

MetricDescriptor

GetMonitoredResourceDescriptorCallback(error, responseopt)

Callback as used by google.monitoring.v3.MetricService#getMonitoredResourceDescriptor.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.api.MonitoredResourceDescriptor <optional>

MonitoredResourceDescriptor

ListMetricDescriptorsCallback(error, responseopt)

Callback as used by google.monitoring.v3.MetricService#listMetricDescriptors.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.monitoring.v3.ListMetricDescriptorsResponse <optional>

ListMetricDescriptorsResponse

ListMonitoredResourceDescriptorsCallback(error, responseopt)

Callback as used by google.monitoring.v3.MetricService#listMonitoredResourceDescriptors.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.monitoring.v3.ListMonitoredResourceDescriptorsResponse <optional>

ListMonitoredResourceDescriptorsResponse

ListTimeSeriesCallback(error, responseopt)

Callback as used by google.monitoring.v3.MetricService#listTimeSeries.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.monitoring.v3.ListTimeSeriesResponse <optional>

ListTimeSeriesResponse