Class AnalysisLimits

  • All Implemented Interfaces:
    ToXContent, ToXContentObject

    public class AnalysisLimits
    extends Object
    implements ToXContentObject
    Analysis limits for autodetect. In particular, this is a collection of parameters that allow limiting the resources used by the job.
    • Constructor Detail

      • AnalysisLimits

        public AnalysisLimits​(Long categorizationExamplesLimit)
      • AnalysisLimits

        public AnalysisLimits​(Long modelMemoryLimit,
                              Long categorizationExamplesLimit)
    • Method Detail

      • getModelMemoryLimit

        @Nullable
        public Long getModelMemoryLimit()
        Maximum size of the model in MB before the anomaly detector will drop new samples to prevent the model using any more memory.
        Returns:
        The set memory limit or null if not set
      • getCategorizationExamplesLimit

        @Nullable
        public Long getCategorizationExamplesLimit()
        Gets the limit to the number of examples that are stored per category
        Returns:
        the limit or null if not set
      • equals

        public boolean equals​(Object other)
        Overridden equality test
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object