Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- _EventPriority :: Prism' r EventPriority
- _NormalPriority :: Prism' r ()
- _LowPriority :: Prism' r ()
- 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
- dateHappened :: Lens' s a
- 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
- sourceType :: Lens' s a
- 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.
Instances
Eq EventPriority Source # | |
Defined in Network.Datadog.Types (==) :: EventPriority -> EventPriority -> Bool # (/=) :: EventPriority -> EventPriority -> Bool # | |
Show EventPriority Source # | |
Defined in Network.Datadog.Types showsPrec :: Int -> EventPriority -> ShowS # show :: EventPriority -> String # showList :: [EventPriority] -> ShowS # | |
ToJSON EventPriority Source # | |
Defined in Network.Datadog.Internal toJSON :: EventPriority -> Value # toEncoding :: EventPriority -> Encoding # toJSONList :: [EventPriority] -> Value # toEncodingList :: [EventPriority] -> Encoding # | |
FromJSON EventPriority Source # | |
Defined in Network.Datadog.Internal parseJSON :: Value -> Parser EventPriority # parseJSONList :: Value -> Parser [EventPriority] # | |
AsEventPriority EventPriority Source # | |
Defined in Network.Datadog.Lens | |
HasPriority EventSpec EventPriority Source # | |
Defined in Network.Datadog.Lens |
The failure levels for an alert.
data SourceType Source #
A source from which an event may originate, recognized by Datadog.
Instances
Details that describe an event.
EventSpec | |
|
Instances
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 #
Instances
AsEventPriority EventPriority Source # | |
Defined in Network.Datadog.Lens |
class AsAlertType r where Source #
class AsSourceType r where Source #
_SourceType :: Prism' r SourceType Source #
_Nagios :: Prism' r () Source #
_Hudson :: Prism' r () Source #
_Jenkins :: Prism' r () Source #
_MyApps :: Prism' r () Source #
_Puppet :: Prism' r () Source #
_BitBucket :: Prism' r () Source #
_Fabric :: Prism' r () Source #
_Capistrano :: Prism' r () Source #
Instances
AsSourceType SourceType Source # | |
Defined in Network.Datadog.Lens _SourceType :: Prism' SourceType SourceType Source # _Nagios :: Prism' SourceType () Source # _Hudson :: Prism' SourceType () Source # _Jenkins :: Prism' SourceType () Source # _User :: Prism' SourceType () Source # _MyApps :: Prism' SourceType () Source # _Feed :: Prism' SourceType () Source # _Chef :: Prism' SourceType () Source # _Puppet :: Prism' SourceType () Source # _Git :: Prism' SourceType () Source # _BitBucket :: Prism' SourceType () Source # _Fabric :: Prism' SourceType () Source # _Capistrano :: Prism' SourceType () Source # |
class HasPriority s a | s -> a where Source #
Instances
HasPriority EventSpec EventPriority Source # | |
Defined in Network.Datadog.Lens |
class HasDateHappened s a | s -> a where Source #
dateHappened :: Lens' s a Source #
Instances
HasDateHappened EventSpec UTCTime Source # | |
Defined in Network.Datadog.Lens |
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 #
Instances
HasSourceType EventSpec (Maybe SourceType) Source # | |
Defined in Network.Datadog.Lens |