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 metricPathBatchRate) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 metricPathBatchRate)
    Creates an instance of a MonitoringSubscriptionMetrics record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    pl.allegro.tech.hermes.api.MetricDecimalValue
    Returns the value of the code4xx record component.
    pl.allegro.tech.hermes.api.MetricDecimalValue
    Returns the value of the code5xx record component.
    pl.allegro.tech.hermes.api.MetricDecimalValue
    Returns the value of the codes2xx record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    pl.allegro.tech.hermes.api.MetricDecimalValue
    Returns the value of the metricPathBatchRate record component.
    pl.allegro.tech.hermes.api.MetricDecimalValue
    Returns the value of the otherErrors record component.
    pl.allegro.tech.hermes.api.MetricDecimalValue
    Returns the value of the rate record component.
    pl.allegro.tech.hermes.api.MetricDecimalValue
    Returns the value of the throughput record component.
    pl.allegro.tech.hermes.api.MetricDecimalValue
    Returns the value of the timeouts record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 metricPathBatchRate)
      Creates an instance of a MonitoringSubscriptionMetrics record class.
      Parameters:
      rate - the value for the rate record component
      timeouts - the value for the timeouts record component
      throughput - the value for the throughput record component
      otherErrors - the value for the otherErrors record component
      codes2xx - the value for the codes2xx record component
      code4xx - the value for the code4xx record component
      code5xx - the value for the code5xx record component
      metricPathBatchRate - the value for the metricPathBatchRate record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • rate

      public pl.allegro.tech.hermes.api.MetricDecimalValue rate()
      Returns the value of the rate record component.
      Returns:
      the value of the rate record component
    • timeouts

      public pl.allegro.tech.hermes.api.MetricDecimalValue timeouts()
      Returns the value of the timeouts record component.
      Returns:
      the value of the timeouts record component
    • throughput

      public pl.allegro.tech.hermes.api.MetricDecimalValue throughput()
      Returns the value of the throughput record component.
      Returns:
      the value of the throughput record component
    • otherErrors

      public pl.allegro.tech.hermes.api.MetricDecimalValue otherErrors()
      Returns the value of the otherErrors record component.
      Returns:
      the value of the otherErrors record component
    • codes2xx

      public pl.allegro.tech.hermes.api.MetricDecimalValue codes2xx()
      Returns the value of the codes2xx record component.
      Returns:
      the value of the codes2xx record component
    • code4xx

      public pl.allegro.tech.hermes.api.MetricDecimalValue code4xx()
      Returns the value of the code4xx record component.
      Returns:
      the value of the code4xx record component
    • code5xx

      public pl.allegro.tech.hermes.api.MetricDecimalValue code5xx()
      Returns the value of the code5xx record component.
      Returns:
      the value of the code5xx record component
    • metricPathBatchRate

      public pl.allegro.tech.hermes.api.MetricDecimalValue metricPathBatchRate()
      Returns the value of the metricPathBatchRate record component.
      Returns:
      the value of the metricPathBatchRate record component