datadog-0.2.0.0: Datadog client for Haskell. Supports both the HTTP API and StatsD.

Safe HaskellNone
LanguageHaskell2010

Network.Datadog.Internal

Contents

Synopsis

Documentation

prependMaybe :: (a -> b) -> Maybe a -> [b] -> [b] Source #

prependBool :: Bool -> b -> [b] -> [b] Source #

defaultMonitorOptions :: MonitorOptions Source #

Creates the most basic specification required by a monitor, containing the type of monitor and the query string used to detect the monitor's state.

Generates a set of "default" Monitor options, which specify as little optional configuration as possible. This includes:

  • No silencing of any part of the monitor
  • No notification when data related to the monitor is missing
  • No alert timeout after the monitor is triggeredn
  • No renotification when the monitor is triggered
  • No notification when the monitor is modified

In production situations, it is not safe to rely on this documented default behaviour for critical setitngs; use the helper functions to introspect the MonitorOptions instance provided by this function. This also protects against future modifications to this API.

Orphan instances

ToJSON Monitor Source # 
ToJSON MonitorSpec Source # 
ToJSON MonitorOptions Source # 
ToJSON MonitorType Source # 
ToJSON Metric Source # 
ToJSON MetricPoints Source # 
ToJSON Series Source # 
ToJSON Event Source # 
ToJSON EventSpec Source # 
ToJSON SourceType Source # 
ToJSON AlertType Source # 
ToJSON EventPriority Source # 
ToJSON Downtime Source # 
ToJSON DowntimeSpec Source # 
ToJSON CheckResult Source # 
ToJSON CheckStatus Source # 
ToJSON Tag Source # 
ToJSON Timestamp Source # 
FromJSON Monitor Source # 
FromJSON MonitorSpec Source # 
FromJSON MonitorOptions Source # 
FromJSON MonitorType Source # 
FromJSON WrappedEvents Source # 
FromJSON WrappedEvent Source # 
FromJSON Event Source # 
FromJSON EventSpec Source # 
FromJSON SourceType Source # 
FromJSON AlertType Source # 
FromJSON EventPriority Source # 
FromJSON Downtime Source # 
FromJSON DowntimeSpec Source # 
FromJSON CheckResult Source # 
FromJSON CheckStatus Source # 
FromJSON Tag Source #