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 Source #

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 Source #

The result of running a check on some service.

Constructors

CheckResult 

Fields

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

Record the result of a check in Datadog.

class HasStatus s a | s -> a where Source #

Minimal complete definition

status

Methods

status :: Lens' s a Source #

class HasHostName s a | s -> a where Source #

Minimal complete definition

hostName

Methods

hostName :: Lens' s a Source #

class HasCheck s a | s -> a where Source #

Minimal complete definition

check

Methods

check :: Lens' s a Source #

class HasTimestamp s a | s -> a where Source #

Minimal complete definition

timestamp

Methods

timestamp :: Lens' s a Source #

class HasTags s a | s -> a where Source #

Minimal complete definition

tags

Methods

tags :: Lens' s a Source #