net.opentsdb.core
public class RateOptions extends Object
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_RESET_VALUE |
Constructor and Description |
---|
RateOptions()
Ctor
|
RateOptions(boolean counter,
long counter_max,
long reset_value)
Ctor
|
Modifier and Type | Method and Description |
---|---|
long |
getCounterMax() |
long |
getResetValue() |
boolean |
isCounter() |
void |
setCounterMax(long counter_max) |
void |
setIsCounter(boolean counter) |
void |
setResetValue(long reset_value) |
String |
toString()
Generates a String version of the rate option instance in a format that
can be utilized in a query.
|
public static final long DEFAULT_RESET_VALUE
public RateOptions()
public RateOptions(boolean counter, long counter_max, long reset_value)
counter
- If true, indicates that the rate calculation should assume
that the underlying data is from a countercounter_max
- Specifies the maximum value for the counter before it
will roll over and restart at 0reset_value
- Specifies the largest rate change that is considered
acceptable, if a rate change is seen larger than this value then the
counter is assumed to have been resetpublic boolean isCounter()
public long getCounterMax()
public long getResetValue()
public void setIsCounter(boolean counter)
counter
- Whether or not the time series should be considered counterspublic void setCounterMax(long counter_max)
counter_max
- The value at which counters roll overpublic void setResetValue(long reset_value)
reset_value
- A difference that may be an anomaly so suppress it