Class HttpInfluxdbInserter
- java.lang.Object
-
- com.elastisys.autoscaler.systemhistorians.influxdb.inserter.impl.HttpInfluxdbInserter
-
- All Implemented Interfaces:
InfluxdbInserter
public class HttpInfluxdbInserter extends java.lang.Object implements InfluxdbInserter
AnInfluxdbInserterthat operates over the HTTP API.
-
-
Constructor Summary
Constructors Constructor Description HttpInfluxdbInserter(org.slf4j.Logger logger, InfluxdbSystemHistorianConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinsert(java.util.Collection<com.elastisys.autoscaler.core.api.types.MetricValue> values)Inserts a collection ofMetricValues into InfluxDB.
-
-
-
Constructor Detail
-
HttpInfluxdbInserter
public HttpInfluxdbInserter(org.slf4j.Logger logger, InfluxdbSystemHistorianConfig config)
-
-
Method Detail
-
insert
public void insert(java.util.Collection<com.elastisys.autoscaler.core.api.types.MetricValue> values) throws InfluxdbInserterExceptionDescription copied from interface:InfluxdbInserterInserts a collection ofMetricValues into InfluxDB. On failure, anInfluxdbInserterExceptionis thrown.- Specified by:
insertin interfaceInfluxdbInserter- Parameters:
values- The values to be inserted.- Throws:
InfluxdbInserterException- if the insert failed
-
-