Package io.airlift.openmetrics.types
Record Class BigCounter
java.lang.Object
java.lang.Record
io.airlift.openmetrics.types.BigCounter
-
Field Summary
Fields inherited from interface io.airlift.openmetrics.types.Metric
HELP_LINE_FORMAT, NAME_WITH_LABELS_LINE_FORMAT, TYPE_LINE_FORMAT, VALUE_LINE_FORMAT -
Constructor Summary
ConstructorsConstructorDescriptionBigCounter(String metricName, BigInteger value, Map<String, String> labels, String help) Creates an instance of aBigCounterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.help()Returns the value of thehelprecord component.labels()Returns the value of thelabelsrecord component.Returns the value of themetricNamerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
BigCounter
Creates an instance of aBigCounterrecord class.- Parameters:
metricName- the value for themetricNamerecord componentvalue- the value for thevaluerecord componentlabels- the value for thelabelsrecord componenthelp- the value for thehelprecord component
-
-
Method Details
-
getMetricExposition
- Specified by:
getMetricExpositionin interfaceMetric
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
metricName
Returns the value of themetricNamerecord component.- Specified by:
metricNamein interfaceMetric- Returns:
- the value of the
metricNamerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
labels
-
help
Returns the value of thehelprecord component.- Returns:
- the value of the
helprecord component
-