Class Timeslice
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v1.model.QueryAggregation
com.ibm.watson.discovery.v1.model.Timeslice
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Timeslice extends QueryAggregation
Timeslice.
-
Constructor Summary
Constructors Constructor Description Timeslice()
-
Method Summary
Methods inherited from class com.ibm.watson.discovery.v1.model.QueryAggregation
getAggregations, getMatchingResults, getResults, getType
Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
Timeslice
public Timeslice()
-
-
Method Details
-
getField
Gets the field.The field where the aggregation is located in the document.
- Returns:
- the field
-
getInterval
Gets the interval.Interval of the aggregation. Valid date interval values are second/seconds minute/minutes, hour/hours, day/days, week/weeks, month/months, and year/years.
- Returns:
- the interval
-
isAnomaly
Gets the anomaly.Used to indicate that anomaly detection should be performed. Anomaly detection is used to locate unusual datapoints within a time series.
- Returns:
- the anomaly
-