Package codes.grow.packages.loki
Record Class IndexStats
java.lang.Object
java.lang.Record
codes.grow.packages.loki.IndexStats
- Record Components:
streams- number of streamschunks- number of chunksbytes- approximate bytesentries- number of entries
Approximate index statistics (
LokiClient.indexStats(java.lang.String)). Read from the TSDB index only, so
data still in the ingester counts after the next chunk flush; bytes is tracked in KB per
chunk, so small chunks report 0.-
Constructor Summary
ConstructorsConstructorDescriptionIndexStats(long streams, long chunks, long bytes, long entries) Creates an instance of aIndexStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongbytes()Returns the value of thebytesrecord component.longchunks()Returns the value of thechunksrecord component.longentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longstreams()Returns the value of thestreamsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IndexStats
public IndexStats(long streams, long chunks, long bytes, long entries) Creates an instance of aIndexStatsrecord class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
streams
public long streams()Returns the value of thestreamsrecord component.- Returns:
- the value of the
streamsrecord component
-
chunks
public long chunks()Returns the value of thechunksrecord component.- Returns:
- the value of the
chunksrecord component
-
bytes
public long bytes()Returns the value of thebytesrecord component.- Returns:
- the value of the
bytesrecord component
-
entries
public long entries()Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-