Safe Haskell | None |
---|---|
Language | Haskell2010 |
The Incident Notes API allows you to add notes to a specified incident.
See: http://developer.pagerduty.com/documentation/rest/incidents/notes
- listNotes :: IncidentId -> Request Empty s [Note]
- data CreateNote
- createNote :: IncidentId -> RequesterId -> Request CreateNote s Note
- createNoteBasic :: IncidentId -> Request CreateNote s Note
- cnContent :: Lens' (Request CreateNote s b) (Maybe Text)
- data Note
- nId :: Lens' Note NoteId
- nCreatedAt :: Lens' Note UTCTime
- nUser :: Lens' Note User
- nContent :: Lens' Note Text
List Notes
listNotes :: IncidentId -> Request Empty s [Note]
List existing notes for the specified incident.
GET /incidents/:incident_id/notes
See: http://developer.pagerduty.com/documentation/rest/incidents/notes/create
Create Note
data CreateNote
Eq CreateNote | |
Show CreateNote | |
ToJSON CreateNote | |
QueryLike CreateNote |
createNote :: IncidentId -> RequesterId -> Request CreateNote s Note
Create a new note for the specified incident.
POST /incidents/:incident_id/notes
See: http://developer.pagerduty.com/documentation/rest/incidents/notes/create
createNoteBasic :: IncidentId -> Request CreateNote s Note
A version of createNote
which uses HTTP Basic authentication and
doesn't require a RequesterId
.
cnContent :: Lens' (Request CreateNote s b) (Maybe Text)
The note content.
Types
nCreatedAt :: Lens' Note UTCTime