Module org.elasticsearch.server
Package org.elasticsearch.repositories
Record Class RepositoriesMetrics
java.lang.Object
java.lang.Record
org.elasticsearch.repositories.RepositoriesMetrics
public record RepositoriesMetrics(LongCounter requestCounter, LongCounter exceptionCounter, LongCounter throttleCounter, LongCounter operationCounter, LongCounter unsuccessfulOperationCounter, LongHistogram exceptionHistogram, LongHistogram throttleHistogram, LongHistogram httpRequestTimeInMicroHistogram)
extends Record
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRepositoriesMetrics
(LongCounter requestCounter, LongCounter exceptionCounter, LongCounter throttleCounter, LongCounter operationCounter, LongCounter unsuccessfulOperationCounter, LongHistogram exceptionHistogram, LongHistogram throttleHistogram, LongHistogram httpRequestTimeInMicroHistogram) Creates an instance of aRepositoriesMetrics
record class.RepositoriesMetrics
(MeterRegistry meterRegistry) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexceptionCounter
record component.Returns the value of theexceptionHistogram
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehttpRequestTimeInMicroHistogram
record component.Returns the value of theoperationCounter
record component.Returns the value of therequestCounter
record component.Returns the value of thethrottleCounter
record component.Returns the value of thethrottleHistogram
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theunsuccessfulOperationCounter
record component.
-
Field Details
-
NOOP
-
METRIC_REQUESTS_TOTAL
- See Also:
-
METRIC_EXCEPTIONS_TOTAL
- See Also:
-
METRIC_THROTTLES_TOTAL
- See Also:
-
METRIC_OPERATIONS_TOTAL
- See Also:
-
METRIC_UNSUCCESSFUL_OPERATIONS_TOTAL
- See Also:
-
METRIC_EXCEPTIONS_HISTOGRAM
- See Also:
-
METRIC_THROTTLES_HISTOGRAM
- See Also:
-
HTTP_REQUEST_TIME_IN_MICROS_HISTOGRAM
- See Also:
-
-
Constructor Details
-
RepositoriesMetrics
-
RepositoriesMetrics
public RepositoriesMetrics(LongCounter requestCounter, LongCounter exceptionCounter, LongCounter throttleCounter, LongCounter operationCounter, LongCounter unsuccessfulOperationCounter, LongHistogram exceptionHistogram, LongHistogram throttleHistogram, LongHistogram httpRequestTimeInMicroHistogram) Creates an instance of aRepositoriesMetrics
record class.- Parameters:
requestCounter
- the value for therequestCounter
record componentexceptionCounter
- the value for theexceptionCounter
record componentthrottleCounter
- the value for thethrottleCounter
record componentoperationCounter
- the value for theoperationCounter
record componentunsuccessfulOperationCounter
- the value for theunsuccessfulOperationCounter
record componentexceptionHistogram
- the value for theexceptionHistogram
record componentthrottleHistogram
- the value for thethrottleHistogram
record componenthttpRequestTimeInMicroHistogram
- the value for thehttpRequestTimeInMicroHistogram
record component
-
-
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 withObjects::equals(Object,Object)
. -
requestCounter
Returns the value of therequestCounter
record component.- Returns:
- the value of the
requestCounter
record component
-
exceptionCounter
Returns the value of theexceptionCounter
record component.- Returns:
- the value of the
exceptionCounter
record component
-
throttleCounter
Returns the value of thethrottleCounter
record component.- Returns:
- the value of the
throttleCounter
record component
-
operationCounter
Returns the value of theoperationCounter
record component.- Returns:
- the value of the
operationCounter
record component
-
unsuccessfulOperationCounter
Returns the value of theunsuccessfulOperationCounter
record component.- Returns:
- the value of the
unsuccessfulOperationCounter
record component
-
exceptionHistogram
Returns the value of theexceptionHistogram
record component.- Returns:
- the value of the
exceptionHistogram
record component
-
throttleHistogram
Returns the value of thethrottleHistogram
record component.- Returns:
- the value of the
throttleHistogram
record component
-
httpRequestTimeInMicroHistogram
Returns the value of thehttpRequestTimeInMicroHistogram
record component.- Returns:
- the value of the
httpRequestTimeInMicroHistogram
record component
-