Modifier and Type | Class and Description |
---|---|
static class |
IntervalVariable.Builder
Mutable builder for setting up unnecessary properties for
class IntervalVariable . |
Variable.DefaultImpls
Constructor and Description |
---|
IntervalVariable(java.lang.String name,
java.lang.String displayName,
HidingMode hidingMode,
Duration[] values,
boolean auto,
int stepCount,
Duration minInterval)
Public constructor for
class IntervalVariable . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asVariable()
Returns string representation of this variable.
|
java.lang.String |
getName()
Variable name.
|
org.json.JSONObject |
toJson()
returns object as JSON.
|
asVariable, getName
public IntervalVariable(java.lang.String name, java.lang.String displayName, HidingMode hidingMode, Duration[] values, boolean auto, int stepCount, Duration minInterval)
Public constructor for class IntervalVariable
.
name
- see BaseVariable.namedisplayName
- see BaseVariable.displayNamehidingMode
- see BaseVariable.hidingModevalues
- intervals that will be serialized as CSV stringauto
- when true the Auto option will be available to select on dashboard screen. The size of interval
calculated as max(timerange / stepCount, minInterval)
.stepCount
- how many times should the current time range be divided to calculate auto interval. Ignored
when auto is false.minInterval
- the minimal interval that can be calculated for auto interval.
Ignored when auto is false.class IntervalVariable