public class Timeslice extends QueryAggregation
Modifier and Type | Field and Description |
---|---|
protected java.lang.Boolean |
anomaly |
protected java.lang.String |
field |
protected java.lang.String |
interval |
aggregations, discriminatorMapping, discriminatorPropertyName, matchingResults, results, type
Constructor and Description |
---|
Timeslice() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getField()
Gets the field.
|
java.lang.String |
getInterval()
Gets the interval.
|
java.lang.Boolean |
isAnomaly()
Gets the anomaly.
|
getAggregations, getMatchingResults, getResults, getType
protected java.lang.String field
protected java.lang.String interval
protected java.lang.Boolean anomaly
public java.lang.String getField()
The field where the aggregation is located in the document.
public java.lang.String getInterval()
Interval of the aggregation. Valid date interval values are second/seconds minute/minutes, hour/hours, day/days, week/weeks, month/months, and year/years.
public java.lang.Boolean isAnomaly()
Used to indicate that anomaly detection should be performed. Anomaly detection is used to locate unusual datapoints within a time series.