Class MonitoringTemplateUtils

java.lang.Object
org.elasticsearch.xpack.core.monitoring.exporter.MonitoringTemplateUtils

public final class MonitoringTemplateUtils extends Object
  • Field Details

    • LAST_UPDATED_VERSION

      public static final int LAST_UPDATED_VERSION
      The last version of X-Pack that updated the templates and pipelines.

      It may be possible for this to diverge between templates and pipelines, but for now they're the same.

      See Also:
    • TEMPLATE_VERSION

      public static final String TEMPLATE_VERSION
      Current version of templates used in their name to differentiate from breaking changes (separate from product version). Version 7 has the same structure as version 6, but uses the `_doc` type.
      See Also:
    • OLD_TEMPLATE_VERSION

      public static final String OLD_TEMPLATE_VERSION
      The previous version of templates, which we still support via the REST /_monitoring/bulk endpoint because nothing changed for those documents.
      See Also:
  • Method Details

    • indexName

      public static String indexName(DateFormatter formatter, MonitoredSystem system, long timestamp)
      Get the index name given a specific date format, a monitored system and a timestamp.
      Parameters:
      formatter - the DateFormatter to use to compute the timestamped index name
      system - the MonitoredSystem for which the index name is computed
      timestamp - the timestamp value to use to compute the timestamped index name
      Returns:
      the index name as a @{link String}