influxdb-1.6.0.6: Haskell client library for InfluxDB

Safe HaskellNone
LanguageHaskell2010

Database.InfluxDB.Write.UDP

Contents

Synopsis

Writers

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

Write a Line

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

Write Lines in a batch

This is more efficient than write.

Writer parameters

data WriteParams #

The full set of parameters for the UDP writer.

Instances
HasPrecision WriteRequest WriteParams #

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.

Instance details

Defined in Database.InfluxDB.Write.UDP

writeParams :: Socket -> SockAddr -> WriteParams #

Smart constructor for WriteParams

Default parameters:

precision
Nanosecond

socket :: Lens' WriteParams Socket #

Open UDP socket

sockAddr :: Lens' WriteParams SockAddr #

UDP endopoint of the database

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

Time precision parameter.