Class AnomalyLocalizationOutput.Bucket

java.lang.Object
org.opensearch.ml.common.output.execute.anomalylocalization.AnomalyLocalizationOutput.Bucket
All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentObject, Output
Enclosing class:
AnomalyLocalizationOutput

public static class AnomalyLocalizationOutput.Bucket extends Object implements Output
Localized entities are bucketized by time.
  • Field Details

  • Constructor Details

    • Bucket

      public Bucket(org.opensearch.core.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
    • Bucket

      public Bucket()
  • Method Details

    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Throws:
      IOException
    • toXContent

      public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params)
      Specified by:
      toXContent in interface org.opensearch.core.xcontent.ToXContent
    • getStartTime

      public long getStartTime()
    • getEndTime

      public long getEndTime()
    • getOverallAggValue

      public double getOverallAggValue()
    • getEntities

      public List<AnomalyLocalizationOutput.Entity> getEntities()
    • getBase

    • getCounter

      public Optional<Counter> getCounter()
    • getCompleted

      public AtomicBoolean getCompleted()
    • setStartTime

      public void setStartTime(long startTime)
    • setEndTime

      public void setEndTime(long endTime)
    • setOverallAggValue

      public void setOverallAggValue(double overallAggValue)
    • setEntities

      public void setEntities(List<AnomalyLocalizationOutput.Entity> entities)
    • setBase

      public void setBase(Optional<AnomalyLocalizationOutput.Bucket> base)
    • setCounter

      public void setCounter(Optional<Counter> counter)
    • setCompleted

      public void setCompleted(AtomicBoolean completed)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object