| Constructor and Description |
|---|
TSMRangeParams() |
TSMRangeParams(long fromTimestamp,
long toTimestamp) |
| Modifier and Type | Method and Description |
|---|---|
void |
addParams(CommandArguments args) |
TSMRangeParams |
aggregation(AggregationType[] aggregators,
long bucketDuration)
Specifies multiple aggregators to be applied in a single
TS.MRANGE / TS.MREVRANGE call. |
TSMRangeParams |
aggregation(AggregationType aggregationType,
long bucketDuration) |
TSMRangeParams |
align(long timestamp)
This requires AGGREGATION.
|
TSMRangeParams |
alignEnd()
This requires AGGREGATION.
|
TSMRangeParams |
alignStart()
This requires AGGREGATION.
|
TSMRangeParams |
bucketTimestamp(java.lang.String bucketTimestamp)
This requires AGGREGATION.
|
TSMRangeParams |
bucketTimestampHigh()
This requires AGGREGATION.
|
TSMRangeParams |
bucketTimestampLow()
This requires AGGREGATION.
|
TSMRangeParams |
bucketTimestampMid()
This requires AGGREGATION.
|
TSMRangeParams |
count(int count) |
TSMRangeParams |
empty()
This requires AGGREGATION.
|
boolean |
equals(java.lang.Object o) |
TSMRangeParams |
excludeEmpty()
Omits matching time series with no reported samples for the queried range and options from the
TS.MRANGE / TS.MREVRANGE reply by sending the EXCLUDEEMPTY flag. |
TSMRangeParams |
filter(java.lang.String... filters) |
TSMRangeParams |
filterByTS(long... timestamps) |
TSMRangeParams |
filterByValues(double min,
double max) |
TSMRangeParams |
fromTimestamp(long fromTimestamp) |
TSMRangeParams |
groupBy(java.lang.String label,
java.lang.String reduce) |
int |
hashCode() |
TSMRangeParams |
latest() |
static TSMRangeParams |
multiRangeParams() |
static TSMRangeParams |
multiRangeParams(long fromTimestamp,
long toTimestamp) |
TSMRangeParams |
selectedLabels(java.lang.String... labels) |
TSMRangeParams |
toTimestamp(long toTimestamp) |
TSMRangeParams |
withLabels() |
TSMRangeParams |
withLabels(boolean withLabels) |
public TSMRangeParams(long fromTimestamp,
long toTimestamp)
public TSMRangeParams()
public static TSMRangeParams multiRangeParams(long fromTimestamp, long toTimestamp)
public static TSMRangeParams multiRangeParams()
public TSMRangeParams fromTimestamp(long fromTimestamp)
public TSMRangeParams toTimestamp(long toTimestamp)
public TSMRangeParams latest()
public TSMRangeParams filterByTS(long... timestamps)
public TSMRangeParams filterByValues(double min, double max)
public TSMRangeParams withLabels(boolean withLabels)
public TSMRangeParams withLabels()
public TSMRangeParams selectedLabels(java.lang.String... labels)
public TSMRangeParams count(int count)
public TSMRangeParams align(long timestamp)
public TSMRangeParams alignStart()
public TSMRangeParams alignEnd()
public TSMRangeParams aggregation(AggregationType aggregationType, long bucketDuration)
public TSMRangeParams aggregation(AggregationType[] aggregators, long bucketDuration)
TS.MRANGE / TS.MREVRANGE call. Aggregators are
sent on the wire in the given order and the response values appear in the same order in TSElement.getValues().
Single-element arrays are accepted and behave like aggregation(AggregationType, long).aggregators - ordered, non-empty list of aggregatorsbucketDuration - aggregation bucket duration in millisecondsjava.lang.IllegalArgumentException - if aggregators is emptypublic TSMRangeParams bucketTimestamp(java.lang.String bucketTimestamp)
public TSMRangeParams bucketTimestampLow()
public TSMRangeParams bucketTimestampHigh()
public TSMRangeParams bucketTimestampMid()
public TSMRangeParams empty()
public TSMRangeParams excludeEmpty()
TS.MRANGE / TS.MREVRANGE reply by sending the EXCLUDEEMPTY flag.
By default, matching series can be returned with an empty samples array. When enabled, a matching series is returned only when the command reports at least one sample for that series; if every matching series is empty, the reply is an empty array.
This flag must not be combined with groupBy(String, String).
public TSMRangeParams filter(java.lang.String... filters)
public TSMRangeParams groupBy(java.lang.String label, java.lang.String reduce)
public void addParams(CommandArguments args)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2026. All rights reserved.