Record Class QueryMetrics
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.historian.metric.QueryMetrics
public record QueryMetrics(com.codahale.metrics.Timer operationTimer, ProjectedMeter projectedMeter, com.codahale.metrics.Meter queriedMeter)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQueryMetrics(com.codahale.metrics.Timer operationTimer, ProjectedMeter projectedMeter, com.codahale.metrics.Meter queriedMeter) Creates an instance of aQueryMetricsrecord 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.TimerReturns the value of theoperationTimerrecord component.Returns the value of theprojectedMeterrecord component.com.codahale.metrics.MeterReturns the value of thequeriedMeterrecord component.static QueryMetricsregister(GatewayContext gatewayContext, String historianName) final StringtoString()Returns a string representation of this record class.voidupdate(long count, long durationNanos)
-
Field Details
-
QUERY_THROUGHPUT_ACTUAL_METRIC
-
QUERY_THROUGHPUT_PROJECTED_METRIC
-
-
Constructor Details
-
QueryMetrics
public QueryMetrics(com.codahale.metrics.Timer operationTimer, ProjectedMeter projectedMeter, com.codahale.metrics.Meter queriedMeter) Creates an instance of aQueryMetricsrecord class.- Parameters:
operationTimer- the value for theoperationTimerrecord componentprojectedMeter- the value for theprojectedMeterrecord componentqueriedMeter- the value for thequeriedMeterrecord component
-
-
Method Details
-
register
-
update
public void update(long count, long durationNanos) -
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). -
operationTimer
public com.codahale.metrics.Timer operationTimer()Returns the value of theoperationTimerrecord component.- Returns:
- the value of the
operationTimerrecord component
-
projectedMeter
Returns the value of theprojectedMeterrecord component.- Returns:
- the value of the
projectedMeterrecord component
-
queriedMeter
public com.codahale.metrics.Meter queriedMeter()Returns the value of thequeriedMeterrecord component.- Returns:
- the value of the
queriedMeterrecord component
-