     (into-array (list trust-manager))))
 
 (defn get-ssl-factory
-  "Get an instance of `javax.net.ssl.SSLSocketFactory`"
+  "Get an instance of `javax.net.ssl.SSLSocketFactory`."
   []
   (let [ssl-context (SSLContext/getInstance "TLS")]
     (.init ssl-context nil (get-trust-manager) (new SecureRandom))
     (.getSocketFactory ssl-context)))
 
 (defn get-hostname-verifier
-  "Get an instance of `javax.net.ssl.HostnameVerifier`"
+  "Get an instance of `javax.net.ssl.HostnameVerifier`."
   []
   (let [verifier (proxy [HostnameVerifier] []
                    (verify [_ _] true))]
     verifier))
 
 (defn get-builder
-  "Returns a new okhttp3.OkHttpClient$Builder"
+  "Returns a new okhttp3.OkHttpClient$Builder."
   [{:keys [timeout insecure]}]
   (let [builder (new okhttp3.OkHttpClient$Builder)]
     (when insecure

  "Returns a function which accepts an event, or sequence of events, and writes
  them to InfluxDB.

  influxdb-deprecated specifics options :

  - `:tag-fields`     A set of event fields to map into InfluxDB series tags.
                    (default: `#{:host}`).

  Each event can have these keys :

  - `:tag-fields`     A set of event fields to map into InfluxDB series tags..
  - `:precision`       The time precision. Possibles values are `:seconds`, `:milliseconds` and `:microseconds` (default `:seconds`). The event `time` will be converted."
  [opts]
  (let [opts (merge default-opts opts)

      (.connectTimeout timeout TimeUnit/MILLISECONDS))))

(defn get-client
  "Returns an `org.influxdb.InfluxDB` instance."
  [{:keys [scheme host port username password] :as opts}]
  (let [url (str scheme "://" host ":" port)]
    (InfluxDBFactory/connect url username password (get-builder opts))))

(defn get-batchpoint
  "Returns a `org.influxdb.dto.BatchPoints` instance."
  [{:keys [tags db retention consistency]}]
  (let [builder (doto (BatchPoints/database db)
                      (.consistency (InfluxDB$ConsistencyLevel/valueOf consistency)))]
