Safe Haskell | None |
---|---|
Language | Haskell2010 |
Events in Datadog represent notable occurrences.
- data EventPriority
- data AlertType
- data SourceType
- data EventSpec = EventSpec {}
- data Event
- type EventId = Int
- minimalEventSpec :: Text -> Text -> UTCTime -> EventPriority -> EventSpec
- createEvent :: Environment -> EventSpec -> IO Event
- loadEvent :: Environment -> EventId -> IO Event
- loadEvents :: Environment -> (UTCTime, UTCTime) -> Maybe EventPriority -> [Text] -> IO [Event]
- class AsEventPriority r where
- class AsAlertType r where
- class AsSourceType r where
- class HasTitle s a | s -> a where
- class HasText s a | s -> a where
- class HasPriority s a | s -> a where
- class HasDateHappened s a | s -> a where
- class HasAlertType s a | s -> a where
- class HasDetails s a | s -> a where
- class HasTags s a | s -> a where
- class HasSourceType s a | s -> a where
- class HasHost s a | s -> a where
- class HasId' s a | s -> a where
Documentation
data EventPriority Source #
A set of priorities used to denote the importance of an event.
The failure levels for an alert.
data SourceType Source #
A source from which an event may originate, recognized by Datadog.
Details that describe an event.
EventSpec | |
|
An event stored within Datadog. An event represents some sort of occurrence that was recorded in Datadog.
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.
:: 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 AsEventPriority r where Source #
_EventPriority :: Prism' r EventPriority Source #
_NormalPriority :: Prism' r () Source #
_LowPriority :: Prism' r () Source #
class AsAlertType r where Source #
class AsSourceType r where Source #
class HasPriority s a | s -> a where Source #
class HasDateHappened s a | s -> a where Source #
dateHappened :: Lens' s a Source #
class HasAlertType s a | s -> a where Source #
class HasDetails s a | s -> a where Source #
class HasSourceType s a | s -> a where Source #
sourceType :: Lens' s a Source #