Class MetricsServiceV2Grpc.MetricsServiceV2Stub (3.14.2)

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

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
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
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
NameDescription
requestCreateLogMetricRequest
responseObserverio.grpc.stub.StreamObserver<LogMetric>

deleteLogMetric(DeleteLogMetricRequest request, StreamObserver<Empty> responseObserver)

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

Deletes a logs-based metric.

Parameters
NameDescription
requestDeleteLogMetricRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

getLogMetric(GetLogMetricRequest request, StreamObserver<LogMetric> responseObserver)

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

Gets a logs-based metric.

Parameters
NameDescription
requestGetLogMetricRequest
responseObserverio.grpc.stub.StreamObserver<LogMetric>

listLogMetrics(ListLogMetricsRequest request, StreamObserver<ListLogMetricsResponse> responseObserver)

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

Lists logs-based metrics.

Parameters
NameDescription
requestListLogMetricsRequest
responseObserverio.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
NameDescription
requestUpdateLogMetricRequest
responseObserverio.grpc.stub.StreamObserver<LogMetric>