Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- prependMaybe :: (a -> b) -> Maybe a -> [b] -> [b]
- prependBool :: Bool -> b -> [b] -> [b]
- datadogHttp :: Environment -> String -> [(String, String)] -> StdMethod -> Maybe ByteString -> IO ByteString
- decodeDatadog :: FromJSON a => String -> ByteString -> IO a
- baseRequest :: Request
- defaultMonitorOptions :: MonitorOptions
- class DatadogCredentials s where
- signRequest :: s -> Request -> Request
- module Network.Datadog.Lens
- module Network.Datadog.Types
Documentation
prependMaybe :: (a -> b) -> Maybe a -> [b] -> [b] Source #
prependBool :: Bool -> b -> [b] -> [b] Source #
datadogHttp :: Environment -> String -> [(String, String)] -> StdMethod -> Maybe ByteString -> IO ByteString Source #
decodeDatadog :: FromJSON a => String -> ByteString -> IO a Source #
defaultMonitorOptions :: MonitorOptions Source #
Creates the most basic specification required by a monitor, containing the type of monitor and the query string used to detect the monitor's state.
Generates a set of "default" Monitor options, which specify as little optional configuration as possible. This includes:
- No silencing of any part of the monitor
- No notification when data related to the monitor is missing
- No alert timeout after the monitor is triggeredn
- No renotification when the monitor is triggered
- No notification when the monitor is modified
In production situations, it is not safe to rely on this documented default behaviour for critical setitngs; use the helper functions to introspect the MonitorOptions instance provided by this function. This also protects against future modifications to this API.
class DatadogCredentials s where Source #
signRequest :: s -> Request -> Request Source #
Instances
DatadogCredentials ReadWrite Source # | |
Defined in Network.Datadog.Internal | |
DatadogCredentials Write Source # | |
Defined in Network.Datadog.Internal |
module Network.Datadog.Lens
module Network.Datadog.Types