-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | libinfluxdb
--   
--   libinfluxdb
@package libinfluxdb
@version 0.0.4

module Database.InfluxDB.Writer
data Config
Config :: !String -> Config

-- | 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: <tt><a>http://localhost:8086/testdb</a></tt>
[cURL] :: Config -> !String
data Handle
createHandle :: Config -> IO (Either () Handle)
newHandle :: Config -> Manager -> IO (Either () Handle)

-- | A <a>Value</a> is either an integer, a floating point number, a
--   boolean or string.
data Value
I :: !Int64 -> Value
F :: !Double -> Value
B :: !Bool -> Value
S :: !Text -> Value
type Tags = Map Text Text
type Fields = Map Text Value

-- | Write a point to the database. Generates a timestamp from the local
--   clock.
writePoint :: Handle -> Text -> Tags -> Fields -> IO ()

-- | Same as <a>writePoint</a> but allows the caller to supply the
--   timestamp.
writePoint' :: Handle -> Text -> Tags -> Fields -> Int64 -> IO ()
instance GHC.Classes.Eq Database.InfluxDB.Writer.Point
instance GHC.Show.Show Database.InfluxDB.Writer.Point
instance GHC.Classes.Eq Database.InfluxDB.Writer.Value
instance GHC.Show.Show Database.InfluxDB.Writer.Value
