public class LogsIngester extends Object
ingestLog(LogsMessage)
. Configures and starts the periodic flush of
consumed metric data to Wavefront.Constructor and Description |
---|
LogsIngester(PointHandler pointHandler,
java.util.function.Supplier<LogsIngestionConfig> logsIngestionConfigSupplier,
String prefix,
java.util.function.Supplier<Long> currentMillis) |
Modifier and Type | Method and Description |
---|---|
void |
flush() |
void |
ingestLog(LogsMessage logsMessage) |
void |
start() |
protected static final Logger logger
public LogsIngester(PointHandler pointHandler, java.util.function.Supplier<LogsIngestionConfig> logsIngestionConfigSupplier, String prefix, java.util.function.Supplier<Long> currentMillis) throws ConfigurationException
pointHandler
- play parsed metricslogsIngestionConfigSupplier
- supplied configuration object for logs harvesting. May be reloaded. Must return
"null" on any problems, as opposed to throwingprefix
- all harvested metrics start with this prefixcurrentMillis
- supplier of the current time in millisConfigurationException
- if the first config from logsIngestionConfigSupplier is nullpublic void start()
public void flush()
public void ingestLog(LogsMessage logsMessage)
Copyright © 2017. All rights reserved.