datadog-0.2.2.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 Event #

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

type EventId = Int #

Datadog's internal reference to a specific event.

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

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 #

Store a new event in Datadog.

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

Load an event from Datadog by its ID.

loadEvents #

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 #

Minimal complete definition

title

Methods

title :: Lens' s a #

class HasText s a | s -> a where #

Minimal complete definition

text

Methods

text :: Lens' s a #

class HasPriority s a | s -> a where #

Minimal complete definition

priority

Methods

priority :: Lens' s a #

class HasDateHappened s a | s -> a where #

Minimal complete definition

dateHappened

Methods

dateHappened :: Lens' s a #

class HasAlertType s a | s -> a where #

Minimal complete definition

alertType

Methods

alertType :: Lens' s a #

class HasDetails s a | s -> a where #

Minimal complete definition

details

Methods

details :: Lens' s a #

class HasTags s a | s -> a where #

Minimal complete definition

tags

Methods

tags :: Lens' s a #

class HasSourceType s a | s -> a where #

Minimal complete definition

sourceType

Methods

sourceType :: Lens' s a #

class HasHost s a | s -> a where #

Minimal complete definition

host

Methods

host :: Lens' s a #

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

Minimal complete definition

id'

Methods

id' :: Lens' s a #