Class RuleParamsForForceTimeShift

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

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

    • TYPE_FIELD

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

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

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

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

    • RuleParamsForForceTimeShift

      public RuleParamsForForceTimeShift(long timeShiftAmount)
    • RuleParamsForForceTimeShift

      public RuleParamsForForceTimeShift(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
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object