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

Safe HaskellNone
LanguageHaskell2010

Network.Datadog.Types

Synopsis

Documentation

newtype Timestamp #

Constructors

Timestamp 

newtype Write #

Constructors

Write 

data Keys #

Wraps the keys needed by Datadog to fully access the API.

Constructors

Keys 

Fields

Instances

Eq Keys # 

Methods

(==) :: Keys -> Keys -> Bool #

(/=) :: Keys -> Keys -> Bool #

data Environment #

An Environment contains everything needed to interact with Datadog.

Constructors

Environment 

Fields

data Tag #

Entity descriptor.

Entities in Datadog (hosts, metrics, events, etc) are frequently associated with one more more "tags". These tags are labels that identify an entity as belonging to a particular group or having particular properties. A tag can come in two forms: a simple text label, describing entities associated with the tag, or a key-value pair, associating entities with a specific slice of a larger categorization.

As strings, the key and value parts of a key-value pair are separated by a (:). As such, any tag with no colons is a label, and any tag with one (or more) is a key-value pair - if more than one : is specified, the additional :s will become part of the value.

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

data DowntimeSpec #

A description of when downtime should occur.

Constructors

DowntimeSpec 

Fields

type DowntimeId = Int #

Datadog's internal reference to a specific donwtime instance.

data Downtime #

A scheduled donwtime stored in Datadog.

Constructors

Downtime 

Fields

type EventId = Int #

Datadog's internal reference to a specific event.

data Event #

An event stored within Datadog. An event represents some sort of occurrence that was recorded in Datadog.

Constructors

Event 

Fields

data WrappedEvent #

Constructors

WrappedEvent 

Fields

data WrappedEvents #

Constructors

WrappedEvents 

Fields

newtype Series #

Constructors

Series 

data MonitorType #

Each monitor is of a specific type, which determines what sort of check the monitor performs.

Constructors

MetricAlert

Watches a (combination of) metric(s), alerting when it crosses some threshold.

ServiceCheck

Watches a service and alerts when the service enters a failing state.

EventAlert

Checks the event stream for events meeting certain criteria.

data MonitorSpec #

A representation of a monitor's configuration, from which a monitor could be rebuilt.

Constructors

MonitorSpec 

Fields

type MonitorId = Int #

Datadog's internal reference to a specific monitor.

data Monitor #

A Datadog monitor. These monitors actively check multiple different types of data within Datadog against user-provided conditions, triggering notifications when condition(s) are met.

Constructors

Monitor 

Fields