datadog-0.2.2.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] #

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

defaultMonitorOptions :: MonitorOptions #

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.

class DatadogCredentials s where #

Minimal complete definition

signRequest

Methods

signRequest :: s -> Request -> Request #

Orphan instances

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