Class MetricsServiceGrpc.MetricsServiceBlockingStub
java.lang.Object
io.grpc.stub.AbstractStub<MetricsServiceGrpc.MetricsServiceBlockingStub>
io.grpc.stub.AbstractBlockingStub<MetricsServiceGrpc.MetricsServiceBlockingStub>
com.soulfiremc.grpc.generated.MetricsServiceGrpc.MetricsServiceBlockingStub
- Enclosing class:
MetricsServiceGrpc
public static final class MetricsServiceGrpc.MetricsServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub<MetricsServiceGrpc.MetricsServiceBlockingStub>
A stub to allow clients to do limited synchronous rpc calls to service MetricsService.
Service for retrieving instance metrics and monitoring data. Metrics are collected server-side and stored in a ring buffer. All operations require appropriate permissions.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) Returns time-series metrics and current distributions for an instance.getServerMetrics(GetServerMetricsRequest request) Returns server-level system metrics (CPU, memory, threads, GC, aggregate bots).Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected MetricsServiceGrpc.MetricsServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<MetricsServiceGrpc.MetricsServiceBlockingStub>
-
getInstanceMetrics
Returns time-series metrics and current distributions for an instance. Supports incremental fetching via the "since" parameter. Requires: READ_BOT_INFO permission on the instance Errors: NOT_FOUND if instance does not exist
-
getServerMetrics
Returns server-level system metrics (CPU, memory, threads, GC, aggregate bots). Supports incremental fetching via the "since" parameter. Requires: READ_SERVER_CONFIG global permission
-