public static interface ResourceMeteringPubSubGrpc.AsyncService
TiKV implements ResourceMeteringPubSub service for clients to subscribe to resource metering records.
Modifier and Type | Method and Description |
---|---|
default void |
subscribe(ResourceUsageAgentOuterClass.ResourceMeteringRequest request,
io.grpc.stub.StreamObserver<ResourceUsageAgentOuterClass.ResourceUsageRecord> responseObserver)
Clients subscribe to resource metering records through this RPC, and TiKV periodically (e.g.
|
default void subscribe(ResourceUsageAgentOuterClass.ResourceMeteringRequest request, io.grpc.stub.StreamObserver<ResourceUsageAgentOuterClass.ResourceUsageRecord> responseObserver)
Clients subscribe to resource metering records through this RPC, and TiKV periodically (e.g. per minute) publishes resource metering records to clients via gRPC stream.
Copyright © 2024 PingCAP. All rights reserved.