Represents a MetricsServiceV2
Inheritance
$protobuf.rpc.Service > protos.google.logging.v2.MetricsServiceV2Package
@google-cloud/loggingConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new MetricsServiceV2 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): MetricsServiceV2;
Creates new MetricsServiceV2 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 |
MetricsServiceV2 | RPC service. Useful where requests and/or responses are streamed. |
createLogMetric(request, callback)
public createLogMetric(request: google.logging.v2.ICreateLogMetricRequest, callback: google.logging.v2.MetricsServiceV2.CreateLogMetricCallback): void;
Calls CreateLogMetric.
Parameters | |
---|---|
Name | Description |
request |
ICreateLogMetricRequest
CreateLogMetricRequest message or plain object |
callback |
CreateLogMetricCallback
Node-style callback called with the error, if any, and LogMetric |
Returns | |
---|---|
Type | Description |
void |
createLogMetric(request)
public createLogMetric(request: google.logging.v2.ICreateLogMetricRequest): Promise<google.logging.v2.LogMetric>;
Calls CreateLogMetric.
Parameter | |
---|---|
Name | Description |
request |
ICreateLogMetricRequest
CreateLogMetricRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.logging.v2.LogMetric> | Promise |
deleteLogMetric(request, callback)
public deleteLogMetric(request: google.logging.v2.IDeleteLogMetricRequest, callback: google.logging.v2.MetricsServiceV2.DeleteLogMetricCallback): void;
Calls DeleteLogMetric.
Parameters | |
---|---|
Name | Description |
request |
IDeleteLogMetricRequest
DeleteLogMetricRequest message or plain object |
callback |
DeleteLogMetricCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteLogMetric(request)
public deleteLogMetric(request: google.logging.v2.IDeleteLogMetricRequest): Promise<google.protobuf.Empty>;
Calls DeleteLogMetric.
Parameter | |
---|---|
Name | Description |
request |
IDeleteLogMetricRequest
DeleteLogMetricRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.protobuf.Empty> | Promise |
getLogMetric(request, callback)
public getLogMetric(request: google.logging.v2.IGetLogMetricRequest, callback: google.logging.v2.MetricsServiceV2.GetLogMetricCallback): void;
Calls GetLogMetric.
Parameters | |
---|---|
Name | Description |
request |
IGetLogMetricRequest
GetLogMetricRequest message or plain object |
callback |
GetLogMetricCallback
Node-style callback called with the error, if any, and LogMetric |
Returns | |
---|---|
Type | Description |
void |
getLogMetric(request)
public getLogMetric(request: google.logging.v2.IGetLogMetricRequest): Promise<google.logging.v2.LogMetric>;
Calls GetLogMetric.
Parameter | |
---|---|
Name | Description |
request |
IGetLogMetricRequest
GetLogMetricRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.logging.v2.LogMetric> | Promise |
listLogMetrics(request, callback)
public listLogMetrics(request: google.logging.v2.IListLogMetricsRequest, callback: google.logging.v2.MetricsServiceV2.ListLogMetricsCallback): void;
Calls ListLogMetrics.
Parameters | |
---|---|
Name | Description |
request |
IListLogMetricsRequest
ListLogMetricsRequest message or plain object |
callback |
ListLogMetricsCallback
Node-style callback called with the error, if any, and ListLogMetricsResponse |
Returns | |
---|---|
Type | Description |
void |
listLogMetrics(request)
public listLogMetrics(request: google.logging.v2.IListLogMetricsRequest): Promise<google.logging.v2.ListLogMetricsResponse>;
Calls ListLogMetrics.
Parameter | |
---|---|
Name | Description |
request |
IListLogMetricsRequest
ListLogMetricsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.logging.v2.ListLogMetricsResponse> | Promise |
updateLogMetric(request, callback)
public updateLogMetric(request: google.logging.v2.IUpdateLogMetricRequest, callback: google.logging.v2.MetricsServiceV2.UpdateLogMetricCallback): void;
Calls UpdateLogMetric.
Parameters | |
---|---|
Name | Description |
request |
IUpdateLogMetricRequest
UpdateLogMetricRequest message or plain object |
callback |
UpdateLogMetricCallback
Node-style callback called with the error, if any, and LogMetric |
Returns | |
---|---|
Type | Description |
void |
updateLogMetric(request)
public updateLogMetric(request: google.logging.v2.IUpdateLogMetricRequest): Promise<google.logging.v2.LogMetric>;
Calls UpdateLogMetric.
Parameter | |
---|---|
Name | Description |
request |
IUpdateLogMetricRequest
UpdateLogMetricRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.logging.v2.LogMetric> | Promise |