 (ns riemann.influxdb
-  "Forwards events to InfluxDB. Supports InfluxDB 0.9 or Higher"
+  "Forwards events to InfluxDB. Supports InfluxDB 0.9 or higher."
   (:require
     [clojure.set :as set])
   (:import

    true (long time-event)))

(defn converts-double
  "if n if a ratio or a BigInt, converts it to double. Returns n otherwise"
  [n]
  (if (or (ratio? n) (instance? clojure.lang.BigInt n))
    (double n)

  "Converts a Riemann event into an InfluxDB Point (an instance of `org.influxdb.dto.Point`.

  - The first parameter is the event. The `:precision` key of the event is used to converts the event `time` into the correct time unit (default seconds).
  - The second parameter is the option map passed to the InfluxDB stream."
  [event opts]
  (when (and (:time event) (:service event) (:metric event))
    (let [precision (:precision event (:precision opts))
