libinfluxdb-0.0.4: libinfluxdb

Safe HaskellNone
LanguageHaskell2010

Database.InfluxDB.Writer

Synopsis

Documentation

data Config Source

Constructors

Config 

Fields

cURL :: !String

The database name is extracted from the path (the leading slash is dropped, the tail is the database name). The rest of the URL (hostname, port, auth info) describes how to access the InfluxDB server.

Example: http://localhost:8086/testdb

data Value Source

A Value is either an integer, a floating point number, a boolean or string.

Constructors

I !Int64 
F !Double 
B !Bool 
S !Text 

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.