Record Class StreamIntrospection.TimerMetric
java.lang.Object
java.lang.Record
org.nuxeo.ecm.core.bulk.introspection.StreamIntrospection.TimerMetric
- All Implemented Interfaces:
Serializable,StreamIntrospection.Metric
- Enclosing class:
- StreamIntrospection
public static record StreamIntrospection.TimerMetric(String key, long count, double rate1m, double rate5m, double sum, double max, double mean, double min, double stddev, double p50, double p95, double p99, Map<String,String> tags)
extends Record
implements StreamIntrospection.Metric
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTimerMetric(String key, long count, double rate1m, double rate5m, double sum, double max, double mean, double min, double stddev, double p50, double p95, double p99, Map<String, String> tags) Creates an instance of aTimerMetricrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.doublemax()Returns the value of themaxrecord component.doublemean()Returns the value of themeanrecord component.doublemin()Returns the value of theminrecord component.doublep50()Returns the value of thep50record component.doublep95()Returns the value of thep95record component.doublep99()Returns the value of thep99record component.doublerate1m()Returns the value of therate1mrecord component.doublerate5m()Returns the value of therate5mrecord component.doublestddev()Returns the value of thestddevrecord component.doublesum()Returns the value of thesumrecord component.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.nuxeo.ecm.core.bulk.introspection.StreamIntrospection.Metric
hasTag, tag
-
Constructor Details
-
TimerMetric
public TimerMetric(String key, long count, double rate1m, double rate5m, double sum, double max, double mean, double min, double stddev, double p50, double p95, double p99, Map<String, String> tags) Creates an instance of aTimerMetricrecord class.- Parameters:
key- the value for thekeyrecord componentcount- the value for thecountrecord componentrate1m- the value for therate1mrecord componentrate5m- the value for therate5mrecord componentsum- the value for thesumrecord componentmax- the value for themaxrecord componentmean- the value for themeanrecord componentmin- the value for theminrecord componentstddev- the value for thestddevrecord componentp50- the value for thep50record componentp95- the value for thep95record componentp99- the value for thep99record componenttags- the value for thetagsrecord component
-
-
Method Details
-
valueOrCount
- Specified by:
valueOrCountin interfaceStreamIntrospection.Metric
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
key
Returns the value of thekeyrecord component.- Specified by:
keyin interfaceStreamIntrospection.Metric- Returns:
- the value of the
keyrecord component
-
count
public long count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
rate1m
public double rate1m()Returns the value of therate1mrecord component.- Returns:
- the value of the
rate1mrecord component
-
rate5m
public double rate5m()Returns the value of therate5mrecord component.- Returns:
- the value of the
rate5mrecord component
-
sum
public double sum()Returns the value of thesumrecord component.- Returns:
- the value of the
sumrecord component
-
max
public double max()Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-
mean
public double mean()Returns the value of themeanrecord component.- Returns:
- the value of the
meanrecord component
-
min
public double min()Returns the value of theminrecord component.- Returns:
- the value of the
minrecord component
-
stddev
public double stddev()Returns the value of thestddevrecord component.- Returns:
- the value of the
stddevrecord component
-
p50
public double p50()Returns the value of thep50record component.- Returns:
- the value of the
p50record component
-
p95
public double p95()Returns the value of thep95record component.- Returns:
- the value of the
p95record component
-
p99
public double p99()Returns the value of thep99record component.- Returns:
- the value of the
p99record component
-
tags
Returns the value of thetagsrecord component.- Specified by:
tagsin interfaceStreamIntrospection.Metric- Returns:
- the value of the
tagsrecord component
-