| 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 #
A description of when downtime should occur.
Constructors
| DowntimeSpec | |
Fields
| |
Instances
| Eq DowntimeSpec # | |
Defined in Network.Datadog.Types | |
| ToJSON DowntimeSpec # | |
Defined in Network.Datadog.Internal Methods toJSON :: DowntimeSpec -> Value # toEncoding :: DowntimeSpec -> Encoding # toJSONList :: [DowntimeSpec] -> Value # toEncodingList :: [DowntimeSpec] -> Encoding # | |
| FromJSON DowntimeSpec # | |
Defined in Network.Datadog.Internal | |
| HasScope DowntimeSpec Tag # | |
Defined in Network.Datadog.Lens Methods scope :: Lens' DowntimeSpec Tag # | |
| HasSpec Downtime DowntimeSpec # | |
Defined in Network.Datadog.Lens Methods | |
| HasMessage DowntimeSpec (Maybe Text) # | |
Defined in Network.Datadog.Lens | |
| HasStart DowntimeSpec (Maybe UTCTime) # | |
Defined in Network.Datadog.Lens | |
| HasEnd DowntimeSpec (Maybe UTCTime) # | |
Defined in Network.Datadog.Lens | |
A scheduled donwtime stored in Datadog.
Instances
| Eq Downtime # | |
| ToJSON Downtime # | |
Defined in Network.Datadog.Internal | |
| FromJSON Downtime # | |
| HasSpec Downtime DowntimeSpec # | |
Defined in Network.Datadog.Lens Methods | |
| HasId' Downtime DowntimeId # | |
Defined in Network.Datadog.Lens Methods id' :: Lens' Downtime DowntimeId # | |
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
Instances
| HasScope DowntimeSpec Tag # | |
Defined in Network.Datadog.Lens Methods scope :: Lens' DowntimeSpec Tag # | |
class HasSpec s a | s -> a where #
Minimal complete definition
Instances
| HasSpec Monitor MonitorSpec # | |
Defined in Network.Datadog.Lens Methods spec :: Lens' Monitor MonitorSpec # | |
| HasSpec Downtime DowntimeSpec # | |
Defined in Network.Datadog.Lens Methods | |
class HasMessage s a | s -> a where #
Minimal complete definition
Instances
| HasMessage MonitorSpec (Maybe Text) # | |
Defined in Network.Datadog.Lens | |
| HasMessage DowntimeSpec (Maybe Text) # | |
Defined in Network.Datadog.Lens | |
| HasMessage CheckResult (Maybe Text) # | |
Defined in Network.Datadog.Lens | |
class HasStart s a | s -> a where #
Minimal complete definition
Instances
| HasStart DowntimeSpec (Maybe UTCTime) # | |
Defined in Network.Datadog.Lens | |
class HasEnd s a | s -> a where #
Minimal complete definition
Instances
| HasEnd DowntimeSpec (Maybe UTCTime) # | |
Defined in Network.Datadog.Lens | |
class HasId' s a | s -> a where #
Minimal complete definition
type DowntimeId = Int #
Datadog's internal reference to a specific donwtime instance.