Module org.elasticsearch.server
Package org.elasticsearch.repositories
Record Class RepositoriesMetrics
java.lang.Object
java.lang.Record
org.elasticsearch.repositories.RepositoriesMetrics
public record RepositoriesMetrics(MeterRegistry meterRegistry, LongCounter requestCounter, LongCounter exceptionCounter, LongCounter requestRangeNotSatisfiedExceptionCounter, LongCounter throttleCounter, LongCounter operationCounter, LongCounter unsuccessfulOperationCounter, LongHistogram exceptionHistogram, LongHistogram throttleHistogram, LongHistogram httpRequestTimeInMillisHistogram)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRepositoriesMetrics(MeterRegistry meterRegistry) RepositoriesMetrics(MeterRegistry meterRegistry, LongCounter requestCounter, LongCounter exceptionCounter, LongCounter requestRangeNotSatisfiedExceptionCounter, LongCounter throttleCounter, LongCounter operationCounter, LongCounter unsuccessfulOperationCounter, LongHistogram exceptionHistogram, LongHistogram throttleHistogram, LongHistogram httpRequestTimeInMillisHistogram) Creates an instance of aRepositoriesMetricsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionCounterrecord component.Returns the value of theexceptionHistogramrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehttpRequestTimeInMillisHistogramrecord component.Returns the value of themeterRegistryrecord component.Returns the value of theoperationCounterrecord component.Returns the value of therequestCounterrecord component.Returns the value of therequestRangeNotSatisfiedExceptionCounterrecord component.Returns the value of thethrottleCounterrecord component.Returns the value of thethrottleHistogramrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunsuccessfulOperationCounterrecord component.
-
Field Details
-
NOOP
-
METRIC_REQUESTS_TOTAL
- See Also:
-
METRIC_EXCEPTIONS_TOTAL
- See Also:
-
METRIC_EXCEPTIONS_REQUEST_RANGE_NOT_SATISFIED_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_MILLIS_HISTOGRAM
- See Also:
-
-
Constructor Details
-
RepositoriesMetrics
-
RepositoriesMetrics
public RepositoriesMetrics(MeterRegistry meterRegistry, LongCounter requestCounter, LongCounter exceptionCounter, LongCounter requestRangeNotSatisfiedExceptionCounter, LongCounter throttleCounter, LongCounter operationCounter, LongCounter unsuccessfulOperationCounter, LongHistogram exceptionHistogram, LongHistogram throttleHistogram, LongHistogram httpRequestTimeInMillisHistogram) Creates an instance of aRepositoriesMetricsrecord class.- Parameters:
meterRegistry- the value for themeterRegistryrecord componentrequestCounter- the value for therequestCounterrecord componentexceptionCounter- the value for theexceptionCounterrecord componentrequestRangeNotSatisfiedExceptionCounter- the value for therequestRangeNotSatisfiedExceptionCounterrecord componentthrottleCounter- the value for thethrottleCounterrecord componentoperationCounter- the value for theoperationCounterrecord componentunsuccessfulOperationCounter- the value for theunsuccessfulOperationCounterrecord componentexceptionHistogram- the value for theexceptionHistogramrecord componentthrottleHistogram- the value for thethrottleHistogramrecord componenthttpRequestTimeInMillisHistogram- the value for thehttpRequestTimeInMillisHistogramrecord 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). -
meterRegistry
Returns the value of themeterRegistryrecord component.- Returns:
- the value of the
meterRegistryrecord component
-
requestCounter
Returns the value of therequestCounterrecord component.- Returns:
- the value of the
requestCounterrecord component
-
exceptionCounter
Returns the value of theexceptionCounterrecord component.- Returns:
- the value of the
exceptionCounterrecord component
-
requestRangeNotSatisfiedExceptionCounter
Returns the value of therequestRangeNotSatisfiedExceptionCounterrecord component.- Returns:
- the value of the
requestRangeNotSatisfiedExceptionCounterrecord component
-
throttleCounter
Returns the value of thethrottleCounterrecord component.- Returns:
- the value of the
throttleCounterrecord component
-
operationCounter
Returns the value of theoperationCounterrecord component.- Returns:
- the value of the
operationCounterrecord component
-
unsuccessfulOperationCounter
Returns the value of theunsuccessfulOperationCounterrecord component.- Returns:
- the value of the
unsuccessfulOperationCounterrecord component
-
exceptionHistogram
Returns the value of theexceptionHistogramrecord component.- Returns:
- the value of the
exceptionHistogramrecord component
-
throttleHistogram
Returns the value of thethrottleHistogramrecord component.- Returns:
- the value of the
throttleHistogramrecord component
-
httpRequestTimeInMillisHistogram
Returns the value of thehttpRequestTimeInMillisHistogramrecord component.- Returns:
- the value of the
httpRequestTimeInMillisHistogramrecord component
-