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

A description of when downtime should occur.

Constructors

DowntimeSpec 

Fields

data Downtime #

A scheduled donwtime stored in Datadog.

minimalDowntimeSpec :: Tag -> DowntimeSpec #

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

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

Schedule a new downtime in Datadog.

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

Update the specification of a downtime in Datadog.

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

Cancel scheduled downtime in Datadog.

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

Load a scheduled downtime from Datadog by its ID.

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

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

class HasScope s a | s -> a where #

Minimal complete definition

scope

Methods

scope :: Lens' s a #

class HasSpec s a | s -> a where #

Minimal complete definition

spec

Methods

spec :: Lens' s a #

class HasMessage s a | s -> a where #

Minimal complete definition

message

Methods

message :: Lens' s a #

class HasStart s a | s -> a where #

Minimal complete definition

start

Methods

start :: Lens' s a #

class HasEnd s a | s -> a where #

Minimal complete definition

end

Methods

end :: Lens' s a #

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

Minimal complete definition

id'

Methods

id' :: Lens' s a #

type DowntimeId = Int #

Datadog's internal reference to a specific donwtime instance.