Portability | non-portable (GHC extensions) |
---|---|
Stability | experimental |
Maintainer | Brendan Hay <brendan@soundcloud.com> |
Safe Haskell | Safe-Infered |
Network.Metric
Contents
Description
- 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
Instances
class Measurable a whereSource
Measure a type for a collection of metrics
Methods
measure :: a -> [Metric]Source
Convert a measurable instance from a host into a list of metrics
Instances
Sink resource to write metrics to
Methods
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
Constructors
forall a . Measurable a => AnyMeasurable a |
Instances
Any instance of the Sink type class