Package step.core.timeseries
Class Query
- java.lang.Object
-
- step.core.timeseries.Query
-
public class Query extends Object
-
-
Constructor Summary
Constructors Constructor Description Query()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Queryfilter(Map<String,String> filters)Specifies the mandatory list of key-value attributes that the series should matchMap<String,String>getFilters()LonggetFrom()Set<String>getGroupDimensions()longgetIntervalSizeMs()LonggetTo()Querygroup()Group all the selected series in one seriesQuerygroupBy(Set<String> dimensions)booleanisThreadGroupsBuckets()Queryrange(long from, long to)Specifies a time range for the queryQuerysplit(Long numberOfBuckets)Querywindow(long intervalSizeMs)QuerywithThreadGroupsBuckets(boolean onlyThreadGroupsBuckets)
-
-
-
Method Detail
-
getFrom
public Long getFrom()
-
getTo
public Long getTo()
-
isThreadGroupsBuckets
public boolean isThreadGroupsBuckets()
-
withThreadGroupsBuckets
public Query withThreadGroupsBuckets(boolean onlyThreadGroupsBuckets)
-
range
public Query range(long from, long to)
Specifies a time range for the query- Parameters:
from- the beginning of the time range in ms (Epoch time)to- the end of the time range (Epoch time)- Returns:
- the builder
-
filter
public Query filter(Map<String,String> filters)
Specifies the mandatory list of key-value attributes that the series should match- Parameters:
filters- the mandatory key-value attributes that the series should match- Returns:
- the builder
-
group
public Query group()
Group all the selected series in one series- Returns:
- the builder
-
window
public Query window(long intervalSizeMs)
-
getIntervalSizeMs
public long getIntervalSizeMs()
-
-