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 Details

    • Timeslice

      public Timeslice()
  • Method Details

    • getField

      public String getField()
      Gets the field.

      The field where the aggregation is located in the document.

      Returns:
      the field
    • getInterval

      public String 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

      public Boolean 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