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

Safe HaskellNone
LanguageHaskell2010

Network.Datadog.Downtime

Description

Downtime prevents all alerting related to specific Datadog scopes.

Synopsis

Documentation

data DowntimeSpec Source #

A description of when downtime should occur.

Constructors

DowntimeSpec 

Fields

data Downtime Source #

A scheduled donwtime stored in Datadog.

minimalDowntimeSpec :: Tag -> DowntimeSpec Source #

Creates the most basic possible downtime specification, which just contains the scope to which the downtime applies.

scheduleDowntime :: Environment -> DowntimeSpec -> IO Downtime Source #

Schedule a new downtime in Datadog.

updateDowntime :: Environment -> DowntimeId -> DowntimeSpec -> IO Downtime Source #

Update the specification of a downtime in Datadog.

cancelDowntime :: Environment -> DowntimeId -> IO () Source #

Cancel scheduled downtime in Datadog.

loadDowntime :: Environment -> DowntimeId -> IO Downtime Source #

Load a scheduled downtime from Datadog by its ID.

loadDowntimes :: Environment -> Bool -> IO [Downtime] Source #

Load all scheduled downtimes, optionally filtering for only downtimes that are currently active.

class HasScope s a | s -> a where Source #

Methods

scope :: Lens' s a Source #

Instances
HasScope DowntimeSpec Tag Source # 
Instance details

Defined in Network.Datadog.Lens

class HasSpec s a | s -> a where Source #

Methods

spec :: Lens' s a Source #

class HasMessage s a | s -> a where Source #

Methods

message :: Lens' s a Source #

class HasStart s a | s -> a where Source #

Methods

start :: Lens' s a Source #

class HasEnd s a | s -> a where Source #

Methods

end :: Lens' s a Source #

Instances
HasEnd DowntimeSpec (Maybe UTCTime) Source # 
Instance details

Defined in Network.Datadog.Lens

class HasId' s a | s -> a where Source #

Methods

id' :: Lens' s a Source #

Instances
HasId' Monitor MonitorId Source # 
Instance details

Defined in Network.Datadog.Lens

HasId' Event EventId Source # 
Instance details

Defined in Network.Datadog.Lens

HasId' Downtime DowntimeId Source # 
Instance details

Defined in Network.Datadog.Lens

type DowntimeId = Int Source #

Datadog's internal reference to a specific donwtime instance.