Record Class SamplingMetrics.SamplingGroupStats
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.opcua.server.api.SamplingMetrics.SamplingGroupStats
- Enclosing class:
- SamplingMetrics
public static record SamplingMetrics.SamplingGroupStats(int requestCount, int samplingInterval, double queueDuration, double overloadFactor, com.codahale.metrics.Snapshot histogram, double meanThroughput, double oneMinuteThroughput)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSamplingGroupStats(int requestCount, int samplingInterval, double queueDuration, double overloadFactor, com.codahale.metrics.Snapshot histogram, double meanThroughput, double oneMinuteThroughput) Creates an instance of aSamplingGroupStatsrecord 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.com.codahale.metrics.SnapshotReturns the value of thehistogramrecord component.doubleReturns the value of themeanThroughputrecord component.doubleReturns the value of theoneMinuteThroughputrecord component.doubleReturns the value of theoverloadFactorrecord component.doubleReturns the value of thequeueDurationrecord component.intReturns the value of therequestCountrecord component.intReturns the value of thesamplingIntervalrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SamplingGroupStats
public SamplingGroupStats(int requestCount, int samplingInterval, double queueDuration, double overloadFactor, com.codahale.metrics.Snapshot histogram, double meanThroughput, double oneMinuteThroughput) Creates an instance of aSamplingGroupStatsrecord class.- Parameters:
requestCount- the value for therequestCountrecord componentsamplingInterval- the value for thesamplingIntervalrecord componentqueueDuration- the value for thequeueDurationrecord componentoverloadFactor- the value for theoverloadFactorrecord componenthistogram- the value for thehistogramrecord componentmeanThroughput- the value for themeanThroughputrecord componentoneMinuteThroughput- the value for theoneMinuteThroughputrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
requestCount
public int requestCount()Returns the value of therequestCountrecord component.- Returns:
- the value of the
requestCountrecord component
-
samplingInterval
public int samplingInterval()Returns the value of thesamplingIntervalrecord component.- Returns:
- the value of the
samplingIntervalrecord component
-
queueDuration
public double queueDuration()Returns the value of thequeueDurationrecord component.- Returns:
- the value of the
queueDurationrecord component
-
overloadFactor
public double overloadFactor()Returns the value of theoverloadFactorrecord component.- Returns:
- the value of the
overloadFactorrecord component
-
histogram
public com.codahale.metrics.Snapshot histogram()Returns the value of thehistogramrecord component.- Returns:
- the value of the
histogramrecord component
-
meanThroughput
public double meanThroughput()Returns the value of themeanThroughputrecord component.- Returns:
- the value of the
meanThroughputrecord component
-
oneMinuteThroughput
public double oneMinuteThroughput()Returns the value of theoneMinuteThroughputrecord component.- Returns:
- the value of the
oneMinuteThroughputrecord component
-