Class AnalysisLimits

  • All Implemented Interfaces:
    ToXContent, ToXContentObject

    public class AnalysisLimits
    extends java.lang.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​(java.lang.Long categorizationExamplesLimit)
      • AnalysisLimits

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

      • getModelMemoryLimit

        @Nullable
        public java.lang.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 java.lang.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​(java.lang.Object other)
        Overridden equality test
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object