Portability | non-portable (GHC extensions) |
---|---|
Stability | experimental |
Maintainer | Brendan Hay <brendan@soundcloud.com> |
Safe Haskell | Safe-Infered |
- data SinkHandle = SinkHandle Host (String -> IO ())
- open :: Host -> HostName -> PortNumber -> IO AnySink
- class Sink a where
- type Group = ByteString
- type Bucket = ByteString
- data Metric
Exported Types
Sink Functions
open :: Host -> HostName -> PortNumber -> IO AnySinkSource
Open a new sink to stdout, conforming to the interface in Metric.hs . If you want to create a sink to a given handle fn, use the exported SinkHandle constructor
Sink resource to write metrics to
push :: Measurable b => a -> b -> IO ()Source
Write a metric to the sink.
Close the sink - subsequent writes will throw an error.
Re-exports
type Group = ByteStringSource
Metric group
type Bucket = ByteStringSource
Metric bucket