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 aQueryMetrics
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.com.codahale.metrics.Timer
Returns the value of theoperationTimer
record component.Returns the value of theprojectedMeter
record component.com.codahale.metrics.Meter
Returns the value of thequeriedMeter
record component.static QueryMetrics
register
(GatewayContext gatewayContext, String historianName) final String
toString()
Returns a string representation of this record class.void
update
(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 aQueryMetrics
record class.- Parameters:
operationTimer
- the value for theoperationTimer
record componentprojectedMeter
- the value for theprojectedMeter
record componentqueriedMeter
- the value for thequeriedMeter
record 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 theoperationTimer
record component.- Returns:
- the value of the
operationTimer
record component
-
projectedMeter
Returns the value of theprojectedMeter
record component.- Returns:
- the value of the
projectedMeter
record component
-
queriedMeter
public com.codahale.metrics.Meter queriedMeter()Returns the value of thequeriedMeter
record component.- Returns:
- the value of the
queriedMeter
record component
-