datadog-0.2.0.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

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 #

Minimal complete definition

scope

Methods

scope :: Lens' s a Source #

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

Minimal complete definition

spec

Methods

spec :: Lens' s a Source #

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

Minimal complete definition

start

Methods

start :: Lens' s a Source #

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

Minimal complete definition

end

Methods

end :: Lens' s a Source #

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

Minimal complete definition

id'

Methods

id' :: Lens' s a Source #

type DowntimeId = Int Source #

Datadog's internal reference to a specific donwtime instance.