| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.Datadog.Event
Description
Events in Datadog represent notable occurrences.
Synopsis
- 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 #
A set of priorities used to denote the importance of an event.
Constructors
| NormalPriority | |
| LowPriority |
Instances
The failure levels for an alert.
data SourceType #
A source from which an event may originate, recognized by Datadog.
Instances
Details that describe an event.
Constructors
| EventSpec | |
Fields
| |
Instances
| Eq EventSpec # | |
| Show EventSpec # | |
| ToJSON EventSpec # | |
Defined in Network.Datadog.Internal | |
| FromJSON EventSpec # | |
| HasTitle EventSpec Text # | |
| HasText EventSpec Text # | |
| HasPriority EventSpec EventPriority # | |
Defined in Network.Datadog.Lens Methods | |
| HasDateHappened EventSpec UTCTime # | |
Defined in Network.Datadog.Lens Methods | |
| HasAlertType EventSpec AlertType # | |
| HasDetails Event EventSpec # | |
| HasTags EventSpec [Tag] # | |
| HasSourceType EventSpec (Maybe SourceType) # | |
Defined in Network.Datadog.Lens Methods sourceType :: Lens' EventSpec (Maybe SourceType) # | |
| HasHost EventSpec (Maybe Text) # | |
An event stored within Datadog. An event represents some sort of occurrence that was recorded in Datadog.
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.
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 AsEventPriority r where #
Minimal complete definition
Methods
_EventPriority :: Prism' r EventPriority #
_NormalPriority :: Prism' r () #
_LowPriority :: Prism' r () #
Instances
| AsEventPriority EventPriority # | |
Defined in Network.Datadog.Lens Methods _EventPriority :: Prism' EventPriority EventPriority # _NormalPriority :: Prism' EventPriority () # _LowPriority :: Prism' EventPriority () # | |
class AsSourceType r where #
Minimal complete definition
Instances
| AsSourceType SourceType # | |
Defined in Network.Datadog.Lens Methods _SourceType :: Prism' SourceType SourceType # _Nagios :: Prism' SourceType () # _Hudson :: Prism' SourceType () # _Jenkins :: Prism' SourceType () # _User :: Prism' SourceType () # _MyApps :: Prism' SourceType () # _Feed :: Prism' SourceType () # _Chef :: Prism' SourceType () # _Puppet :: Prism' SourceType () # _Git :: Prism' SourceType () # _BitBucket :: Prism' SourceType () # _Fabric :: Prism' SourceType () # _Capistrano :: Prism' SourceType () # | |
class HasPriority s a | s -> a where #
Minimal complete definition
Instances
| HasPriority EventSpec EventPriority # | |
Defined in Network.Datadog.Lens Methods | |
class HasDateHappened s a | s -> a where #
Minimal complete definition
Methods
dateHappened :: Lens' s a #
Instances
| HasDateHappened EventSpec UTCTime # | |
Defined in Network.Datadog.Lens Methods | |
class HasAlertType s a | s -> a where #
Minimal complete definition
Instances
| HasAlertType EventSpec AlertType # | |
class HasDetails s a | s -> a where #
Minimal complete definition
Instances
| HasDetails Event EventSpec # | |
class HasTags s a | s -> a where #
Minimal complete definition
class HasSourceType s a | s -> a where #
Minimal complete definition
Methods
sourceType :: Lens' s a #
Instances
| HasSourceType EventSpec (Maybe SourceType) # | |
Defined in Network.Datadog.Lens Methods sourceType :: Lens' EventSpec (Maybe SourceType) # | |