Package com.izettle.metrics.influxdb
Interface InfluxDbSender
-
- All Known Implementing Classes:
GroupedInfluxDbHttpSender,InfluxDbHttpSender,InfluxDBKafkaSender,InfluxDbLoggerSender,InfluxDbTcpSender,InfluxDbUdpSender
public interface InfluxDbSender
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappendPoints(InfluxDbPoint point)Adds this metric point to the buffer.voidflush()Flushes buffer, if applicable.Map<String,String>getTags()booleanhasSeriesData()voidsetTags(Map<String,String> tags)Set tags applicable for all the points.intwriteData()Writes buffer data to InfluxDb.
-
-
-
Method Detail
-
flush
void flush()
Flushes buffer, if applicable.
-
hasSeriesData
boolean hasSeriesData()
- Returns:
- true if there is data available to send.
-
appendPoints
void appendPoints(InfluxDbPoint point)
Adds this metric point to the buffer.- Parameters:
point- metric point with tags and fields
-
writeData
int writeData() throws ExceptionWrites buffer data to InfluxDb.- Returns:
- the response code for the request sent to InfluxDb.
- Throws:
Exception- exception while writing to InfluxDb api
-
setTags
void setTags(Map<String,String> tags)
Set tags applicable for all the points.- Parameters:
tags- map containing tags common to all metrics
-
-