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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA single time-series data point sampled at a fixed interval.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleandoubleAverage food level across all online bots with player data.doubleAverage health across all online bots with player data.doubleAverage tick duration across all bots in milliseconds.intNumber of bots currently connected to the Minecraft server.intTotal number of bots configured in the instance (online + offline).doubleCurrent rate of bytes received per second (computed from counter deltas).longCumulative bytes received across all bots since session start.doubleCurrent rate of bytes sent per second (computed from counter deltas).longCumulative bytes sent across all bots since session start.intConnection events since the previous snapshot.static MetricsSnapshotstatic final com.google.protobuf.Descriptors.DescriptorintDisconnection events since the previous snapshot.doubleMaximum tick duration observed across all bots in milliseconds.doubleCurrent rate of packets received per second (computed from counter deltas).longCumulative packets received across all bots since session start.doubleCurrent rate of packets sent per second (computed from counter deltas).longCumulative packets sent across all bots since session start.com.google.protobuf.Parser<MetricsSnapshot> intcom.google.protobuf.TimestampWhen this snapshot was taken.com.google.protobuf.TimestampOrBuilderWhen this snapshot was taken.intTotal number of loaded chunks across all online bots.intTotal number of tracked entities across all online bots.inthashCode()booleanWhen this snapshot was taken.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic MetricsSnapshot.Builderstatic MetricsSnapshot.BuildernewBuilder(MetricsSnapshot prototype) protected MetricsSnapshot.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static MetricsSnapshotparseDelimitedFrom(InputStream input) static MetricsSnapshotparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricsSnapshotparseFrom(byte[] data) static MetricsSnapshotparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricsSnapshotparseFrom(com.google.protobuf.ByteString data) static MetricsSnapshotparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricsSnapshotparseFrom(com.google.protobuf.CodedInputStream input) static MetricsSnapshotparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricsSnapshotparseFrom(InputStream input) static MetricsSnapshotparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricsSnapshotparseFrom(ByteBuffer data) static MetricsSnapshotparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<MetricsSnapshot> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasTimestamp
public boolean hasTimestamp()When this snapshot was taken.
.google.protobuf.Timestamp timestamp = 1;- Specified by:
hasTimestampin interfaceMetricsSnapshotOrBuilder- 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:
getTimestampin interfaceMetricsSnapshotOrBuilder- Returns:
- The timestamp.
-
getTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()When this snapshot was taken.
.google.protobuf.Timestamp timestamp = 1;- Specified by:
getTimestampOrBuilderin interfaceMetricsSnapshotOrBuilder
-
getBotsOnline
public int getBotsOnline()Number of bots currently connected to the Minecraft server.
uint32 bots_online = 2;- Specified by:
getBotsOnlinein interfaceMetricsSnapshotOrBuilder- Returns:
- The botsOnline.
-
getBotsTotal
public int getBotsTotal()Total number of bots configured in the instance (online + offline).
uint32 bots_total = 3;- Specified by:
getBotsTotalin interfaceMetricsSnapshotOrBuilder- Returns:
- The botsTotal.
-
getPacketsSentTotal
public long getPacketsSentTotal()Cumulative packets sent across all bots since session start.
uint64 packets_sent_total = 4;- Specified by:
getPacketsSentTotalin interfaceMetricsSnapshotOrBuilder- Returns:
- The packetsSentTotal.
-
getPacketsReceivedTotal
public long getPacketsReceivedTotal()Cumulative packets received across all bots since session start.
uint64 packets_received_total = 5;- Specified by:
getPacketsReceivedTotalin interfaceMetricsSnapshotOrBuilder- Returns:
- The packetsReceivedTotal.
-
getBytesSentTotal
public long getBytesSentTotal()Cumulative bytes sent across all bots since session start.
uint64 bytes_sent_total = 6;- Specified by:
getBytesSentTotalin interfaceMetricsSnapshotOrBuilder- Returns:
- The bytesSentTotal.
-
getBytesReceivedTotal
public long getBytesReceivedTotal()Cumulative bytes received across all bots since session start.
uint64 bytes_received_total = 7;- Specified by:
getBytesReceivedTotalin interfaceMetricsSnapshotOrBuilder- 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:
getPacketsSentPerSecondin interfaceMetricsSnapshotOrBuilder- 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:
getPacketsReceivedPerSecondin interfaceMetricsSnapshotOrBuilder- 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:
getBytesSentPerSecondin interfaceMetricsSnapshotOrBuilder- 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:
getBytesReceivedPerSecondin interfaceMetricsSnapshotOrBuilder- Returns:
- The bytesReceivedPerSecond.
-
getAvgTickDurationMs
public double getAvgTickDurationMs()Average tick duration across all bots in milliseconds.
double avg_tick_duration_ms = 12;- Specified by:
getAvgTickDurationMsin interfaceMetricsSnapshotOrBuilder- 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:
getMaxTickDurationMsin interfaceMetricsSnapshotOrBuilder- 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:
getAvgHealthin interfaceMetricsSnapshotOrBuilder- 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:
getAvgFoodLevelin interfaceMetricsSnapshotOrBuilder- Returns:
- The avgFoodLevel.
-
getTotalLoadedChunks
public int getTotalLoadedChunks()Total number of loaded chunks across all online bots.
uint32 total_loaded_chunks = 16;- Specified by:
getTotalLoadedChunksin interfaceMetricsSnapshotOrBuilder- Returns:
- The totalLoadedChunks.
-
getTotalTrackedEntities
public int getTotalTrackedEntities()Total number of tracked entities across all online bots.
uint32 total_tracked_entities = 17;- Specified by:
getTotalTrackedEntitiesin interfaceMetricsSnapshotOrBuilder- Returns:
- The totalTrackedEntities.
-
getConnections
public int getConnections()Connection events since the previous snapshot.
uint32 connections = 18;- Specified by:
getConnectionsin interfaceMetricsSnapshotOrBuilder- Returns:
- The connections.
-
getDisconnections
public int getDisconnections()Disconnection events since the previous snapshot.
uint32 disconnections = 19;- Specified by:
getDisconnectionsin interfaceMetricsSnapshotOrBuilder- Returns:
- The disconnections.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static MetricsSnapshot parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected MetricsSnapshot.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-