libinfluxdb-0.0.4: libinfluxdb

Safe HaskellNone
LanguageHaskell2010

Database.InfluxDB.Writer

Synopsis

Documentation

data Config #

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 Handle #

data Value #

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

Constructors

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

Instances

Eq Value # 

Methods

(==) :: Value -> Value -> Bool #

(/=) :: Value -> Value -> Bool #

Show Value # 

Methods

showsPrec :: Int -> Value -> ShowS #

show :: Value -> String #

showList :: [Value] -> ShowS #

type Tags = Map Text Text #

writePoint :: Handle -> Text -> Tags -> Fields -> IO () #

Write a point to the database. Generates a timestamp from the local clock.

writePoint' :: Handle -> Text -> Tags -> Fields -> Int64 -> IO () #

Same as writePoint but allows the caller to supply the timestamp.