java.lang.Object
org.elasticsearch.xpack.core.ml.job.config.ModelPlotConfig
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

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

    • TYPE_FIELD

      public static final org.elasticsearch.xcontent.ParseField TYPE_FIELD
    • ENABLED_FIELD

      public static final org.elasticsearch.xcontent.ParseField ENABLED_FIELD
    • TERMS_FIELD

      public static final org.elasticsearch.xcontent.ParseField TERMS_FIELD
    • ANNOTATIONS_ENABLED_FIELD

      public static final org.elasticsearch.xcontent.ParseField ANNOTATIONS_ENABLED_FIELD
    • LENIENT_PARSER

      public static final org.elasticsearch.xcontent.ConstructingObjectParser<ModelPlotConfig,Void> LENIENT_PARSER
    • STRICT_PARSER

      public static final org.elasticsearch.xcontent.ConstructingObjectParser<ModelPlotConfig,Void> STRICT_PARSER
  • Constructor Details

    • ModelPlotConfig

      public ModelPlotConfig()
    • ModelPlotConfig

      public ModelPlotConfig(boolean enabled, String terms, Boolean annotationsEnabled)
    • ModelPlotConfig

      public ModelPlotConfig(StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • 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
    • isEnabled

      public boolean isEnabled()
    • getTerms

      public String getTerms()
    • annotationsEnabled

      public boolean annotationsEnabled()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object