Class MlStatsIndex

java.lang.Object
org.elasticsearch.xpack.core.ml.MlStatsIndex

public class MlStatsIndex extends Object
Describes the indices where ML is storing various stats about the users jobs.
  • Field Details

  • Method Details

    • wrappedMapping

      public static String wrappedMapping()
    • mapping

      public static String mapping()
    • indexPattern

      public static String indexPattern()
    • writeAlias

      public static String writeAlias()
    • createStatsIndexAndAliasIfNecessary

      public static void createStatsIndexAndAliasIfNecessary(Client client, ClusterState state, IndexNameExpressionResolver resolver, org.elasticsearch.core.TimeValue masterNodeTimeout, ActionListener<Boolean> listener)
      Creates the first concrete .ml-stats-000001 index (if necessary) Creates the .ml-stats-write alias for that index. The listener will be notified with a boolean to indicate if the index was created because of this call, but unless there is a failure after this method returns the index and alias should be present.