influxdb-1.6.0.4: Haskell client library for InfluxDB

Safe HaskellNone
LanguageHaskell2010

Database.InfluxDB.Write.UDP

Contents

Synopsis

Writers

write :: Timestamp time => WriteParams -> Line time -> IO () Source #

Write a Line

writeBatch :: (Timestamp time, Foldable f) => WriteParams -> f (Line time) -> IO () Source #

Write Lines in a batch

This is more efficient than write.

Writer parameters

data WriteParams Source #

The full set of parameters for the UDP writer.

Instances

HasPrecision WriteRequest WriteParams Source #

Timestamp precision.

In the UDP API, all timestamps are sent in nanosecond but you can specify lower precision. The writer just rounds timestamps to the specified precision.

writeParams :: Socket -> SockAddr -> WriteParams Source #

Smart constructor for WriteParams

Default parameters:

precision
Nanosecond

sockAddr :: Lens' WriteParams SockAddr Source #

UDP endopoint of the database

precision :: HasPrecision ty a => Lens' a (Precision ty) Source #

Time precision parameter.