Portability | non-portable (GHC extensions) |
---|---|

Stability | experimental |

Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |

Safe Haskell | None |

- class Sink a where
- push :: Measurable b => a -> b -> IO ()
- close :: a -> IO ()

- open :: Host -> HostName -> PortNumber -> IO AnySink
- type Group = ByteString
- type Bucket = ByteString
- data AnySink = forall a . Sink a => AnySink a

# Sink Functions

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