Package org.graylog2.indexer.datastream
Interface DataStreamService
- All Known Implementing Classes:
DataStreamServiceImpl
public interface DataStreamService
-
Method Summary
-
Method Details
-
createDataStream
void createDataStream(String dataStreamName, String timestampField, Map<String, Map<String, String>> mappings, Policy ismPolicy) Create a data stream. This will create a data stream template with the given mappings, adding a timestamp mapping if none is specified for the timestampField in the mappings. Mappings will be made available to the FieldTypeMappingsService. If no data stream with the given name exists, the data stream will be created. A policy for handling lifecycle management of the data stream and its backing indices can be specified. Existing templates, mappings and policies will be updated.- Parameters:
dataStreamName- name of the data streamtimestampField- timestamp fieldmappings- field type mappings in the data streamismPolicy- ism policy for backing index lifecycle management
-