Class MetricsSnapshot

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.soulfiremc.grpc.generated.MetricsSnapshot
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MetricsSnapshotOrBuilder, Serializable

@Generated public final class MetricsSnapshot extends com.google.protobuf.GeneratedMessage implements MetricsSnapshotOrBuilder
A single time-series data point sampled at a fixed interval.
Protobuf type soulfire.v1.MetricsSnapshot
See Also:
  • Field Details

    • TIMESTAMP_FIELD_NUMBER

      public static final int TIMESTAMP_FIELD_NUMBER
      See Also:
    • BOTS_ONLINE_FIELD_NUMBER

      public static final int BOTS_ONLINE_FIELD_NUMBER
      See Also:
    • BOTS_TOTAL_FIELD_NUMBER

      public static final int BOTS_TOTAL_FIELD_NUMBER
      See Also:
    • PACKETS_SENT_TOTAL_FIELD_NUMBER

      public static final int PACKETS_SENT_TOTAL_FIELD_NUMBER
      See Also:
    • PACKETS_RECEIVED_TOTAL_FIELD_NUMBER

      public static final int PACKETS_RECEIVED_TOTAL_FIELD_NUMBER
      See Also:
    • BYTES_SENT_TOTAL_FIELD_NUMBER

      public static final int BYTES_SENT_TOTAL_FIELD_NUMBER
      See Also:
    • BYTES_RECEIVED_TOTAL_FIELD_NUMBER

      public static final int BYTES_RECEIVED_TOTAL_FIELD_NUMBER
      See Also:
    • PACKETS_SENT_PER_SECOND_FIELD_NUMBER

      public static final int PACKETS_SENT_PER_SECOND_FIELD_NUMBER
      See Also:
    • PACKETS_RECEIVED_PER_SECOND_FIELD_NUMBER

      public static final int PACKETS_RECEIVED_PER_SECOND_FIELD_NUMBER
      See Also:
    • BYTES_SENT_PER_SECOND_FIELD_NUMBER

      public static final int BYTES_SENT_PER_SECOND_FIELD_NUMBER
      See Also:
    • BYTES_RECEIVED_PER_SECOND_FIELD_NUMBER

      public static final int BYTES_RECEIVED_PER_SECOND_FIELD_NUMBER
      See Also:
    • AVG_TICK_DURATION_MS_FIELD_NUMBER

      public static final int AVG_TICK_DURATION_MS_FIELD_NUMBER
      See Also:
    • MAX_TICK_DURATION_MS_FIELD_NUMBER

      public static final int MAX_TICK_DURATION_MS_FIELD_NUMBER
      See Also:
    • AVG_HEALTH_FIELD_NUMBER

      public static final int AVG_HEALTH_FIELD_NUMBER
      See Also:
    • AVG_FOOD_LEVEL_FIELD_NUMBER

      public static final int AVG_FOOD_LEVEL_FIELD_NUMBER
      See Also:
    • TOTAL_LOADED_CHUNKS_FIELD_NUMBER

      public static final int TOTAL_LOADED_CHUNKS_FIELD_NUMBER
      See Also:
    • TOTAL_TRACKED_ENTITIES_FIELD_NUMBER

      public static final int TOTAL_TRACKED_ENTITIES_FIELD_NUMBER
      See Also:
    • CONNECTIONS_FIELD_NUMBER

      public static final int CONNECTIONS_FIELD_NUMBER
      See Also:
    • DISCONNECTIONS_FIELD_NUMBER

      public static final int DISCONNECTIONS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasTimestamp

      public boolean hasTimestamp()
      When this snapshot was taken.
      
      .google.protobuf.Timestamp timestamp = 1;
      Specified by:
      hasTimestamp in interface MetricsSnapshotOrBuilder
      Returns:
      Whether the timestamp field is set.
    • getTimestamp

      public com.google.protobuf.Timestamp getTimestamp()
      When this snapshot was taken.
      
      .google.protobuf.Timestamp timestamp = 1;
      Specified by:
      getTimestamp in interface MetricsSnapshotOrBuilder
      Returns:
      The timestamp.
    • getTimestampOrBuilder

      public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
      When this snapshot was taken.
      
      .google.protobuf.Timestamp timestamp = 1;
      Specified by:
      getTimestampOrBuilder in interface MetricsSnapshotOrBuilder
    • getBotsOnline

      public int getBotsOnline()
      Number of bots currently connected to the Minecraft server.
      
      uint32 bots_online = 2;
      Specified by:
      getBotsOnline in interface MetricsSnapshotOrBuilder
      Returns:
      The botsOnline.
    • getBotsTotal

      public int getBotsTotal()
      Total number of bots configured in the instance (online + offline).
      
      uint32 bots_total = 3;
      Specified by:
      getBotsTotal in interface MetricsSnapshotOrBuilder
      Returns:
      The botsTotal.
    • getPacketsSentTotal

      public long getPacketsSentTotal()
      Cumulative packets sent across all bots since session start.
      
      uint64 packets_sent_total = 4;
      Specified by:
      getPacketsSentTotal in interface MetricsSnapshotOrBuilder
      Returns:
      The packetsSentTotal.
    • getPacketsReceivedTotal

      public long getPacketsReceivedTotal()
      Cumulative packets received across all bots since session start.
      
      uint64 packets_received_total = 5;
      Specified by:
      getPacketsReceivedTotal in interface MetricsSnapshotOrBuilder
      Returns:
      The packetsReceivedTotal.
    • getBytesSentTotal

      public long getBytesSentTotal()
      Cumulative bytes sent across all bots since session start.
      
      uint64 bytes_sent_total = 6;
      Specified by:
      getBytesSentTotal in interface MetricsSnapshotOrBuilder
      Returns:
      The bytesSentTotal.
    • getBytesReceivedTotal

      public long getBytesReceivedTotal()
      Cumulative bytes received across all bots since session start.
      
      uint64 bytes_received_total = 7;
      Specified by:
      getBytesReceivedTotal in interface MetricsSnapshotOrBuilder
      Returns:
      The bytesReceivedTotal.
    • getPacketsSentPerSecond

      public double getPacketsSentPerSecond()
      Current rate of packets sent per second (computed from counter deltas).
      
      double packets_sent_per_second = 8;
      Specified by:
      getPacketsSentPerSecond in interface MetricsSnapshotOrBuilder
      Returns:
      The packetsSentPerSecond.
    • getPacketsReceivedPerSecond

      public double getPacketsReceivedPerSecond()
      Current rate of packets received per second (computed from counter deltas).
      
      double packets_received_per_second = 9;
      Specified by:
      getPacketsReceivedPerSecond in interface MetricsSnapshotOrBuilder
      Returns:
      The packetsReceivedPerSecond.
    • getBytesSentPerSecond

      public double getBytesSentPerSecond()
      Current rate of bytes sent per second (computed from counter deltas).
      
      double bytes_sent_per_second = 10;
      Specified by:
      getBytesSentPerSecond in interface MetricsSnapshotOrBuilder
      Returns:
      The bytesSentPerSecond.
    • getBytesReceivedPerSecond

      public double getBytesReceivedPerSecond()
      Current rate of bytes received per second (computed from counter deltas).
      
      double bytes_received_per_second = 11;
      Specified by:
      getBytesReceivedPerSecond in interface MetricsSnapshotOrBuilder
      Returns:
      The bytesReceivedPerSecond.
    • getAvgTickDurationMs

      public double getAvgTickDurationMs()
      Average tick duration across all bots in milliseconds.
      
      double avg_tick_duration_ms = 12;
      Specified by:
      getAvgTickDurationMs in interface MetricsSnapshotOrBuilder
      Returns:
      The avgTickDurationMs.
    • getMaxTickDurationMs

      public double getMaxTickDurationMs()
      Maximum tick duration observed across all bots in milliseconds.
      Reset each sampling interval.
      
      double max_tick_duration_ms = 13;
      Specified by:
      getMaxTickDurationMs in interface MetricsSnapshotOrBuilder
      Returns:
      The maxTickDurationMs.
    • getAvgHealth

      public double getAvgHealth()
      Average health across all online bots with player data.
      Range: 0 to 20 (Minecraft health points).
      
      double avg_health = 14;
      Specified by:
      getAvgHealth in interface MetricsSnapshotOrBuilder
      Returns:
      The avgHealth.
    • getAvgFoodLevel

      public double getAvgFoodLevel()
      Average food level across all online bots with player data.
      Range: 0 to 20 (Minecraft food points).
      
      double avg_food_level = 15;
      Specified by:
      getAvgFoodLevel in interface MetricsSnapshotOrBuilder
      Returns:
      The avgFoodLevel.
    • getTotalLoadedChunks

      public int getTotalLoadedChunks()
      Total number of loaded chunks across all online bots.
      
      uint32 total_loaded_chunks = 16;
      Specified by:
      getTotalLoadedChunks in interface MetricsSnapshotOrBuilder
      Returns:
      The totalLoadedChunks.
    • getTotalTrackedEntities

      public int getTotalTrackedEntities()
      Total number of tracked entities across all online bots.
      
      uint32 total_tracked_entities = 17;
      Specified by:
      getTotalTrackedEntities in interface MetricsSnapshotOrBuilder
      Returns:
      The totalTrackedEntities.
    • getConnections

      public int getConnections()
      Connection events since the previous snapshot.
      
      uint32 connections = 18;
      Specified by:
      getConnections in interface MetricsSnapshotOrBuilder
      Returns:
      The connections.
    • getDisconnections

      public int getDisconnections()
      Disconnection events since the previous snapshot.
      
      uint32 disconnections = 19;
      Specified by:
      getDisconnections in interface MetricsSnapshotOrBuilder
      Returns:
      The disconnections.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static MetricsSnapshot parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetricsSnapshot parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetricsSnapshot parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetricsSnapshot parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetricsSnapshot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetricsSnapshot parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetricsSnapshot parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MetricsSnapshot parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MetricsSnapshot parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MetricsSnapshot parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MetricsSnapshot parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MetricsSnapshot parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public MetricsSnapshot.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static MetricsSnapshot.Builder newBuilder()
    • newBuilder

      public static MetricsSnapshot.Builder newBuilder(MetricsSnapshot prototype)
    • toBuilder

      public MetricsSnapshot.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected MetricsSnapshot.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static MetricsSnapshot getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<MetricsSnapshot> parser()
    • getParserForType

      public com.google.protobuf.Parser<MetricsSnapshot> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public MetricsSnapshot getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder