Class MetricsServiceGrpc.MetricsServiceStub

java.lang.Object
io.grpc.stub.AbstractStub<MetricsServiceGrpc.MetricsServiceStub>
io.grpc.stub.AbstractAsyncStub<MetricsServiceGrpc.MetricsServiceStub>
com.soulfiremc.grpc.generated.MetricsServiceGrpc.MetricsServiceStub
Enclosing class:
MetricsServiceGrpc

public static final class MetricsServiceGrpc.MetricsServiceStub extends io.grpc.stub.AbstractAsyncStub<MetricsServiceGrpc.MetricsServiceStub>
A stub to allow clients to do asynchronous 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 Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    void
    getInstanceMetrics(GetInstanceMetricsRequest request, io.grpc.stub.StreamObserver<GetInstanceMetricsResponse> responseObserver)
    Returns time-series metrics and current distributions for an instance.
    void
    getServerMetrics(GetServerMetricsRequest request, io.grpc.stub.StreamObserver<GetServerMetricsResponse> responseObserver)
    Returns server-level system metrics (CPU, memory, threads, GC, aggregate bots).

    Methods inherited from class io.grpc.stub.AbstractAsyncStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

      protected MetricsServiceGrpc.MetricsServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<MetricsServiceGrpc.MetricsServiceStub>
    • getInstanceMetrics

      public void getInstanceMetrics(GetInstanceMetricsRequest request, io.grpc.stub.StreamObserver<GetInstanceMetricsResponse> responseObserver)
      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

      public void getServerMetrics(GetServerMetricsRequest request, io.grpc.stub.StreamObserver<GetServerMetricsResponse> responseObserver)
      Returns server-level system metrics (CPU, memory, threads, GC, aggregate bots).
      Supports incremental fetching via the "since" parameter.
      Requires: READ_SERVER_CONFIG global permission