Safe Haskell | None |
---|---|
Language | Haskell2010 |
Datadog is a monitoring service for IT, Operations and Development teams who write and run applications at scale, and want to turn the massive amounts of data produced by their apps, tools and services into actionable insight.
Synopsis
- data Keys = Keys {}
- loadKeysFromEnv :: IO Keys
- data Environment
- createEnvironment :: Keys -> IO Environment
- withDatadog :: DatadogCredentials k => k -> (DatadogClient k -> IO a) -> IO a
- writeCredentials :: Text -> Write
- readWriteCredentials :: Text -> Text -> ReadWrite
- module Network.Datadog.Check
- module Network.Datadog.Downtime
- module Network.Datadog.Event
- module Network.Datadog.Host
- module Network.Datadog.Metrics
- module Network.Datadog.Monitor
Documentation
Wraps the keys needed by Datadog to fully access the API.
loadKeysFromEnv :: IO Keys Source #
Load Datadog keys from environment variables.
The keys will be read from the enviornment variables
DATADOG_API_KEY
and DATADOG_APP_KEY
. If the keys cannot be read, this
function will throw an IOException
.
data Environment Source #
An Environment contains everything needed to interact with Datadog.
createEnvironment :: Keys -> IO Environment Source #
Create a new environment using authentication keys, defaulting to the Datadog documented default API URL.
withDatadog :: DatadogCredentials k => k -> (DatadogClient k -> IO a) -> IO a Source #
writeCredentials :: Text -> Write Source #
module Network.Datadog.Check
module Network.Datadog.Downtime
module Network.Datadog.Event
module Network.Datadog.Host
module Network.Datadog.Metrics
module Network.Datadog.Monitor