Record Class MonitoringSubscriptionMetricsProvider.MonitoringSubscriptionMetrics
java.lang.Object
java.lang.Record
pl.allegro.tech.hermes.management.infrastructure.metrics.MonitoringSubscriptionMetricsProvider.MonitoringSubscriptionMetrics
- Enclosing interface:
- MonitoringSubscriptionMetricsProvider
public static record MonitoringSubscriptionMetricsProvider.MonitoringSubscriptionMetrics(pl.allegro.tech.hermes.api.MetricDecimalValue rate, pl.allegro.tech.hermes.api.MetricDecimalValue timeouts, pl.allegro.tech.hermes.api.MetricDecimalValue throughput, pl.allegro.tech.hermes.api.MetricDecimalValue otherErrors, pl.allegro.tech.hermes.api.MetricDecimalValue codes2xx, pl.allegro.tech.hermes.api.MetricDecimalValue code4xx, pl.allegro.tech.hermes.api.MetricDecimalValue code5xx, pl.allegro.tech.hermes.api.MetricDecimalValue retries, pl.allegro.tech.hermes.api.MetricDecimalValue metricPathBatchRate)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMonitoringSubscriptionMetrics(pl.allegro.tech.hermes.api.MetricDecimalValue rate, pl.allegro.tech.hermes.api.MetricDecimalValue timeouts, pl.allegro.tech.hermes.api.MetricDecimalValue throughput, pl.allegro.tech.hermes.api.MetricDecimalValue otherErrors, pl.allegro.tech.hermes.api.MetricDecimalValue codes2xx, pl.allegro.tech.hermes.api.MetricDecimalValue code4xx, pl.allegro.tech.hermes.api.MetricDecimalValue code5xx, pl.allegro.tech.hermes.api.MetricDecimalValue retries, pl.allegro.tech.hermes.api.MetricDecimalValue metricPathBatchRate) Creates an instance of aMonitoringSubscriptionMetricsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionpl.allegro.tech.hermes.api.MetricDecimalValuecode4xx()Returns the value of thecode4xxrecord component.pl.allegro.tech.hermes.api.MetricDecimalValuecode5xx()Returns the value of thecode5xxrecord component.pl.allegro.tech.hermes.api.MetricDecimalValuecodes2xx()Returns the value of thecodes2xxrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pl.allegro.tech.hermes.api.MetricDecimalValueReturns the value of themetricPathBatchRaterecord component.pl.allegro.tech.hermes.api.MetricDecimalValueReturns the value of theotherErrorsrecord component.pl.allegro.tech.hermes.api.MetricDecimalValuerate()Returns the value of theraterecord component.pl.allegro.tech.hermes.api.MetricDecimalValueretries()Returns the value of theretriesrecord component.pl.allegro.tech.hermes.api.MetricDecimalValueReturns the value of thethroughputrecord component.pl.allegro.tech.hermes.api.MetricDecimalValuetimeouts()Returns the value of thetimeoutsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MonitoringSubscriptionMetrics
public MonitoringSubscriptionMetrics(pl.allegro.tech.hermes.api.MetricDecimalValue rate, pl.allegro.tech.hermes.api.MetricDecimalValue timeouts, pl.allegro.tech.hermes.api.MetricDecimalValue throughput, pl.allegro.tech.hermes.api.MetricDecimalValue otherErrors, pl.allegro.tech.hermes.api.MetricDecimalValue codes2xx, pl.allegro.tech.hermes.api.MetricDecimalValue code4xx, pl.allegro.tech.hermes.api.MetricDecimalValue code5xx, pl.allegro.tech.hermes.api.MetricDecimalValue retries, pl.allegro.tech.hermes.api.MetricDecimalValue metricPathBatchRate) Creates an instance of aMonitoringSubscriptionMetricsrecord class.- Parameters:
rate- the value for theraterecord componenttimeouts- the value for thetimeoutsrecord componentthroughput- the value for thethroughputrecord componentotherErrors- the value for theotherErrorsrecord componentcodes2xx- the value for thecodes2xxrecord componentcode4xx- the value for thecode4xxrecord componentcode5xx- the value for thecode5xxrecord componentretries- the value for theretriesrecord componentmetricPathBatchRate- the value for themetricPathBatchRaterecord 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). -
rate
public pl.allegro.tech.hermes.api.MetricDecimalValue rate()Returns the value of theraterecord component.- Returns:
- the value of the
raterecord component
-
timeouts
public pl.allegro.tech.hermes.api.MetricDecimalValue timeouts()Returns the value of thetimeoutsrecord component.- Returns:
- the value of the
timeoutsrecord component
-
throughput
public pl.allegro.tech.hermes.api.MetricDecimalValue throughput()Returns the value of thethroughputrecord component.- Returns:
- the value of the
throughputrecord component
-
otherErrors
public pl.allegro.tech.hermes.api.MetricDecimalValue otherErrors()Returns the value of theotherErrorsrecord component.- Returns:
- the value of the
otherErrorsrecord component
-
codes2xx
public pl.allegro.tech.hermes.api.MetricDecimalValue codes2xx()Returns the value of thecodes2xxrecord component.- Returns:
- the value of the
codes2xxrecord component
-
code4xx
public pl.allegro.tech.hermes.api.MetricDecimalValue code4xx()Returns the value of thecode4xxrecord component.- Returns:
- the value of the
code4xxrecord component
-
code5xx
public pl.allegro.tech.hermes.api.MetricDecimalValue code5xx()Returns the value of thecode5xxrecord component.- Returns:
- the value of the
code5xxrecord component
-
retries
public pl.allegro.tech.hermes.api.MetricDecimalValue retries()Returns the value of theretriesrecord component.- Returns:
- the value of the
retriesrecord component
-
metricPathBatchRate
public pl.allegro.tech.hermes.api.MetricDecimalValue metricPathBatchRate()Returns the value of themetricPathBatchRaterecord component.- Returns:
- the value of the
metricPathBatchRaterecord component
-