Class MetricsServiceV2Grpc.MetricsServiceV2Stub (3.18.0)

public static final class MetricsServiceV2Grpc.MetricsServiceV2Stub extends AbstractAsyncStub<MetricsServiceV2Grpc.MetricsServiceV2Stub>

A stub to allow clients to do asynchronous rpc calls to service MetricsServiceV2.

Service for configuring logs-based metrics.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > MetricsServiceV2Grpc.MetricsServiceV2Stub

Methods

build(Channel channel, CallOptions callOptions)

protected MetricsServiceV2Grpc.MetricsServiceV2Stub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
MetricsServiceV2Grpc.MetricsServiceV2Stub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createLogMetric(CreateLogMetricRequest request, StreamObserver<LogMetric> responseObserver)

public void createLogMetric(CreateLogMetricRequest request, StreamObserver<LogMetric> responseObserver)

Creates a logs-based metric.

Parameters
Name Description
request CreateLogMetricRequest
responseObserver io.grpc.stub.StreamObserver<LogMetric>

deleteLogMetric(DeleteLogMetricRequest request, StreamObserver<Empty> responseObserver)

public void deleteLogMetric(DeleteLogMetricRequest request, StreamObserver<Empty> responseObserver)

Deletes a logs-based metric.

Parameters
Name Description
request DeleteLogMetricRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

getLogMetric(GetLogMetricRequest request, StreamObserver<LogMetric> responseObserver)

public void getLogMetric(GetLogMetricRequest request, StreamObserver<LogMetric> responseObserver)

Gets a logs-based metric.

Parameters
Name Description
request GetLogMetricRequest
responseObserver io.grpc.stub.StreamObserver<LogMetric>

listLogMetrics(ListLogMetricsRequest request, StreamObserver<ListLogMetricsResponse> responseObserver)

public void listLogMetrics(ListLogMetricsRequest request, StreamObserver<ListLogMetricsResponse> responseObserver)

Lists logs-based metrics.

Parameters
Name Description
request ListLogMetricsRequest
responseObserver io.grpc.stub.StreamObserver<ListLogMetricsResponse>

updateLogMetric(UpdateLogMetricRequest request, StreamObserver<LogMetric> responseObserver)

public void updateLogMetric(UpdateLogMetricRequest request, StreamObserver<LogMetric> responseObserver)

Creates or updates a logs-based metric.

Parameters
Name Description
request UpdateLogMetricRequest
responseObserver io.grpc.stub.StreamObserver<LogMetric>