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 #

Instances
DatadogCredentials ReadWrite # 
Instance details

Defined in Network.Datadog.Internal

DatadogCredentials Write # 
Instance details

Defined in Network.Datadog.Internal

Orphan instances

ToJSON Monitor # 
Instance details

ToJSON MonitorSpec # 
Instance details

ToJSON MonitorOptions # 
Instance details

ToJSON MonitorType # 
Instance details

ToJSON Metric # 
Instance details

ToJSON MetricPoints # 
Instance details

ToJSON Series # 
Instance details

ToJSON Event # 
Instance details

ToJSON EventSpec # 
Instance details

ToJSON SourceType # 
Instance details

ToJSON AlertType # 
Instance details

ToJSON EventPriority # 
Instance details

ToJSON Downtime # 
Instance details

ToJSON DowntimeSpec # 
Instance details

ToJSON CheckResult # 
Instance details

ToJSON CheckStatus # 
Instance details

ToJSON Tag # 
Instance details

ToJSON Timestamp # 
Instance details

FromJSON Monitor # 
Instance details

FromJSON MonitorSpec # 
Instance details

FromJSON MonitorOptions # 
Instance details

FromJSON MonitorType # 
Instance details

FromJSON WrappedEvents # 
Instance details

FromJSON WrappedEvent # 
Instance details

FromJSON Event # 
Instance details

FromJSON EventSpec # 
Instance details

FromJSON SourceType # 
Instance details

FromJSON AlertType # 
Instance details

FromJSON EventPriority # 
Instance details

FromJSON Downtime # 
Instance details

FromJSON DowntimeSpec # 
Instance details

FromJSON CheckResult # 
Instance details

FromJSON CheckStatus # 
Instance details

FromJSON Tag # 
Instance details