A small Haskell wrapper around TempoDB's api.


Keywords
database, library, Propose Tags, , tempodb-0.2.2.5.tar.gz, browse, Package description, Package maintainers, ParnellSpringmeyer, edit package information , 0.1.0.0
License
BSD-3-Clause
Install
cabal install tempodb-0.2.0.1

Documentation

Welcome!

This is a small Haskell wrapper around the TempoDB REST API.

Usage is easy

Create your basic auth record, keys and secrets are newtyped (I always mix up which one goes first) and run one of the method functions with the runTempoDB monad.

λ: import Database.Tempodb
λ: let a = BasicAuth (ApiKey "mykey") (ApiSec "mysecret")
λ: runTempoDB a $ seriesList Nothing
λ: runTempoDB a $ seriesList [("key", "somekey"), ("key", "another")]
λ: :set -XOverloadedStrings
λ: import Data.ByteString.Char8 as C8
λ: import Database.Tempodb
λ: let a = BasicAuth (ApiKey "mykey") (ApiSec "mysecret")
λ: :{
λ: runTempoDB a $ do
λ:     f <- seriesList $ Just [("key", "somekey"), ("key", "another")]
λ:     r <- seriesList Nothing
λ:     liftIO . C8.putStrLn $ C8.concat ["Results: ", f, r]
λ: :}
λ: [][]