Package org.graylog2.indexer
Interface IndexMappingTemplate
- All Known Implementing Classes:
EventsIndexMapping,EventsIndexMapping7,IndexMapping,IndexMapping7
public interface IndexMappingTemplate
Implementing classes provide an index mapping template representation that can be stored in Elasticsearch.
-
Method Summary
Modifier and TypeMethodDescriptiontoTemplate(IndexSetConfig indexSetConfig, String indexPattern) Returns the index template as a map.toTemplate(IndexSetConfig indexSetConfig, String indexPattern, int order) Returns the index template as a map.
-
Method Details
-
toTemplate
Returns the index template as a map.- Parameters:
indexSetConfig- the index set configurationindexPattern- the index pattern the returned template should be applied toorder- the order value of the index template- Returns:
- the index template
-
toTemplate
Returns the index template as a map. (with an default order of -1)- Parameters:
indexSetConfig- the index set configurationindexPattern- the index pattern the returned template should be applied to- Returns:
- the index template
-