Safe Haskell | None |
---|---|
Language | Haskell2010 |
Downtime prevents all alerting related to specific Datadog scopes.
- data DowntimeSpec = DowntimeSpec {}
- data Downtime
- minimalDowntimeSpec :: Tag -> DowntimeSpec
- scheduleDowntime :: Environment -> DowntimeSpec -> IO Downtime
- updateDowntime :: Environment -> DowntimeId -> DowntimeSpec -> IO Downtime
- cancelDowntime :: Environment -> DowntimeId -> IO ()
- loadDowntime :: Environment -> DowntimeId -> IO Downtime
- loadDowntimes :: Environment -> Bool -> IO [Downtime]
- class HasScope s a | s -> a where
- class HasSpec s a | s -> a where
- class HasMessage s a | s -> a where
- class HasStart s a | s -> a where
- class HasEnd s a | s -> a where
- class HasId' s a | s -> a where
- type DowntimeId = Int
Documentation
data DowntimeSpec Source #
A description of when downtime should occur.
DowntimeSpec | |
|
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 HasMessage s a | s -> a where Source #
type DowntimeId = Int Source #
Datadog's internal reference to a specific donwtime instance.