java.lang.Object
org.elasticsearch.xpack.core.ml.annotations.Annotation
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class Annotation extends Object implements org.elasticsearch.xcontent.ToXContentObject, Writeable
  • Field Details

    • RESULTS_FIELD

      public static final org.elasticsearch.xcontent.ParseField RESULTS_FIELD
      Result type is needed due to the fact that Annotation can be returned from C++ as an ML result.
    • ANNOTATION

      public static final org.elasticsearch.xcontent.ParseField ANNOTATION
    • CREATE_TIME

      public static final org.elasticsearch.xcontent.ParseField CREATE_TIME
    • CREATE_USERNAME

      public static final org.elasticsearch.xcontent.ParseField CREATE_USERNAME
    • TIMESTAMP

      public static final org.elasticsearch.xcontent.ParseField TIMESTAMP
    • END_TIMESTAMP

      public static final org.elasticsearch.xcontent.ParseField END_TIMESTAMP
    • MODIFIED_TIME

      public static final org.elasticsearch.xcontent.ParseField MODIFIED_TIME
    • MODIFIED_USERNAME

      public static final org.elasticsearch.xcontent.ParseField MODIFIED_USERNAME
    • TYPE

      public static final org.elasticsearch.xcontent.ParseField TYPE
    • EVENT

      public static final org.elasticsearch.xcontent.ParseField EVENT
    • DETECTOR_INDEX

      public static final org.elasticsearch.xcontent.ParseField DETECTOR_INDEX
    • PARTITION_FIELD_NAME

      public static final org.elasticsearch.xcontent.ParseField PARTITION_FIELD_NAME
    • PARTITION_FIELD_VALUE

      public static final org.elasticsearch.xcontent.ParseField PARTITION_FIELD_VALUE
    • OVER_FIELD_NAME

      public static final org.elasticsearch.xcontent.ParseField OVER_FIELD_NAME
    • OVER_FIELD_VALUE

      public static final org.elasticsearch.xcontent.ParseField OVER_FIELD_VALUE
    • BY_FIELD_NAME

      public static final org.elasticsearch.xcontent.ParseField BY_FIELD_NAME
    • BY_FIELD_VALUE

      public static final org.elasticsearch.xcontent.ParseField BY_FIELD_VALUE
  • Constructor Details

  • Method Details

    • fromXContent

      public static Annotation fromXContent(org.elasticsearch.xcontent.XContentParser parser, Void context)
      Parses Annotation using a strict parser.
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • getAnnotation

      public String getAnnotation()
    • getCreateTime

      public Date getCreateTime()
    • getCreateUsername

      public String getCreateUsername()
    • getTimestamp

      public Date getTimestamp()
    • getEndTimestamp

      public Date getEndTimestamp()
    • getJobId

      public String getJobId()
    • getModifiedTime

      public Date getModifiedTime()
    • getModifiedUsername

      public String getModifiedUsername()
    • getType

      public Annotation.Type getType()
    • getEvent

      public Annotation.Event getEvent()
    • getDetectorIndex

      public Integer getDetectorIndex()
    • getPartitionFieldName

      public String getPartitionFieldName()
    • getPartitionFieldValue

      public String getPartitionFieldValue()
    • getOverFieldName

      public String getOverFieldName()
    • getOverFieldValue

      public String getOverFieldValue()
    • getByFieldName

      public String getByFieldName()
    • getByFieldValue

      public String getByFieldValue()
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object