datadog-0.2.2.0: Datadog client for Haskell. Supports both the HTTP API and StatsD.

Safe HaskellNone
LanguageHaskell2010

Network.Datadog.Check

Description

Checks allow users to post check statuses, for use with monitors.

Synopsis

Documentation

data CheckStatus #

The status of a service, based on a check that is run against it.

Constructors

CheckOk

Everything is as it should be.

CheckWarning

Something abnormal, but not critical, is amiss.

CheckCritical

Something dangerously critical is amiss.

CheckUnknown

The current status cannot be determined.

data CheckResult #

The result of running a check on some service.

Constructors

CheckResult 

Fields

recordCheck :: Environment -> CheckResult -> IO () #

Record the result of a check in Datadog.

class HasStatus s a | s -> a where #

Minimal complete definition

status

Methods

status :: Lens' s a #

class HasHostName s a | s -> a where #

Minimal complete definition

hostName

Methods

hostName :: Lens' s a #

class HasCheck s a | s -> a where #

Minimal complete definition

check

Methods

check :: Lens' s a #

class HasTimestamp s a | s -> a where #

Minimal complete definition

timestamp

Methods

timestamp :: Lens' s a #

class HasTags s a | s -> a where #

Minimal complete definition

tags

Methods

tags :: Lens' s a #

class HasMessage s a | s -> a where #

Minimal complete definition

message

Methods

message :: Lens' s a #