Record Class IngestTelemetry.Rate
java.lang.Object
java.lang.Record
com.inductiveautomation.historian.gateway.api.storage.IngestTelemetry.Rate
- Enclosing class:
IngestTelemetry
public static record IngestTelemetry.Rate(double oneMinute, double fiveMinute, double fifteenMinute)
extends Record
A metered rate over the 1, 5 and 15 minute exponentially weighted windows.
- Since:
- 2027.02
-
Constructor Summary
ConstructorsConstructorDescriptionRate(double oneMinute, double fiveMinute, double fifteenMinute) Creates an instance of aRaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of thefifteenMinuterecord component.doubleReturns the value of thefiveMinuterecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theoneMinuterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Rate
public Rate(double oneMinute, double fiveMinute, double fifteenMinute) Creates an instance of aRaterecord class.- Parameters:
oneMinute- the value for theoneMinuterecord componentfiveMinute- the value for thefiveMinuterecord componentfifteenMinute- the value for thefifteenMinuterecord component
-
-
Method Details
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
oneMinute
public double oneMinute()Returns the value of theoneMinuterecord component.- Returns:
- the value of the
oneMinuterecord component
-
fiveMinute
public double fiveMinute()Returns the value of thefiveMinuterecord component.- Returns:
- the value of the
fiveMinuterecord component
-
fifteenMinute
public double fifteenMinute()Returns the value of thefifteenMinuterecord component.- Returns:
- the value of the
fifteenMinuterecord component
-