| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.Datadog.Downtime
Description
Downtime prevents all alerting related to specific Datadog scopes.
Synopsis
- 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.
Constructors
| DowntimeSpec | |
Fields
| |
Instances
| Eq DowntimeSpec Source # | |
Defined in Network.Datadog.Types | |
| ToJSON DowntimeSpec Source # | |
Defined in Network.Datadog.Internal Methods toJSON :: DowntimeSpec -> Value # toEncoding :: DowntimeSpec -> Encoding # toJSONList :: [DowntimeSpec] -> Value # toEncodingList :: [DowntimeSpec] -> Encoding # | |
| FromJSON DowntimeSpec Source # | |
Defined in Network.Datadog.Internal | |
| HasScope DowntimeSpec Tag Source # | |
Defined in Network.Datadog.Lens | |
| HasSpec Downtime DowntimeSpec Source # | |
Defined in Network.Datadog.Lens | |
| HasMessage DowntimeSpec (Maybe Text) Source # | |
Defined in Network.Datadog.Lens | |
| HasStart DowntimeSpec (Maybe UTCTime) Source # | |
Defined in Network.Datadog.Lens | |
| HasEnd DowntimeSpec (Maybe UTCTime) Source # | |
Defined in Network.Datadog.Lens | |
A scheduled donwtime stored in Datadog.
Instances
| Eq Downtime Source # | |
| ToJSON Downtime Source # | |
Defined in Network.Datadog.Internal | |
| FromJSON Downtime Source # | |
| HasSpec Downtime DowntimeSpec Source # | |
Defined in Network.Datadog.Lens | |
| HasId' Downtime DowntimeId Source # | |
Defined in Network.Datadog.Lens | |
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 #
Instances
| HasScope DowntimeSpec Tag Source # | |
Defined in Network.Datadog.Lens | |
class HasSpec s a | s -> a where Source #
Instances
| HasSpec Monitor MonitorSpec Source # | |
Defined in Network.Datadog.Lens | |
| HasSpec Downtime DowntimeSpec Source # | |
Defined in Network.Datadog.Lens | |
class HasMessage s a | s -> a where Source #
Instances
| HasMessage MonitorSpec (Maybe Text) Source # | |
Defined in Network.Datadog.Lens | |
| HasMessage DowntimeSpec (Maybe Text) Source # | |
Defined in Network.Datadog.Lens | |
| HasMessage CheckResult (Maybe Text) Source # | |
Defined in Network.Datadog.Lens | |
class HasStart s a | s -> a where Source #
Instances
| HasStart DowntimeSpec (Maybe UTCTime) Source # | |
Defined in Network.Datadog.Lens | |
class HasEnd s a | s -> a where Source #
Instances
| HasEnd DowntimeSpec (Maybe UTCTime) Source # | |
Defined in Network.Datadog.Lens | |
type DowntimeId = Int Source #
Datadog's internal reference to a specific donwtime instance.