| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.PagerDuty.REST.Alerts
Contents
Description
When an incident is triggered or when it is escalated it creates an alert (also known as a notification). Alerts are messages containing the details of the incident, and can be sent through SMS, email, phone calls, and push notifications.
This API allows you to access read-only data regarding what alerts have been sent to your users.
See: http://developer.pagerduty.com/documentation/rest/alerts
- data ListAlerts
- listAlerts :: Date -> Date -> Request ListAlerts s [Alert]
- laSince :: Lens' (Request ListAlerts s b) UTCTime
- laUntil :: Lens' (Request ListAlerts s b) UTCTime
- laFilter :: Lens' (Request ListAlerts s b) (Maybe AlertType)
- laTimeZone :: Lens' (Request ListAlerts s b) (Maybe TimeZone)
- data AlertType
- data Alert
- alertId :: Lens' Alert AlertId
- alertType :: Lens' Alert AlertType
- alertStartedAt :: Lens' Alert Date
- alertUser :: Lens' Alert User
- alertAddress :: Lens' Alert Address
List Alerts
data ListAlerts Source
Instances
| Eq ListAlerts | |
| Show ListAlerts | |
| ToJSON ListAlerts | |
| HasDatatypeInfo ListAlerts | |
| Generic ListAlerts | |
| QueryLike ListAlerts | |
| type Code ListAlerts |
Arguments
| :: Date | |
| -> Date | |
| -> Request ListAlerts s [Alert] |
List existing alerts for a given time range, optionally filtered by type (SMS, Email, Phone, or Push).
GET /alerts
See: http://developer.pagerduty.com/documentation/rest/alerts/list
laSince :: Lens' (Request ListAlerts s b) UTCTime Source
The start of the date range over which you want to search.
laUntil :: Lens' (Request ListAlerts s b) UTCTime Source
The end of the date range over which you want to search.
This should be in the same format as since.
The size of the date range must be less than 3 months.
laFilter :: Lens' (Request ListAlerts s b) (Maybe AlertType) Source
Returns only the alerts of the said AlertType type.
laTimeZone :: Lens' (Request ListAlerts s b) (Maybe TimeZone) Source
Time zone in which dates in the result will be rendered.
Default: account time zone.
Types
alertStartedAt :: Lens' Alert Date Source
alertAddress :: Lens' Alert Address Source