Safe Haskell | None |
---|---|
Language | Haskell2010 |
Database.InfluxDB.Writer
- data Config = Config {}
- data Handle
- createHandle :: Config -> IO (Either () Handle)
- newHandle :: Config -> Manager -> IO (Either () Handle)
- data Value
- type Tags = Map Text Text
- type Fields = Map Text Value
- writePoint :: Handle -> Text -> Tags -> Fields -> IO ()
- writePoint' :: Handle -> Text -> Tags -> Fields -> Int64 -> IO ()
Documentation
Constructors
Config | |
Fields
|
A Value
is either an integer, a floating point number, a boolean or
string.
writePoint :: Handle -> Text -> Tags -> Fields -> IO () Source
Write a point to the database. Generates a timestamp from the local clock.
writePoint' :: Handle -> Text -> Tags -> Fields -> Int64 -> IO () Source
Same as writePoint
but allows the caller to supply the timestamp.