Module org.elasticsearch.xcore
Class MonitoringTemplateUtils
java.lang.Object
org.elasticsearch.xpack.core.monitoring.exporter.MonitoringTemplateUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe last version of X-Pack that updated the templates and pipelines.static final StringThe previous version of templates, which we still support via the REST /_monitoring/bulk endpoint because nothing changed for those documents.static final StringCurrent version of templates used in their name to differentiate from breaking changes (separate from product version). -
Method Summary
Modifier and TypeMethodDescriptionstatic StringindexName(DateFormatter formatter, MonitoredSystem system, long timestamp) Get the index name given a specific date format, a monitored system and a timestamp.
-
Field Details
-
LAST_UPDATED_VERSION
public static final int LAST_UPDATED_VERSIONThe 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
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
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
Get the index name given a specific date format, a monitored system and a timestamp.- Parameters:
formatter- theDateFormatterto use to compute the timestamped index namesystem- theMonitoredSystemfor which the index name is computedtimestamp- the timestamp value to use to compute the timestamped index name- Returns:
- the index name as a @{link String}
-