Represents a MetricService
Inheritance
$protobuf.rpc.Service > protos.google.monitoring.v3.MetricServicePackage
@google-cloud/monitoringConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new MetricService 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): MetricService;
Creates new MetricService 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 |
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 | |
---|---|
Name | Description |
request |
ICreateMetricDescriptorRequest
CreateMetricDescriptorRequest message or plain object |
callback |
google.monitoring.v3.MetricService.CreateMetricDescriptorCallback
Node-style callback called with the error, if any, and MetricDescriptor |
Returns | |
---|---|
Type | Description |
void |
createMetricDescriptor(request)
public createMetricDescriptor(request: google.monitoring.v3.ICreateMetricDescriptorRequest): Promise<google.api.MetricDescriptor>;
Calls CreateMetricDescriptor.
Parameter | |
---|---|
Name | Description |
request |
ICreateMetricDescriptorRequest
CreateMetricDescriptorRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
createTimeSeries(request)
public createTimeSeries(request: google.monitoring.v3.ICreateTimeSeriesRequest): Promise<google.protobuf.Empty>;
Calls CreateTimeSeries.
Parameter | |
---|---|
Name | Description |
request |
ICreateTimeSeriesRequest
CreateTimeSeriesRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | 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 |
Returns | |
---|---|
Type | Description |
void |
deleteMetricDescriptor(request)
public deleteMetricDescriptor(request: google.monitoring.v3.IDeleteMetricDescriptorRequest): Promise<google.protobuf.Empty>;
Calls DeleteMetricDescriptor.
Parameter | |
---|---|
Name | Description |
request |
google.monitoring.v3.IDeleteMetricDescriptorRequest
DeleteMetricDescriptorRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | 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 |
Returns | |
---|---|
Type | Description |
void |
getMetricDescriptor(request)
public getMetricDescriptor(request: google.monitoring.v3.IGetMetricDescriptorRequest): Promise<google.api.MetricDescriptor>;
Calls GetMetricDescriptor.
Parameter | |
---|---|
Name | Description |
request |
google.monitoring.v3.IGetMetricDescriptorRequest
GetMetricDescriptorRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | 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 |
Returns | |
---|---|
Type | Description |
void |
getMonitoredResourceDescriptor(request)
public getMonitoredResourceDescriptor(request: google.monitoring.v3.IGetMonitoredResourceDescriptorRequest): Promise<google.api.MonitoredResourceDescriptor>;
Calls GetMonitoredResourceDescriptor.
Parameter | |
---|---|
Name | Description |
request |
google.monitoring.v3.IGetMonitoredResourceDescriptorRequest
GetMonitoredResourceDescriptorRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | 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 |
Returns | |
---|---|
Type | Description |
void |
listMetricDescriptors(request)
public listMetricDescriptors(request: google.monitoring.v3.IListMetricDescriptorsRequest): Promise<google.monitoring.v3.ListMetricDescriptorsResponse>;
Calls ListMetricDescriptors.
Parameter | |
---|---|
Name | Description |
request |
google.monitoring.v3.IListMetricDescriptorsRequest
ListMetricDescriptorsRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | 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 |
Returns | |
---|---|
Type | Description |
void |
listMonitoredResourceDescriptors(request)
public listMonitoredResourceDescriptors(request: google.monitoring.v3.IListMonitoredResourceDescriptorsRequest): Promise<google.monitoring.v3.ListMonitoredResourceDescriptorsResponse>;
Calls ListMonitoredResourceDescriptors.
Parameter | |
---|---|
Name | Description |
request |
google.monitoring.v3.IListMonitoredResourceDescriptorsRequest
ListMonitoredResourceDescriptorsRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IListTimeSeriesRequest
ListTimeSeriesRequest message or plain object |
callback |
google.monitoring.v3.MetricService.ListTimeSeriesCallback
Node-style callback called with the error, if any, and ListTimeSeriesResponse |
Returns | |
---|---|
Type | Description |
void |
listTimeSeries(request)
public listTimeSeries(request: google.monitoring.v3.IListTimeSeriesRequest): Promise<google.monitoring.v3.ListTimeSeriesResponse>;
Calls ListTimeSeries.
Parameter | |
---|---|
Name | Description |
request |
IListTimeSeriesRequest
ListTimeSeriesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.monitoring.v3.ListTimeSeriesResponse> | Promise |