Class protos.google.logging.v2.MetricsServiceV2 (10.5.0)

Represents a MetricsServiceV2

Inheritance

$protobuf.rpc.Service > protos.google.logging.v2.MetricsServiceV2

Package

@google-cloud/logging

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

Creates new MetricsServiceV2 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
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
NameDescription
request ICreateLogMetricRequest

CreateLogMetricRequest message or plain object

callback CreateLogMetricCallback

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

Returns
TypeDescription
void

createLogMetric(request)

public createLogMetric(request: google.logging.v2.ICreateLogMetricRequest): Promise<google.logging.v2.LogMetric>;

Calls CreateLogMetric.

Parameter
NameDescription
request ICreateLogMetricRequest

CreateLogMetricRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IDeleteLogMetricRequest

DeleteLogMetricRequest message or plain object

callback DeleteLogMetricCallback

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

Returns
TypeDescription
void

deleteLogMetric(request)

public deleteLogMetric(request: google.logging.v2.IDeleteLogMetricRequest): Promise<google.protobuf.Empty>;

Calls DeleteLogMetric.

Parameter
NameDescription
request IDeleteLogMetricRequest

DeleteLogMetricRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IGetLogMetricRequest

GetLogMetricRequest message or plain object

callback GetLogMetricCallback

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

Returns
TypeDescription
void

getLogMetric(request)

public getLogMetric(request: google.logging.v2.IGetLogMetricRequest): Promise<google.logging.v2.LogMetric>;

Calls GetLogMetric.

Parameter
NameDescription
request IGetLogMetricRequest

GetLogMetricRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IListLogMetricsRequest

ListLogMetricsRequest message or plain object

callback ListLogMetricsCallback

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

Returns
TypeDescription
void

listLogMetrics(request)

public listLogMetrics(request: google.logging.v2.IListLogMetricsRequest): Promise<google.logging.v2.ListLogMetricsResponse>;

Calls ListLogMetrics.

Parameter
NameDescription
request IListLogMetricsRequest

ListLogMetricsRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IUpdateLogMetricRequest

UpdateLogMetricRequest message or plain object

callback UpdateLogMetricCallback

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

Returns
TypeDescription
void

updateLogMetric(request)

public updateLogMetric(request: google.logging.v2.IUpdateLogMetricRequest): Promise<google.logging.v2.LogMetric>;

Calls UpdateLogMetric.

Parameter
NameDescription
request IUpdateLogMetricRequest

UpdateLogMetricRequest message or plain object

Returns
TypeDescription
Promise<google.logging.v2.LogMetric>

Promise