Class protos.google.monitoring.v3.MetricService

Represents a MetricService

Inheritance

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

Package

@google-cloud/monitoring

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

createMetricDescriptor(request, callback)

public createMetricDescriptor(request: google.monitoring.v3.ICreateMetricDescriptorRequest, callback: google.monitoring.v3.MetricService.CreateMetricDescriptorCallback): void;

Calls CreateMetricDescriptor.

Parameters
NameDescription
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

Returns
TypeDescription
void

createMetricDescriptor(request)

public createMetricDescriptor(request: google.monitoring.v3.ICreateMetricDescriptorRequest): Promise<google.api.MetricDescriptor>;

Calls CreateMetricDescriptor.

Parameter
NameDescription
request google.monitoring.v3.ICreateMetricDescriptorRequest

CreateMetricDescriptorRequest message or plain object

Returns
TypeDescription
Promise<google.api.MetricDescriptor>

Promise

createTimeSeries(request, callback)

public createTimeSeries(request: google.monitoring.v3.ICreateTimeSeriesRequest, callback: google.monitoring.v3.MetricService.CreateTimeSeriesCallback): void;

Calls CreateTimeSeries.

Parameters
NameDescription
request ICreateTimeSeriesRequest

CreateTimeSeriesRequest message or plain object

callback google.monitoring.v3.MetricService.CreateTimeSeriesCallback

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

Returns
TypeDescription
void

createTimeSeries(request)

public createTimeSeries(request: google.monitoring.v3.ICreateTimeSeriesRequest): Promise<google.protobuf.Empty>;

Calls CreateTimeSeries.

Parameter
NameDescription
request ICreateTimeSeriesRequest

CreateTimeSeriesRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

deleteMetricDescriptor(request, callback)

public deleteMetricDescriptor(request: google.monitoring.v3.IDeleteMetricDescriptorRequest, callback: google.monitoring.v3.MetricService.DeleteMetricDescriptorCallback): void;

Calls DeleteMetricDescriptor.

Parameters
NameDescription
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

Returns
TypeDescription
void

deleteMetricDescriptor(request)

public deleteMetricDescriptor(request: google.monitoring.v3.IDeleteMetricDescriptorRequest): Promise<google.protobuf.Empty>;

Calls DeleteMetricDescriptor.

Parameter
NameDescription
request google.monitoring.v3.IDeleteMetricDescriptorRequest

DeleteMetricDescriptorRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getMetricDescriptor(request, callback)

public getMetricDescriptor(request: google.monitoring.v3.IGetMetricDescriptorRequest, callback: google.monitoring.v3.MetricService.GetMetricDescriptorCallback): void;

Calls GetMetricDescriptor.

Parameters
NameDescription
request IGetMetricDescriptorRequest

GetMetricDescriptorRequest message or plain object

callback google.monitoring.v3.MetricService.GetMetricDescriptorCallback

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

Returns
TypeDescription
void

getMetricDescriptor(request)

public getMetricDescriptor(request: google.monitoring.v3.IGetMetricDescriptorRequest): Promise<google.api.MetricDescriptor>;

Calls GetMetricDescriptor.

Parameter
NameDescription
request IGetMetricDescriptorRequest

GetMetricDescriptorRequest message or plain object

Returns
TypeDescription
Promise<google.api.MetricDescriptor>

Promise

getMonitoredResourceDescriptor(request, callback)

public getMonitoredResourceDescriptor(request: google.monitoring.v3.IGetMonitoredResourceDescriptorRequest, callback: google.monitoring.v3.MetricService.GetMonitoredResourceDescriptorCallback): void;

Calls GetMonitoredResourceDescriptor.

Parameters
NameDescription
request IGetMonitoredResourceDescriptorRequest

GetMonitoredResourceDescriptorRequest message or plain object

callback google.monitoring.v3.MetricService.GetMonitoredResourceDescriptorCallback

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

Returns
TypeDescription
void

getMonitoredResourceDescriptor(request)

public getMonitoredResourceDescriptor(request: google.monitoring.v3.IGetMonitoredResourceDescriptorRequest): Promise<google.api.MonitoredResourceDescriptor>;

Calls GetMonitoredResourceDescriptor.

Parameter
NameDescription
request IGetMonitoredResourceDescriptorRequest

GetMonitoredResourceDescriptorRequest message or plain object

Returns
TypeDescription
Promise<google.api.MonitoredResourceDescriptor>

Promise

listMetricDescriptors(request, callback)

public listMetricDescriptors(request: google.monitoring.v3.IListMetricDescriptorsRequest, callback: google.monitoring.v3.MetricService.ListMetricDescriptorsCallback): void;

Calls ListMetricDescriptors.

Parameters
NameDescription
request IListMetricDescriptorsRequest

ListMetricDescriptorsRequest message or plain object

callback google.monitoring.v3.MetricService.ListMetricDescriptorsCallback

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

Returns
TypeDescription
void

listMetricDescriptors(request)

public listMetricDescriptors(request: google.monitoring.v3.IListMetricDescriptorsRequest): Promise<google.monitoring.v3.ListMetricDescriptorsResponse>;

Calls ListMetricDescriptors.

Parameter
NameDescription
request IListMetricDescriptorsRequest

ListMetricDescriptorsRequest message or plain object

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

Promise

listMonitoredResourceDescriptors(request, callback)

public listMonitoredResourceDescriptors(request: google.monitoring.v3.IListMonitoredResourceDescriptorsRequest, callback: google.monitoring.v3.MetricService.ListMonitoredResourceDescriptorsCallback): void;

Calls ListMonitoredResourceDescriptors.

Parameters
NameDescription
request IListMonitoredResourceDescriptorsRequest

ListMonitoredResourceDescriptorsRequest message or plain object

callback google.monitoring.v3.MetricService.ListMonitoredResourceDescriptorsCallback

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

Returns
TypeDescription
void

listMonitoredResourceDescriptors(request)

public listMonitoredResourceDescriptors(request: google.monitoring.v3.IListMonitoredResourceDescriptorsRequest): Promise<google.monitoring.v3.ListMonitoredResourceDescriptorsResponse>;

Calls ListMonitoredResourceDescriptors.

Parameter
NameDescription
request IListMonitoredResourceDescriptorsRequest

ListMonitoredResourceDescriptorsRequest message or plain object

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

Promise

listTimeSeries(request, callback)

public listTimeSeries(request: google.monitoring.v3.IListTimeSeriesRequest, callback: google.monitoring.v3.MetricService.ListTimeSeriesCallback): void;

Calls ListTimeSeries.

Parameters
NameDescription
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

Returns
TypeDescription
void

listTimeSeries(request)

public listTimeSeries(request: google.monitoring.v3.IListTimeSeriesRequest): Promise<google.monitoring.v3.ListTimeSeriesResponse>;

Calls ListTimeSeries.

Parameter
NameDescription
request google.monitoring.v3.IListTimeSeriesRequest

ListTimeSeriesRequest message or plain object

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

Promise