Portability | non-portable (GHC extensions) |
---|---|
Stability | experimental |
Maintainer | Brendan Hay <brendan@soundcloud.com> |
Safe Haskell | Safe-Infered |
- data SinkType
- type Group = ByteString
- type Bucket = ByteString
- data Metric
- class Measurable a where
- class (Show a, Typeable a) => Encodable a where
- encode :: a -> ByteString
- class Sink a where
- data AnyMeasurable = forall a . Measurable a => AnyMeasurable a
- data AnySink = forall a . Sink a => AnySink a
- open :: SinkType -> Host -> HostName -> PortNumber -> IO AnySink
Exported Types
An enumeration of supplied sink types
Re-exports
type Group = ByteStringSource
Metric group
type Bucket = ByteStringSource
Metric bucket
class Measurable a whereSource
Measure a type for a collection of metrics
class (Show a, Typeable a) => Encodable a whereSource
Metric value to be encoded
encode :: a -> ByteStringSource
Encode the value as a bytestring
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.
data AnyMeasurable Source
Any instance of the Measurable type class
forall a . Measurable a => AnyMeasurable a |
Any instance of the Sink type class