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

Safe HaskellNone
LanguageHaskell2010

Network.Datadog.Event

Description

Events in Datadog represent notable occurrences.

Synopsis

Documentation

data EventSpec Source #

Details that describe an event.

Constructors

EventSpec 

Fields

data Event Source #

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

type EventId = Int Source #

Datadog's internal reference to a specific event.

minimalEventSpec :: Text -> Text -> UTCTime -> EventPriority -> EventSpec Source #

Creates the most basic description required for an event, containing the event title, descriptive text, time of occurrence, and priority of the event. This event will be of type Info.

createEvent :: Environment -> EventSpec -> IO Event Source #

Store a new event in Datadog.

loadEvent :: Environment -> EventId -> IO Event Source #

Load an event from Datadog by its ID.

loadEvents Source #

Arguments

:: Environment 
-> (UTCTime, UTCTime)

The range within which to query for events

-> Maybe EventPriority

Optionally filter results by a specific priority level

-> [Text]

A list of tags to filter by

-> IO [Event] 

Query Datadog for events within a specific time range.

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

Minimal complete definition

title

Methods

title :: Lens' s a Source #

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

Minimal complete definition

text

Methods

text :: Lens' s a Source #

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

Minimal complete definition

priority

Methods

priority :: Lens' s a Source #

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

Minimal complete definition

dateHappened

Methods

dateHappened :: Lens' s a Source #

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

Minimal complete definition

alertType

Methods

alertType :: Lens' s a Source #

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

Minimal complete definition

details

Methods

details :: Lens' s a Source #

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

Minimal complete definition

tags

Methods

tags :: Lens' s a Source #

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

Minimal complete definition

sourceType

Methods

sourceType :: Lens' s a Source #

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

Minimal complete definition

host

Methods

host :: Lens' s a Source #

class HasId' s a | s -> a where Source #

Minimal complete definition

id'

Methods

id' :: Lens' s a Source #