Class InfluxDbHttpSender

    • Constructor Detail

      • InfluxDbHttpSender

        public InfluxDbHttpSender​(String protocol,
                                  String hostname,
                                  int port,
                                  String database,
                                  String authString,
                                  TimeUnit timePrecision,
                                  int connectTimeout,
                                  int readTimeout,
                                  String measurementPrefix)
                           throws Exception
        Creates a new http sender given connection details.
        Parameters:
        hostname - the influxDb hostname
        port - the influxDb http port
        database - the influxDb database to write to
        authString - the authorization string to be used to connect to InfluxDb, of format username:password
        timePrecision - the time precision of the metrics
        connectTimeout - the connect timeout
        readTimeout - the read timeout
        Throws:
        Exception - exception while creating the influxDb sender(MalformedURLException)