public class InfluxDbWriterFactory extends java.lang.Object implements OutputWriterFactory
| Constructor and Description |
|---|
InfluxDbWriterFactory(com.google.common.collect.ImmutableList<java.lang.String> typeNames,
boolean booleanAsNumber,
java.lang.String url,
java.lang.String username,
java.lang.String password,
java.lang.String database,
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> tags,
java.lang.String writeConsistency,
java.lang.String retentionPolicy,
java.util.List<java.lang.String> resultTags,
java.lang.Boolean createDatabase,
java.lang.Boolean reportJmxPortAsTag,
java.lang.Boolean typeNamesAsTags,
java.lang.Boolean allowStringValues) |
| Modifier and Type | Method and Description |
|---|---|
ResultTransformerOutputWriter<InfluxDbWriter> |
create() |
public InfluxDbWriterFactory(com.google.common.collect.ImmutableList<java.lang.String> typeNames,
boolean booleanAsNumber,
java.lang.String url,
java.lang.String username,
java.lang.String password,
java.lang.String database,
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> tags,
java.lang.String writeConsistency,
java.lang.String retentionPolicy,
java.util.List<java.lang.String> resultTags,
java.lang.Boolean createDatabase,
java.lang.Boolean reportJmxPortAsTag,
java.lang.Boolean typeNamesAsTags,
java.lang.Boolean allowStringValues)
typeNames - - List of typeNames keys to use in fields by defaultbooleanAsNumber - - output boolean attributes as numberurl - - The url e.g http://localhost:8086 to InfluxDBusername - - The username for InfluxDBpassword - - The password for InfluxDBdatabase - - The name of the database (created if does not exist) ontags - - Map of custom tags with custom valueswriteConsistency - - The write consistency for InfluxDB.
retentionPolicy - - The retention policy for InfluxDBresultTags - - A list of meta-data from the result to add as tags. Sends all meta-data by default
createDatabase - - Creates the database in InfluxDB if not foundreportJmxPortAsTag - - Sends the JMX server port as tag instead of fieldtypeNamesAsTags - - Sends the given list of typeNames as tags instead of fields keysallowStringValues - - Allows the OutputWriter to send String Valuespublic ResultTransformerOutputWriter<InfluxDbWriter> create()
create in interface OutputWriterFactoryCopyright © 2010-2021 JmxTrans team. All Rights Reserved.