pagerduty-0.0.1.1: Client library for PagerDuty Integration and REST APIs.

Safe HaskellNone
LanguageHaskell2010

Network.PagerDuty.REST.Incidents.Notes

Contents

Description

The Incident Notes API allows you to add notes to a specified incident.

See: http://developer.pagerduty.com/documentation/rest/incidents/notes

Synopsis

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

Instances

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

data Note

Instances

Eq Note 
Show Note 
ToJSON Note 
FromJSON Note 

nId :: Lens' Note NoteId

nCreatedAt :: Lens' Note UTCTime

nUser :: Lens' Note User

nContent :: Lens' Note Text