@@ -1,7 +1,7 @@
11<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Network.PagerDuty.REST.Incidents</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
22window.onload = function () {pageLoad();setSynopsis("mini_Network-PagerDuty-REST-Incidents.html");};
33//]]>
4−</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">pagerduty-0.0.0: Pager Duty API Client</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Network.PagerDuty.REST.Incidents</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">List Incidents</a></li><li><a href="#g:2">Count Incidents</a></li><li><a href="#g:3">Get Incident</a></li><li><a href="#g:4">Update Incidents</a></li><li><a href="#g:5">Resolve Incident</a></li><li><a href="#g:6">Acknowledge Incident</a></li><li><a href="#g:7">Reassign Incident</a></li><li><a href="#g:8">Types</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>PagerDuty receives updates (called events) from monitoring systems through
4+</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">pagerduty-0.0.0: Client library for PagerDuty Integration and REST APIs.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Network.PagerDuty.REST.Incidents</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">List Incidents</a></li><li><a href="#g:2">Count Incidents</a></li><li><a href="#g:3">Get Incident</a></li><li><a href="#g:4">Update Incidents</a></li><li><a href="#g:5">Resolve Incident</a></li><li><a href="#g:6">Acknowledge Incident</a></li><li><a href="#g:7">Reassign Incident</a></li><li><a href="#g:8">Types</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>PagerDuty receives updates (called events) from monitoring systems through
55 services (like Nagios, email or generic API calls). Upon receiving an event,
66 active services will create a new incident and begin escalating it as
77 defined by the service's escalation policy. Events can be de-duplicated into
@@ -16,39 +16,39 @@ window.onload = function () {pageLoad();setSynopsis("mini_Network-PagerDuty-REST
1616 the incident, and can be sent through SMS, email and phone calls.</p><p>Incidents and Incident Counts from the last 30 days are returned by
1717 default. To change this default date range, see the documentation for the
1818 since, until or dateRange parameters.</p><p>Note: that to create an incident you need to trigger it through the
19− <a href="Network-PagerDuty-Integration.html">Network.PagerDuty.Integration</a> API.</p><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/incidents">http://developer.pagerduty.com/documentation/rest/incidents</a></p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:ListIncidents">ListIncidents</a></li><li class="src short"><a href="#v:listIncidents">listIncidents</a> :: Request <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s [<a href="Network-PagerDuty-REST-Incidents.html#t:Incident">Incident</a>]</li><li class="src short"><a href="#v:lsSince">lsSince</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/time-1.4.2/Data-Time-Clock.html#t:UTCTime">UTCTime</a>)</li><li class="src short"><a href="#v:lsUntil">lsUntil</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/time-1.4.2/Data-Time-Clock.html#t:UTCTime">UTCTime</a>)</li><li class="src short"><a href="#v:lsDateRange">lsDateRange</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:lsStatus">lsStatus</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a>])</li><li class="src short"><a href="#v:lsIncidentKey">lsIncidentKey</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> IncidentKey)</li><li class="src short"><a href="#v:lsService">lsService</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [ServiceId])</li><li class="src short"><a href="#v:lsAssignedToUser">lsAssignedToUser</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [UserId])</li><li class="src short"><a href="#v:lsTimeZone">lsTimeZone</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/time-1.4.2/Data-Time-LocalTime.html#t:TimeZone">TimeZone</a></li><li class="src short"><a href="#v:lsSortBy">lsSortBy</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Network-PagerDuty-REST-Incidents.html#t:Sort">Sort</a> <a href="Network-PagerDuty-REST-Incidents.html#t:Field">Field</a>))</li><li class="src short"><span class="keyword">data</span> <a href="#t:CountIncidents">CountIncidents</a></li><li class="src short"><a href="#v:countIncidents">countIncidents</a> :: Request <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s Count</li><li class="src short"><a href="#v:cSince">cSince</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/time-1.4.2/Data-Time-Clock.html#t:UTCTime">UTCTime</a>)</li><li class="src short"><a href="#v:cUntil">cUntil</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/time-1.4.2/Data-Time-Clock.html#t:UTCTime">UTCTime</a>)</li><li class="src short"><a href="#v:cDateRange">cDateRange</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:cStatus">cStatus</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a>])</li><li class="src short"><a href="#v:cIncidentKey">cIncidentKey</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> IncidentKey)</li><li class="src short"><a href="#v:cService">cService</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [ServiceId])</li><li class="src short"><a href="#v:cAssignedToUser">cAssignedToUser</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [UserId])</li><li class="src short"><a href="#v:getIncident">getIncident</a> :: IncidentId -> Request Empty s <a href="Network-PagerDuty-REST-Incidents.html#t:Incident">Incident</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:UpdateIncidents">UpdateIncidents</a></li><li class="src short"><a href="#v:updateIncidents">updateIncidents</a> :: RequesterId -> Request <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a> s [<a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a>]</li><li class="src short"><a href="#v:updateIncidentsBasic">updateIncidentsBasic</a> :: Request <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a> Basic [<a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a>]</li><li class="src short"><a href="#v:uiIncidents">uiIncidents</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a> s b) [<a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a>]</li><li class="src short"><a href="#v:resolveIncident">resolveIncident</a> :: IncidentId -> RequesterId -> Request Empty s Empty</li><li class="src short"><a href="#v:resolveIncidentBasic">resolveIncidentBasic</a> :: IncidentId -> Request Empty s Empty</li><li class="src short"><a href="#v:acknowledgeIncident">acknowledgeIncident</a> :: IncidentId -> RequesterId -> Request Empty s Empty</li><li class="src short"><a href="#v:acknowledgeIncidentBasic">acknowledgeIncidentBasic</a> :: IncidentId -> Request Empty s Empty</li><li class="src short"><span class="keyword">data</span> <a href="#t:ReassignIncident">ReassignIncident</a></li><li class="src short"><a href="#v:reassignIncident">reassignIncident</a> :: IncidentId -> RequesterId -> Request <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a> s Empty</li><li class="src short"><a href="#v:riEscalationPolicy">riEscalationPolicy</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> EscalationPolicyId)</li><li class="src short"><a href="#v:riEscalationLevel">riEscalationLevel</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Int.html#t:Int">Int</a>)</li><li class="src short"><a href="#v:riAssignedToUser">riAssignedToUser</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [UserId])</li><li class="src short"><span class="keyword">data</span> <a href="#t:Sort">Sort</a> a<ul class="subs"><li>= <a href="#v:Desc">Desc</a> a</li><li>| <a href="#v:Asc">Asc</a> a</li></ul></li><li class="src short"><a href="#v:_Desc">_Desc</a> :: <span class="keyword">forall</span> a. Prism' (<a href="Network-PagerDuty-REST-Incidents.html#t:Sort">Sort</a> a) a</li><li class="src short"><a href="#v:_Asc">_Asc</a> :: <span class="keyword">forall</span> a. Prism' (<a href="Network-PagerDuty-REST-Incidents.html#t:Sort">Sort</a> a) a</li><li class="src short"><span class="keyword">data</span> <a href="#t:Field">Field</a><ul class="subs"><li>= <a href="#v:IncidentNumber">IncidentNumber</a></li><li>| <a href="#v:CreatedOn">CreatedOn</a></li><li>| <a href="#v:ResolvedOn">ResolvedOn</a></li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:IncidentStatus">IncidentStatus</a><ul class="subs"><li>= <a href="#v:ITriggered">ITriggered</a></li><li>| <a href="#v:IAcknowledged">IAcknowledged</a></li><li>| <a href="#v:IResolved">IResolved</a></li><li>| <a href="#v:IOther">IOther</a> Text</li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:UpdateStatus">UpdateStatus</a><ul class="subs"><li>= <a href="#v:UAcknowledged">UAcknowledged</a></li><li>| <a href="#v:UResolved">UResolved</a></li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:UpdateIncident">UpdateIncident</a></li><li class="src short"><a href="#v:iiId">iiId</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a> IncidentId</li><li class="src short"><a href="#v:iiStatus">iiStatus</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateStatus">UpdateStatus</a>)</li><li class="src short"><a href="#v:iiEscalationLevel">iiEscalationLevel</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Int.html#t:Int">Int</a>)</li><li class="src short"><a href="#v:iiEscalationPolicy">iiEscalationPolicy</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> EscalationPolicyId)</li><li class="src short"><a href="#v:iiAssignedToUser">iiAssignedToUser</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> (CSV UserId))</li><li class="src short"><span class="keyword">data</span> <a href="#t:UpdatedIncidents">UpdatedIncidents</a></li><li class="src short"><a href="#v:uiId">uiId</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a> IncidentId</li><li class="src short"><a href="#v:uiStatus">uiStatus</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a> <a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a></li><li class="src short"><a href="#v:uiIncidentNumber">uiIncidentNumber</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:uiUrl">uiUrl</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a> Text</li><li class="src short"><a href="#v:uiError">uiError</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> Object)</li><li class="src short"><span class="keyword">data</span> <a href="#t:Assignee">Assignee</a></li><li class="src short"><a href="#v:aAt">aAt</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a> Date</li><li class="src short"><a href="#v:aObject">aObject</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a> Object</li><li class="src short"><span class="keyword">class</span> <a href="#t:HasIncident">HasIncident</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:incident">incident</a> :: Lens' a <a href="Network-PagerDuty-REST-Incidents.html#t:Incident">Incident</a></li><li><a href="#v:iIncidentNumber">iIncidentNumber</a> :: Lens' a <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Int.html#t:Int">Int</a></li><li><a href="#v:iStatus">iStatus</a> :: Lens' a <a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a></li><li><a href="#v:iCreatedOn">iCreatedOn</a> :: Lens' a <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/time-1.4.2/Data-Time-Clock.html#t:UTCTime">UTCTime</a></li><li><a href="#v:iHtmlUrl">iHtmlUrl</a> :: Lens' a Text</li><li><a href="#v:iIncidentKey">iIncidentKey</a> :: Lens' a (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> IncidentKey)</li><li><a href="#v:iService">iService</a> :: Lens' a Object</li><li><a href="#v:iEscalationPolicy">iEscalationPolicy</a> :: Lens' a (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> Object)</li><li><a href="#v:iAssignedTo">iAssignedTo</a> :: Lens' a [<a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a>]</li><li><a href="#v:iAcknowledgers">iAcknowledgers</a> :: Lens' a [<a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a>]</li><li><a href="#v:iLastStatusChangeBy">iLastStatusChangeBy</a> :: Lens' a (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a>)</li><li><a href="#v:iLastStatusChangeOn">iLastStatusChangeOn</a> :: Lens' a (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/time-1.4.2/Data-Time-Clock.html#t:UTCTime">UTCTime</a>)</li><li><a href="#v:iTriggerSummaryData">iTriggerSummaryData</a> :: Lens' a Object</li><li><a href="#v:iTriggerDetailsHtmlUrl">iTriggerDetailsHtmlUrl</a> :: Lens' a Text</li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:Incident">Incident</a></li></ul></div><div id="interface"><h1 id="g:1">List Incidents</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:ListIncidents" class="def">ListIncidents</a></p><div class="subs instances"><p id="control.i:ListIncidents" class="caption collapser" onclick="toggleSection('i:ListIncidents')">Instances</p><div id="section.i:ListIncidents" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">HasDatatypeInfo <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">Generic <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">QueryLike <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src"><span class="keyword">type</span> Code <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:listIncidents" class="def">listIncidents</a> :: Request <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s [<a href="Network-PagerDuty-REST-Incidents.html#t:Incident">Incident</a>]</p><div class="doc"><p>The PagerDuty incidents query API can be used to query current and
19+ <a href="Network-PagerDuty-Integration.html">Network.PagerDuty.Integration</a> API.</p><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/incidents">http://developer.pagerduty.com/documentation/rest/incidents</a></p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:ListIncidents">ListIncidents</a></li><li class="src short"><a href="#v:listIncidents">listIncidents</a> :: <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s [<a href="Network-PagerDuty-REST-Incidents.html#t:Incident">Incident</a>]</li><li class="src short"><a href="#v:lsSince">lsSince</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> UTCTime)</li><li class="src short"><a href="#v:lsUntil">lsUntil</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> UTCTime)</li><li class="src short"><a href="#v:lsDateRange">lsDateRange</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:lsStatus">lsStatus</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a>])</li><li class="src short"><a href="#v:lsIncidentKey">lsIncidentKey</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Network-PagerDuty-Integration.html#t:IncidentKey">IncidentKey</a>)</li><li class="src short"><a href="#v:lsService">lsService</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Network-PagerDuty-Integration.html#t:ServiceId">ServiceId</a>])</li><li class="src short"><a href="#v:lsAssignedToUser">lsAssignedToUser</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Network-PagerDuty-Integration.html#t:UserId">UserId</a>])</li><li class="src short"><a href="#v:lsTimeZone">lsTimeZone</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) TimeZone</li><li class="src short"><a href="#v:lsSortBy">lsSortBy</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Network-PagerDuty-REST-Incidents.html#t:Sort">Sort</a> <a href="Network-PagerDuty-REST-Incidents.html#t:Field">Field</a>))</li><li class="src short"><span class="keyword">data</span> <a href="#t:CountIncidents">CountIncidents</a></li><li class="src short"><a href="#v:countIncidents">countIncidents</a> :: <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s Count</li><li class="src short"><a href="#v:cSince">cSince</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> UTCTime)</li><li class="src short"><a href="#v:cUntil">cUntil</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> UTCTime)</li><li class="src short"><a href="#v:cDateRange">cDateRange</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:cStatus">cStatus</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a>])</li><li class="src short"><a href="#v:cIncidentKey">cIncidentKey</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Network-PagerDuty-Integration.html#t:IncidentKey">IncidentKey</a>)</li><li class="src short"><a href="#v:cService">cService</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Network-PagerDuty-Integration.html#t:ServiceId">ServiceId</a>])</li><li class="src short"><a href="#v:cAssignedToUser">cAssignedToUser</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Network-PagerDuty-Integration.html#t:UserId">UserId</a>])</li><li class="src short"><a href="#v:getIncident">getIncident</a> :: <a href="Network-PagerDuty-Integration.html#t:IncidentId">IncidentId</a> -> <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-Integration.html#t:Empty">Empty</a> s <a href="Network-PagerDuty-REST-Incidents.html#t:Incident">Incident</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:UpdateIncidents">UpdateIncidents</a></li><li class="src short"><a href="#v:updateIncidents">updateIncidents</a> :: <a href="Network-PagerDuty-Integration.html#t:RequesterId">RequesterId</a> -> <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a> s [<a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a>]</li><li class="src short"><a href="#v:updateIncidentsBasic">updateIncidentsBasic</a> :: <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a> <a href="Network-PagerDuty-Integration.html#v:Basic">Basic</a> [<a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a>]</li><li class="src short"><a href="#v:uiIncidents">uiIncidents</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a> s b) [<a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a>]</li><li class="src short"><a href="#v:resolveIncident">resolveIncident</a> :: <a href="Network-PagerDuty-Integration.html#t:IncidentId">IncidentId</a> -> <a href="Network-PagerDuty-Integration.html#t:RequesterId">RequesterId</a> -> <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-Integration.html#t:Empty">Empty</a> s <a href="Network-PagerDuty-Integration.html#t:Empty">Empty</a></li><li class="src short"><a href="#v:resolveIncidentBasic">resolveIncidentBasic</a> :: <a href="Network-PagerDuty-Integration.html#t:IncidentId">IncidentId</a> -> <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-Integration.html#t:Empty">Empty</a> s <a href="Network-PagerDuty-Integration.html#t:Empty">Empty</a></li><li class="src short"><a href="#v:acknowledgeIncident">acknowledgeIncident</a> :: <a href="Network-PagerDuty-Integration.html#t:IncidentId">IncidentId</a> -> <a href="Network-PagerDuty-Integration.html#t:RequesterId">RequesterId</a> -> <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-Integration.html#t:Empty">Empty</a> s <a href="Network-PagerDuty-Integration.html#t:Empty">Empty</a></li><li class="src short"><a href="#v:acknowledgeIncidentBasic">acknowledgeIncidentBasic</a> :: <a href="Network-PagerDuty-Integration.html#t:IncidentId">IncidentId</a> -> <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-Integration.html#t:Empty">Empty</a> s <a href="Network-PagerDuty-Integration.html#t:Empty">Empty</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:ReassignIncident">ReassignIncident</a></li><li class="src short"><a href="#v:reassignIncident">reassignIncident</a> :: <a href="Network-PagerDuty-Integration.html#t:IncidentId">IncidentId</a> -> <a href="Network-PagerDuty-Integration.html#t:RequesterId">RequesterId</a> -> <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a> s <a href="Network-PagerDuty-Integration.html#t:Empty">Empty</a></li><li class="src short"><a href="#v:riEscalationPolicy">riEscalationPolicy</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Network-PagerDuty-Integration.html#t:EscalationPolicyId">EscalationPolicyId</a>)</li><li class="src short"><a href="#v:riEscalationLevel">riEscalationLevel</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Int.html#t:Int">Int</a>)</li><li class="src short"><a href="#v:riAssignedToUser">riAssignedToUser</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Network-PagerDuty-Integration.html#t:UserId">UserId</a>])</li><li class="src short"><span class="keyword">data</span> <a href="#t:Sort">Sort</a> a<ul class="subs"><li>= <a href="#v:Desc">Desc</a> a</li><li>| <a href="#v:Asc">Asc</a> a</li></ul></li><li class="src short"><a href="#v:_Desc">_Desc</a> :: <span class="keyword">forall</span> a. Prism' (<a href="Network-PagerDuty-REST-Incidents.html#t:Sort">Sort</a> a) a</li><li class="src short"><a href="#v:_Asc">_Asc</a> :: <span class="keyword">forall</span> a. Prism' (<a href="Network-PagerDuty-REST-Incidents.html#t:Sort">Sort</a> a) a</li><li class="src short"><span class="keyword">data</span> <a href="#t:Field">Field</a><ul class="subs"><li>= <a href="#v:IncidentNumber">IncidentNumber</a></li><li>| <a href="#v:CreatedOn">CreatedOn</a></li><li>| <a href="#v:ResolvedOn">ResolvedOn</a></li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:IncidentStatus">IncidentStatus</a><ul class="subs"><li>= <a href="#v:ITriggered">ITriggered</a></li><li>| <a href="#v:IAcknowledged">IAcknowledged</a></li><li>| <a href="#v:IResolved">IResolved</a></li><li>| <a href="#v:IOther">IOther</a> Text</li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:UpdateStatus">UpdateStatus</a><ul class="subs"><li>= <a href="#v:UAcknowledged">UAcknowledged</a></li><li>| <a href="#v:UResolved">UResolved</a></li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:UpdateIncident">UpdateIncident</a></li><li class="src short"><a href="#v:iiId">iiId</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a> <a href="Network-PagerDuty-Integration.html#t:IncidentId">IncidentId</a></li><li class="src short"><a href="#v:iiStatus">iiStatus</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateStatus">UpdateStatus</a>)</li><li class="src short"><a href="#v:iiEscalationLevel">iiEscalationLevel</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Int.html#t:Int">Int</a>)</li><li class="src short"><a href="#v:iiEscalationPolicy">iiEscalationPolicy</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Network-PagerDuty-Integration.html#t:EscalationPolicyId">EscalationPolicyId</a>)</li><li class="src short"><a href="#v:iiAssignedToUser">iiAssignedToUser</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> (CSV <a href="Network-PagerDuty-Integration.html#t:UserId">UserId</a>))</li><li class="src short"><span class="keyword">data</span> <a href="#t:UpdatedIncidents">UpdatedIncidents</a></li><li class="src short"><a href="#v:uiId">uiId</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a> <a href="Network-PagerDuty-Integration.html#t:IncidentId">IncidentId</a></li><li class="src short"><a href="#v:uiStatus">uiStatus</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a> <a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a></li><li class="src short"><a href="#v:uiIncidentNumber">uiIncidentNumber</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:uiUrl">uiUrl</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a> Text</li><li class="src short"><a href="#v:uiError">uiError</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> Object)</li><li class="src short"><span class="keyword">data</span> <a href="#t:Assignee">Assignee</a></li><li class="src short"><a href="#v:aAt">aAt</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a> Date</li><li class="src short"><a href="#v:aObject">aObject</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a> Object</li><li class="src short"><span class="keyword">class</span> <a href="#t:HasIncident">HasIncident</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:incident">incident</a> :: Lens' a <a href="Network-PagerDuty-REST-Incidents.html#t:Incident">Incident</a></li><li><a href="#v:iIncidentNumber">iIncidentNumber</a> :: Lens' a <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Int.html#t:Int">Int</a></li><li><a href="#v:iStatus">iStatus</a> :: Lens' a <a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a></li><li><a href="#v:iCreatedOn">iCreatedOn</a> :: Lens' a UTCTime</li><li><a href="#v:iHtmlUrl">iHtmlUrl</a> :: Lens' a Text</li><li><a href="#v:iIncidentKey">iIncidentKey</a> :: Lens' a (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Network-PagerDuty-Integration.html#t:IncidentKey">IncidentKey</a>)</li><li><a href="#v:iService">iService</a> :: Lens' a Object</li><li><a href="#v:iEscalationPolicy">iEscalationPolicy</a> :: Lens' a (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> Object)</li><li><a href="#v:iAssignedTo">iAssignedTo</a> :: Lens' a [<a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a>]</li><li><a href="#v:iAcknowledgers">iAcknowledgers</a> :: Lens' a [<a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a>]</li><li><a href="#v:iLastStatusChangeBy">iLastStatusChangeBy</a> :: Lens' a (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a>)</li><li><a href="#v:iLastStatusChangeOn">iLastStatusChangeOn</a> :: Lens' a (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> UTCTime)</li><li><a href="#v:iTriggerSummaryData">iTriggerSummaryData</a> :: Lens' a Object</li><li><a href="#v:iTriggerDetailsHtmlUrl">iTriggerDetailsHtmlUrl</a> :: Lens' a Text</li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:Incident">Incident</a></li></ul></div><div id="interface"><h1 id="g:1">List Incidents</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:ListIncidents" class="def">ListIncidents</a></p><div class="subs instances"><p id="control.i:ListIncidents" class="caption collapser" onclick="toggleSection('i:ListIncidents')">Instances</p><div id="section.i:ListIncidents" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">HasDatatypeInfo <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">Generic <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">QueryLike <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Network-PagerDuty-Integration.html#t:Paginate">Paginate</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src"><span class="keyword">type</span> Code <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:listIncidents" class="def">listIncidents</a> :: <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s [<a href="Network-PagerDuty-REST-Incidents.html#t:Incident">Incident</a>]</p><div class="doc"><p>The PagerDuty incidents query API can be used to query current and
2020 historical PagerDuty incidents over a date range, letting you build custom
2121 dashboards or incident reports. The API allows for searching for incidents
2222 with multiple filters or query parameters, various sorts, and also supports
23− the pagination of results.</p><pre>GET /incidents</pre><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/incidents/list">http://developer.pagerduty.com/documentation/rest/incidents/list</a></p></div></div><div class="top"><p class="src"><a name="v:lsSince" class="def">lsSince</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/time-1.4.2/Data-Time-Clock.html#t:UTCTime">UTCTime</a>)</p><div class="doc"><p>The start of the date range over which you want to search.</p></div></div><div class="top"><p class="src"><a name="v:lsUntil" class="def">lsUntil</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/time-1.4.2/Data-Time-Clock.html#t:UTCTime">UTCTime</a>)</p><div class="doc"><p>The end of the date range over which you want to search.</p><p>/Note: If you leave off either since or until, a 30 day default range is
23+ the pagination of results.</p><pre>GET /incidents</pre><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/incidents/list">http://developer.pagerduty.com/documentation/rest/incidents/list</a></p></div></div><div class="top"><p class="src"><a name="v:lsSince" class="def">lsSince</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> UTCTime)</p><div class="doc"><p>The start of the date range over which you want to search.</p></div></div><div class="top"><p class="src"><a name="v:lsUntil" class="def">lsUntil</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> UTCTime)</p><div class="doc"><p>The end of the date range over which you want to search.</p><p>/Note: If you leave off either since or until, a 30 day default range is
2424 applied to your open ended range. Not including the since parameter will set
2525 the date range to until - 30 days. Likewise, if you leave off until,
2626 it is set to since + 30 days.</p><p>Defaults to the last 30 days if you leave off both. The size of the date
27− range must be less than 180 days.</p></div></div><div class="top"><p class="src"><a name="v:lsDateRange" class="def">lsDateRange</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Bool.html#t:Bool">Bool</a></p><div class="doc"><p>When set, the since and until parameters and defaults are
28− ignored. Use this to get all incidents since the account was created.</p></div></div><div class="top"><p class="src"><a name="v:lsStatus" class="def">lsStatus</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a>])</p><div class="doc"><p>Returns only the incidents currently in the passed status(es).</p></div></div><div class="top"><p class="src"><a name="v:lsIncidentKey" class="def">lsIncidentKey</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> IncidentKey)</p><div class="doc"><p>Returns only the incidents with the passed de-duplication key.</p><p><em>See:</em> <a href="Network-PagerDuty-Integration.html">Network.PagerDuty.Integration</a></p></div></div><div class="top"><p class="src"><a name="v:lsService" class="def">lsService</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [ServiceId])</p><div class="doc"><p>Returns only the incidents associated with the passed service(s). This
29− expects one or more service IDs.</p></div></div><div class="top"><p class="src"><a name="v:lsAssignedToUser" class="def">lsAssignedToUser</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [UserId])</p><div class="doc"><p>Returns only the incidents currently assigned to the passed user(s). This
27+ range must be less than 180 days.</p></div></div><div class="top"><p class="src"><a name="v:lsDateRange" class="def">lsDateRange</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Bool.html#t:Bool">Bool</a></p><div class="doc"><p>When set, the since and until parameters and defaults are
28+ ignored. Use this to get all incidents since the account was created.</p></div></div><div class="top"><p class="src"><a name="v:lsStatus" class="def">lsStatus</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a>])</p><div class="doc"><p>Returns only the incidents currently in the passed status(es).</p></div></div><div class="top"><p class="src"><a name="v:lsIncidentKey" class="def">lsIncidentKey</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Network-PagerDuty-Integration.html#t:IncidentKey">IncidentKey</a>)</p><div class="doc"><p>Returns only the incidents with the passed de-duplication key.</p><p><em>See:</em> <a href="Network-PagerDuty-Integration.html">Network.PagerDuty.Integration</a></p></div></div><div class="top"><p class="src"><a name="v:lsService" class="def">lsService</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Network-PagerDuty-Integration.html#t:ServiceId">ServiceId</a>])</p><div class="doc"><p>Returns only the incidents associated with the passed service(s). This
29+ expects one or more service IDs.</p></div></div><div class="top"><p class="src"><a name="v:lsAssignedToUser" class="def">lsAssignedToUser</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Network-PagerDuty-Integration.html#t:UserId">UserId</a>])</p><div class="doc"><p>Returns only the incidents currently assigned to the passed user(s). This
3030 expects one or more user IDs.</p><p><em>Note:</em> When using the assignedToUser filter, you will only receive
3131 incidents with statuses of triggered or acknowledged. This is because resolved
32− incidents are not assigned to any user.</p></div></div><div class="top"><p class="src"><a name="v:lsTimeZone" class="def">lsTimeZone</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/time-1.4.2/Data-Time-LocalTime.html#t:TimeZone">TimeZone</a></p><div class="doc"><p>Time zone in which dates in the result will be rendered.</p><p><em>Default:</em> <code>UTC</code>.</p></div></div><div class="top"><p class="src"><a name="v:lsSortBy" class="def">lsSortBy</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Network-PagerDuty-REST-Incidents.html#t:Sort">Sort</a> <a href="Network-PagerDuty-REST-Incidents.html#t:Field">Field</a>))</p><div class="doc"><p>Used to specify both the field you wish to sort the results on, as well as
33− the direction (ascending/descending) of the results.</p></div></div><h1 id="g:2">Count Incidents</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:CountIncidents" class="def">CountIncidents</a></p><div class="subs instances"><p id="control.i:CountIncidents" class="caption collapser" onclick="toggleSection('i:CountIncidents')">Instances</p><div id="section.i:CountIncidents" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">HasDatatypeInfo <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">Generic <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">QueryLike <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src"><span class="keyword">type</span> Code <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:countIncidents" class="def">countIncidents</a> :: Request <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s Count</p><div class="doc"><p>Use this query if you are simply looking for the count of incidents that
32+ incidents are not assigned to any user.</p></div></div><div class="top"><p class="src"><a name="v:lsTimeZone" class="def">lsTimeZone</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) TimeZone</p><div class="doc"><p>Time zone in which dates in the result will be rendered.</p><p><em>Default:</em> <code>UTC</code>.</p></div></div><div class="top"><p class="src"><a name="v:lsSortBy" class="def">lsSortBy</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ListIncidents">ListIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Network-PagerDuty-REST-Incidents.html#t:Sort">Sort</a> <a href="Network-PagerDuty-REST-Incidents.html#t:Field">Field</a>))</p><div class="doc"><p>Used to specify both the field you wish to sort the results on, as well as
33+ the direction (ascending/descending) of the results.</p></div></div><h1 id="g:2">Count Incidents</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:CountIncidents" class="def">CountIncidents</a></p><div class="subs instances"><p id="control.i:CountIncidents" class="caption collapser" onclick="toggleSection('i:CountIncidents')">Instances</p><div id="section.i:CountIncidents" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">HasDatatypeInfo <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">Generic <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">QueryLike <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src"><span class="keyword">type</span> Code <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:countIncidents" class="def">countIncidents</a> :: <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s Count</p><div class="doc"><p>Use this query if you are simply looking for the count of incidents that
3434 match a given query. This should be used if you don't need access to the
35− actual incident details.</p><pre>GET /incidents/count</pre><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/incidents/count">http://developer.pagerduty.com/documentation/rest/incidents/count</a></p></div></div><div class="top"><p class="src"><a name="v:cSince" class="def">cSince</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/time-1.4.2/Data-Time-Clock.html#t:UTCTime">UTCTime</a>)</p><div class="doc"><p>The start of the date range over which you want to search.</p></div></div><div class="top"><p class="src"><a name="v:cUntil" class="def">cUntil</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/time-1.4.2/Data-Time-Clock.html#t:UTCTime">UTCTime</a>)</p><div class="doc"><p>The end of the date range over which you want to search.</p><p>/Note: If you leave off either since or until, a 30 day default range is
35+ actual incident details.</p><pre>GET /incidents/count</pre><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/incidents/count">http://developer.pagerduty.com/documentation/rest/incidents/count</a></p></div></div><div class="top"><p class="src"><a name="v:cSince" class="def">cSince</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> UTCTime)</p><div class="doc"><p>The start of the date range over which you want to search.</p></div></div><div class="top"><p class="src"><a name="v:cUntil" class="def">cUntil</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> UTCTime)</p><div class="doc"><p>The end of the date range over which you want to search.</p><p><em>Note:</em> If you leave off either since or until, a 30 day default range is
3636 applied to your open ended range. Not including the since parameter will set
37− the date range to until - 30 days. Likewise, if you leave off until,
38− it is set to since + 30 days.</p><p>Defaults to the last 30 days if you leave off both. The size of the date
39− range must be less than 180 days.</p></div></div><div class="top"><p class="src"><a name="v:cDateRange" class="def">cDateRange</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Bool.html#t:Bool">Bool</a></p><div class="doc"><p>When set, the since and until parameters and defaults are
40− ignored. Use this to get all counts since the account was created.</p></div></div><div class="top"><p class="src"><a name="v:cStatus" class="def">cStatus</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a>])</p><div class="doc"><p>Only counts the incidents currently in the passed status(es).</p></div></div><div class="top"><p class="src"><a name="v:cIncidentKey" class="def">cIncidentKey</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> IncidentKey)</p><div class="doc"><p>Returns only the incidents with the passed de-duplication key.</p><p><em>See:</em> <a href="Network-PagerDuty-Integration.html">Network.PagerDuty.Integration</a></p></div></div><div class="top"><p class="src"><a name="v:cService" class="def">cService</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [ServiceId])</p><div class="doc"><p>Only counts the incidents associated with the passed service(s).
41− This is expecting one or more service IDs.</p></div></div><div class="top"><p class="src"><a name="v:cAssignedToUser" class="def">cAssignedToUser</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [UserId])</p><div class="doc"><p>Only counts the incidents currently assigned to the passed user(s).
37+ the date range to until <code>-30</code> days. Likewise, if you leave off until,
38+ it is set to since <code>+30</code> days.</p><p><em>Default:</em> The last 30 days if you leave off both. The size of the date
39+ range must be less than 180 days.</p></div></div><div class="top"><p class="src"><a name="v:cDateRange" class="def">cDateRange</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Bool.html#t:Bool">Bool</a></p><div class="doc"><p>When set, the since and until parameters and defaults are
40+ ignored. Use this to get all counts since the account was created.</p></div></div><div class="top"><p class="src"><a name="v:cStatus" class="def">cStatus</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a>])</p><div class="doc"><p>Only counts the incidents currently in the passed status(es).</p></div></div><div class="top"><p class="src"><a name="v:cIncidentKey" class="def">cIncidentKey</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Network-PagerDuty-Integration.html#t:IncidentKey">IncidentKey</a>)</p><div class="doc"><p>Returns only the incidents with the passed de-duplication key.</p><p><em>See:</em> <a href="Network-PagerDuty-Integration.html">Network.PagerDuty.Integration</a></p></div></div><div class="top"><p class="src"><a name="v:cService" class="def">cService</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Network-PagerDuty-Integration.html#t:ServiceId">ServiceId</a>])</p><div class="doc"><p>Only counts the incidents associated with the passed service(s).
41+ This is expecting one or more service IDs.</p></div></div><div class="top"><p class="src"><a name="v:cAssignedToUser" class="def">cAssignedToUser</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:CountIncidents">CountIncidents</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Network-PagerDuty-Integration.html#t:UserId">UserId</a>])</p><div class="doc"><p>Only counts the incidents currently assigned to the passed user(s).
4242 This is expecting one or more user IDs.</p><p><em>Note:</em> When using the assigned_to_user filter, you will only count
4343 incidents with statuses of triggered or acknowledged. This is because resolved
44− incidents are not assigned to any user.</p></div></div><h1 id="g:3">Get Incident</h1><div class="top"><p class="src"><a name="v:getIncident" class="def">getIncident</a> :: IncidentId -> Request Empty s <a href="Network-PagerDuty-REST-Incidents.html#t:Incident">Incident</a></p><div class="doc"><p>Get detailed information about an incident. Accepts either an incident id,
45− or an incident number.</p><pre>GET /incidents/:id</pre><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/incidents/show">http://developer.pagerduty.com/documentation/rest/incidents/show</a></p></div></div><h1 id="g:4">Update Incidents</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:UpdateIncidents" class="def">UpdateIncidents</a></p><div class="subs instances"><p id="control.i:UpdateIncidents" class="caption collapser" onclick="toggleSection('i:UpdateIncidents')">Instances</p><div id="section.i:UpdateIncidents" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">FromJSON <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">QueryLike <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:updateIncidents" class="def">updateIncidents</a> :: RequesterId -> Request <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a> s [<a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a>]</p><div class="doc"><p>Acknowledge, resolve, escalate or reassign one or more incidents.</p><pre>PUT /incidents</pre><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/incidents/update">http://developer.pagerduty.com/documentation/rest/incidents/update</a></p></div></div><div class="top"><p class="src"><a name="v:updateIncidentsBasic" class="def">updateIncidentsBasic</a> :: Request <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a> Basic [<a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a>]</p><div class="doc"><p>A version of <code><a href="Network-PagerDuty-REST-Incidents.html#v:updateIncidents">updateIncidents</a></code> which uses HTTP Basic authentication and
46− doesn't require a <code>RequesterId</code>.</p></div></div><div class="top"><p class="src"><a name="v:uiIncidents" class="def">uiIncidents</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a> s b) [<a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a>]</p></div><h1 id="g:5">Resolve Incident</h1><div class="top"><p class="src"><a name="v:resolveIncident" class="def">resolveIncident</a> :: IncidentId -> RequesterId -> Request Empty s Empty</p><div class="doc"><p>Resolve an incident.</p><pre>PUT /incidents/:id/resolve</pre><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/incidents/resolve">http://developer.pagerduty.com/documentation/rest/incidents/resolve</a></p></div></div><div class="top"><p class="src"><a name="v:resolveIncidentBasic" class="def">resolveIncidentBasic</a> :: IncidentId -> Request Empty s Empty</p><div class="doc"><p>A version of <code><a href="Network-PagerDuty-REST-Incidents.html#v:resolveIncident">resolveIncident</a></code> which uses HTTP Basic authentication and
47− doesn't require a <code>RequesterId</code>.</p></div></div><h1 id="g:6">Acknowledge Incident</h1><div class="top"><p class="src"><a name="v:acknowledgeIncident" class="def">acknowledgeIncident</a> :: IncidentId -> RequesterId -> Request Empty s Empty</p><div class="doc"><p>Acknowledge an incident.</p><pre>PUT /incidents/:id/acknowledge</pre><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/incidents/acknowledge">http://developer.pagerduty.com/documentation/rest/incidents/acknowledge</a></p></div></div><div class="top"><p class="src"><a name="v:acknowledgeIncidentBasic" class="def">acknowledgeIncidentBasic</a> :: IncidentId -> Request Empty s Empty</p><div class="doc"><p>A version of <code><a href="Network-PagerDuty-REST-Incidents.html#v:acknowledgeIncident">acknowledgeIncident</a></code> which uses HTTP Basic authentication and
48− doesn't require a <code>RequesterId</code>.</p></div></div><h1 id="g:7">Reassign Incident</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:ReassignIncident" class="def">ReassignIncident</a></p><div class="subs instances"><p id="control.i:ReassignIncident" class="caption collapser" onclick="toggleSection('i:ReassignIncident')">Instances</p><div id="section.i:ReassignIncident" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a></td><td class="doc empty"> </td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a></td><td class="doc empty"> </td></tr><tr><td class="src">FromJSON <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a></td><td class="doc empty"> </td></tr><tr><td class="src">QueryLike <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:reassignIncident" class="def">reassignIncident</a> :: IncidentId -> RequesterId -> Request <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a> s Empty</p><div class="doc"><p>Reassign an incident.</p><pre>PUT /incidents/:id/reassign</pre><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/incidents/reassign">http://developer.pagerduty.com/documentation/rest/incidents/reassign</a></p></div></div><div class="top"><p class="src"><a name="v:riEscalationPolicy" class="def">riEscalationPolicy</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> EscalationPolicyId)</p><div class="doc"><p>The ID of an escalation policy. Delegate the incident to this escalation
49− policy.</p></div></div><div class="top"><p class="src"><a name="v:riEscalationLevel" class="def">riEscalationLevel</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Int.html#t:Int">Int</a>)</p><div class="doc"><p>Escalate incident to this level in the escalation policy.</p></div></div><div class="top"><p class="src"><a name="v:riAssignedToUser" class="def">riAssignedToUser</a> :: Lens' (Request <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [UserId])</p><div class="doc"><p>Comma separated list of user IDs to assign this incident to.</p></div></div><h1 id="g:8">Types</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Sort" class="def">Sort</a> a</p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Desc" class="def">Desc</a> a</td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Asc" class="def">Asc</a> a</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Sort" class="caption collapser" onclick="toggleSection('i:Sort')">Instances</p><div id="section.i:Sort" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> a => <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> (<a href="Network-PagerDuty-REST-Incidents.html#t:Sort">Sort</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> a => <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> (<a href="Network-PagerDuty-REST-Incidents.html#t:Sort">Sort</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:_Desc" class="def">_Desc</a> :: <span class="keyword">forall</span> a. Prism' (<a href="Network-PagerDuty-REST-Incidents.html#t:Sort">Sort</a> a) a</p></div><div class="top"><p class="src"><a name="v:_Asc" class="def">_Asc</a> :: <span class="keyword">forall</span> a. Prism' (<a href="Network-PagerDuty-REST-Incidents.html#t:Sort">Sort</a> a) a</p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Field" class="def">Field</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:IncidentNumber" class="def">IncidentNumber</a></td><td class="doc"><p>The number of your incident.</p></td></tr><tr><td class="src"><a name="v:CreatedOn" class="def">CreatedOn</a></td><td class="doc"><p>The date/time the incident was triggered.</p></td></tr><tr><td class="src"><a name="v:ResolvedOn" class="def">ResolvedOn</a></td><td class="doc"><p>The date/time the incident was resolved.</p></td></tr></table></div><div class="subs instances"><p id="control.i:Field" class="caption collapser" onclick="toggleSection('i:Field')">Instances</p><div id="section.i:Field" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-Incidents.html#t:Field">Field</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-Incidents.html#t:Field">Field</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:IncidentStatus" class="def">IncidentStatus</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:ITriggered" class="def">ITriggered</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:IAcknowledged" class="def">IAcknowledged</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:IResolved" class="def">IResolved</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:IOther" class="def">IOther</a> Text</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:IncidentStatus" class="caption collapser" onclick="toggleSection('i:IncidentStatus')">Instances</p><div id="section.i:IncidentStatus" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a></td><td class="doc empty"> </td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a></td><td class="doc empty"> </td></tr><tr><td class="src">FromJSON <a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a></td><td class="doc empty"> </td></tr><tr><td class="src">ToByteString <a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:UpdateStatus" class="def">UpdateStatus</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:UAcknowledged" class="def">UAcknowledged</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:UResolved" class="def">UResolved</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:UpdateStatus" class="caption collapser" onclick="toggleSection('i:UpdateStatus')">Instances</p><div id="section.i:UpdateStatus" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateStatus">UpdateStatus</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateStatus">UpdateStatus</a></td><td class="doc empty"> </td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateStatus">UpdateStatus</a></td><td class="doc empty"> </td></tr><tr><td class="src">FromJSON <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateStatus">UpdateStatus</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:UpdateIncident" class="def">UpdateIncident</a></p><div class="subs instances"><p id="control.i:UpdateIncident" class="caption collapser" onclick="toggleSection('i:UpdateIncident')">Instances</p><div id="section.i:UpdateIncident" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a></td><td class="doc empty"> </td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a></td><td class="doc empty"> </td></tr><tr><td class="src">FromJSON <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:iiId" class="def">iiId</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a> IncidentId</p><div class="doc"><p>The id of the incident to update.</p></div></div><div class="top"><p class="src"><a name="v:iiStatus" class="def">iiStatus</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateStatus">UpdateStatus</a>)</p><div class="doc"><p>The new status of the incident.</p></div></div><div class="top"><p class="src"><a name="v:iiEscalationLevel" class="def">iiEscalationLevel</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Int.html#t:Int">Int</a>)</p><div class="doc"><p>Escalate incident to this level in the escalation policy.</p></div></div><div class="top"><p class="src"><a name="v:iiEscalationPolicy" class="def">iiEscalationPolicy</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> EscalationPolicyId)</p><div class="doc"><p>Delegate this incident to the specified escalation policy id.
50− This restarts the incident's escalation following the new policy.</p></div></div><div class="top"><p class="src"><a name="v:iiAssignedToUser" class="def">iiAssignedToUser</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> (CSV UserId))</p><div class="doc"><p>List of user IDs to assign this incident to.</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:UpdatedIncidents" class="def">UpdatedIncidents</a></p><div class="subs instances"><p id="control.i:UpdatedIncidents" class="caption collapser" onclick="toggleSection('i:UpdatedIncidents')">Instances</p><div id="section.i:UpdatedIncidents" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">FromJSON <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:uiId" class="def">uiId</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a> IncidentId</p></div><div class="top"><p class="src"><a name="v:uiStatus" class="def">uiStatus</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a> <a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a></p></div><div class="top"><p class="src"><a name="v:uiIncidentNumber" class="def">uiIncidentNumber</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Int.html#t:Int">Int</a></p></div><div class="top"><p class="src"><a name="v:uiUrl" class="def">uiUrl</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a> Text</p></div><div class="top"><p class="src"><a name="v:uiError" class="def">uiError</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> Object)</p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Assignee" class="def">Assignee</a></p><div class="subs instances"><p id="control.i:Assignee" class="caption collapser" onclick="toggleSection('i:Assignee')">Instances</p><div id="section.i:Assignee" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a></td><td class="doc empty"> </td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a></td><td class="doc empty"> </td></tr><tr><td class="src">FromJSON <a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:aAt" class="def">aAt</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a> Date</p></div><div class="top"><p class="src"><a name="v:aObject" class="def">aObject</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a> Object</p></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:HasIncident" class="def">HasIncident</a> a <span class="keyword">where</span></p><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Network-PagerDuty-REST-Incidents.html#v:incident">incident</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:incident" class="def">incident</a> :: Lens' a <a href="Network-PagerDuty-REST-Incidents.html#t:Incident">Incident</a></p><p class="src"><a name="v:iIncidentNumber" class="def">iIncidentNumber</a> :: Lens' a <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Int.html#t:Int">Int</a></p><div class="doc"><p>The number of the incident. This is unique across your account.</p></div><p class="src"><a name="v:iStatus" class="def">iStatus</a> :: Lens' a <a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a></p><div class="doc"><p>The current status of the incident. Valid statuses are:</p></div><p class="src"><a name="v:iCreatedOn" class="def">iCreatedOn</a> :: Lens' a <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/time-1.4.2/Data-Time-Clock.html#t:UTCTime">UTCTime</a></p><div class="doc"><p>The date/time the incident was triggered.</p></div><p class="src"><a name="v:iHtmlUrl" class="def">iHtmlUrl</a> :: Lens' a Text</p><div class="doc"><p>The PagerDuty website URL where the incident can be viewed and further
51− actions taken. This is not the resource URL.</p></div><p class="src"><a name="v:iIncidentKey" class="def">iIncidentKey</a> :: Lens' a (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> IncidentKey)</p><div class="doc"><p>The incident's de-duplication key. See the PagerDuty Integration API
44+ incidents are not assigned to any user.</p></div></div><h1 id="g:3">Get Incident</h1><div class="top"><p class="src"><a name="v:getIncident" class="def">getIncident</a> :: <a href="Network-PagerDuty-Integration.html#t:IncidentId">IncidentId</a> -> <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-Integration.html#t:Empty">Empty</a> s <a href="Network-PagerDuty-REST-Incidents.html#t:Incident">Incident</a></p><div class="doc"><p>Get detailed information about an incident. Accepts either an incident id,
45+ or an incident number.</p><pre>GET /incidents/:id</pre><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/incidents/show">http://developer.pagerduty.com/documentation/rest/incidents/show</a></p></div></div><h1 id="g:4">Update Incidents</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:UpdateIncidents" class="def">UpdateIncidents</a></p><div class="subs instances"><p id="control.i:UpdateIncidents" class="caption collapser" onclick="toggleSection('i:UpdateIncidents')">Instances</p><div id="section.i:UpdateIncidents" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">FromJSON <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">QueryLike <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:updateIncidents" class="def">updateIncidents</a> :: <a href="Network-PagerDuty-Integration.html#t:RequesterId">RequesterId</a> -> <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a> s [<a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a>]</p><div class="doc"><p>Acknowledge, resolve, escalate or reassign one or more incidents.</p><pre>PUT /incidents</pre><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/incidents/update">http://developer.pagerduty.com/documentation/rest/incidents/update</a></p></div></div><div class="top"><p class="src"><a name="v:updateIncidentsBasic" class="def">updateIncidentsBasic</a> :: <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a> <a href="Network-PagerDuty-Integration.html#v:Basic">Basic</a> [<a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a>]</p><div class="doc"><p>A version of <code><a href="Network-PagerDuty-REST-Incidents.html#v:updateIncidents">updateIncidents</a></code> which uses HTTP Basic authentication and
46+ doesn't require a <code><a href="Network-PagerDuty-Integration.html#t:RequesterId">RequesterId</a></code>.</p></div></div><div class="top"><p class="src"><a name="v:uiIncidents" class="def">uiIncidents</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncidents">UpdateIncidents</a> s b) [<a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a>]</p></div><h1 id="g:5">Resolve Incident</h1><div class="top"><p class="src"><a name="v:resolveIncident" class="def">resolveIncident</a> :: <a href="Network-PagerDuty-Integration.html#t:IncidentId">IncidentId</a> -> <a href="Network-PagerDuty-Integration.html#t:RequesterId">RequesterId</a> -> <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-Integration.html#t:Empty">Empty</a> s <a href="Network-PagerDuty-Integration.html#t:Empty">Empty</a></p><div class="doc"><p>Resolve an incident.</p><pre>PUT /incidents/:id/resolve</pre><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/incidents/resolve">http://developer.pagerduty.com/documentation/rest/incidents/resolve</a></p></div></div><div class="top"><p class="src"><a name="v:resolveIncidentBasic" class="def">resolveIncidentBasic</a> :: <a href="Network-PagerDuty-Integration.html#t:IncidentId">IncidentId</a> -> <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-Integration.html#t:Empty">Empty</a> s <a href="Network-PagerDuty-Integration.html#t:Empty">Empty</a></p><div class="doc"><p>A version of <code><a href="Network-PagerDuty-REST-Incidents.html#v:resolveIncident">resolveIncident</a></code> which uses HTTP Basic authentication and
47+ doesn't require a <code><a href="Network-PagerDuty-Integration.html#t:RequesterId">RequesterId</a></code>.</p></div></div><h1 id="g:6">Acknowledge Incident</h1><div class="top"><p class="src"><a name="v:acknowledgeIncident" class="def">acknowledgeIncident</a> :: <a href="Network-PagerDuty-Integration.html#t:IncidentId">IncidentId</a> -> <a href="Network-PagerDuty-Integration.html#t:RequesterId">RequesterId</a> -> <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-Integration.html#t:Empty">Empty</a> s <a href="Network-PagerDuty-Integration.html#t:Empty">Empty</a></p><div class="doc"><p>Acknowledge an incident.</p><pre>PUT /incidents/:id/acknowledge</pre><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/incidents/acknowledge">http://developer.pagerduty.com/documentation/rest/incidents/acknowledge</a></p></div></div><div class="top"><p class="src"><a name="v:acknowledgeIncidentBasic" class="def">acknowledgeIncidentBasic</a> :: <a href="Network-PagerDuty-Integration.html#t:IncidentId">IncidentId</a> -> <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-Integration.html#t:Empty">Empty</a> s <a href="Network-PagerDuty-Integration.html#t:Empty">Empty</a></p><div class="doc"><p>A version of <code><a href="Network-PagerDuty-REST-Incidents.html#v:acknowledgeIncident">acknowledgeIncident</a></code> which uses HTTP Basic authentication and
48+ doesn't require a <code><a href="Network-PagerDuty-Integration.html#t:RequesterId">RequesterId</a></code>.</p></div></div><h1 id="g:7">Reassign Incident</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:ReassignIncident" class="def">ReassignIncident</a></p><div class="subs instances"><p id="control.i:ReassignIncident" class="caption collapser" onclick="toggleSection('i:ReassignIncident')">Instances</p><div id="section.i:ReassignIncident" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a></td><td class="doc empty"> </td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a></td><td class="doc empty"> </td></tr><tr><td class="src">FromJSON <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a></td><td class="doc empty"> </td></tr><tr><td class="src">QueryLike <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:reassignIncident" class="def">reassignIncident</a> :: <a href="Network-PagerDuty-Integration.html#t:IncidentId">IncidentId</a> -> <a href="Network-PagerDuty-Integration.html#t:RequesterId">RequesterId</a> -> <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a> s <a href="Network-PagerDuty-Integration.html#t:Empty">Empty</a></p><div class="doc"><p>Reassign an incident.</p><pre>PUT /incidents/:id/reassign</pre><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/incidents/reassign">http://developer.pagerduty.com/documentation/rest/incidents/reassign</a></p></div></div><div class="top"><p class="src"><a name="v:riEscalationPolicy" class="def">riEscalationPolicy</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Network-PagerDuty-Integration.html#t:EscalationPolicyId">EscalationPolicyId</a>)</p><div class="doc"><p>The ID of an escalation policy. Delegate the incident to this escalation
49+ policy.</p></div></div><div class="top"><p class="src"><a name="v:riEscalationLevel" class="def">riEscalationLevel</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Int.html#t:Int">Int</a>)</p><div class="doc"><p>Escalate incident to this level in the escalation policy.</p></div></div><div class="top"><p class="src"><a name="v:riAssignedToUser" class="def">riAssignedToUser</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-Incidents.html#t:ReassignIncident">ReassignIncident</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Network-PagerDuty-Integration.html#t:UserId">UserId</a>])</p><div class="doc"><p>Comma separated list of user IDs to assign this incident to.</p></div></div><h1 id="g:8">Types</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Sort" class="def">Sort</a> a</p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Desc" class="def">Desc</a> a</td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Asc" class="def">Asc</a> a</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Sort" class="caption collapser" onclick="toggleSection('i:Sort')">Instances</p><div id="section.i:Sort" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> a => <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> (<a href="Network-PagerDuty-REST-Incidents.html#t:Sort">Sort</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> a => <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> (<a href="Network-PagerDuty-REST-Incidents.html#t:Sort">Sort</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:_Desc" class="def">_Desc</a> :: <span class="keyword">forall</span> a. Prism' (<a href="Network-PagerDuty-REST-Incidents.html#t:Sort">Sort</a> a) a</p></div><div class="top"><p class="src"><a name="v:_Asc" class="def">_Asc</a> :: <span class="keyword">forall</span> a. Prism' (<a href="Network-PagerDuty-REST-Incidents.html#t:Sort">Sort</a> a) a</p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Field" class="def">Field</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:IncidentNumber" class="def">IncidentNumber</a></td><td class="doc"><p>The number of your incident.</p></td></tr><tr><td class="src"><a name="v:CreatedOn" class="def">CreatedOn</a></td><td class="doc"><p>The date/time the incident was triggered.</p></td></tr><tr><td class="src"><a name="v:ResolvedOn" class="def">ResolvedOn</a></td><td class="doc"><p>The date/time the incident was resolved.</p></td></tr></table></div><div class="subs instances"><p id="control.i:Field" class="caption collapser" onclick="toggleSection('i:Field')">Instances</p><div id="section.i:Field" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-Incidents.html#t:Field">Field</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-Incidents.html#t:Field">Field</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:IncidentStatus" class="def">IncidentStatus</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:ITriggered" class="def">ITriggered</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:IAcknowledged" class="def">IAcknowledged</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:IResolved" class="def">IResolved</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:IOther" class="def">IOther</a> Text</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:IncidentStatus" class="caption collapser" onclick="toggleSection('i:IncidentStatus')">Instances</p><div id="section.i:IncidentStatus" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a></td><td class="doc empty"> </td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a></td><td class="doc empty"> </td></tr><tr><td class="src">FromJSON <a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a></td><td class="doc empty"> </td></tr><tr><td class="src">ToByteString <a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:UpdateStatus" class="def">UpdateStatus</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:UAcknowledged" class="def">UAcknowledged</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:UResolved" class="def">UResolved</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:UpdateStatus" class="caption collapser" onclick="toggleSection('i:UpdateStatus')">Instances</p><div id="section.i:UpdateStatus" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateStatus">UpdateStatus</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateStatus">UpdateStatus</a></td><td class="doc empty"> </td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateStatus">UpdateStatus</a></td><td class="doc empty"> </td></tr><tr><td class="src">FromJSON <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateStatus">UpdateStatus</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:UpdateIncident" class="def">UpdateIncident</a></p><div class="subs instances"><p id="control.i:UpdateIncident" class="caption collapser" onclick="toggleSection('i:UpdateIncident')">Instances</p><div id="section.i:UpdateIncident" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a></td><td class="doc empty"> </td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a></td><td class="doc empty"> </td></tr><tr><td class="src">FromJSON <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:iiId" class="def">iiId</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a> <a href="Network-PagerDuty-Integration.html#t:IncidentId">IncidentId</a></p><div class="doc"><p>The id of the incident to update.</p></div></div><div class="top"><p class="src"><a name="v:iiStatus" class="def">iiStatus</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateStatus">UpdateStatus</a>)</p><div class="doc"><p>The new status of the incident.</p></div></div><div class="top"><p class="src"><a name="v:iiEscalationLevel" class="def">iiEscalationLevel</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Int.html#t:Int">Int</a>)</p><div class="doc"><p>Escalate incident to this level in the escalation policy.</p></div></div><div class="top"><p class="src"><a name="v:iiEscalationPolicy" class="def">iiEscalationPolicy</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Network-PagerDuty-Integration.html#t:EscalationPolicyId">EscalationPolicyId</a>)</p><div class="doc"><p>Delegate this incident to the specified escalation policy id.
50+ This restarts the incident's escalation following the new policy.</p></div></div><div class="top"><p class="src"><a name="v:iiAssignedToUser" class="def">iiAssignedToUser</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdateIncident">UpdateIncident</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> (CSV <a href="Network-PagerDuty-Integration.html#t:UserId">UserId</a>))</p><div class="doc"><p>List of user IDs to assign this incident to.</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:UpdatedIncidents" class="def">UpdatedIncidents</a></p><div class="subs instances"><p id="control.i:UpdatedIncidents" class="caption collapser" onclick="toggleSection('i:UpdatedIncidents')">Instances</p><div id="section.i:UpdatedIncidents" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a></td><td class="doc empty"> </td></tr><tr><td class="src">FromJSON <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:uiId" class="def">uiId</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a> <a href="Network-PagerDuty-Integration.html#t:IncidentId">IncidentId</a></p></div><div class="top"><p class="src"><a name="v:uiStatus" class="def">uiStatus</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a> <a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a></p></div><div class="top"><p class="src"><a name="v:uiIncidentNumber" class="def">uiIncidentNumber</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Int.html#t:Int">Int</a></p></div><div class="top"><p class="src"><a name="v:uiUrl" class="def">uiUrl</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a> Text</p></div><div class="top"><p class="src"><a name="v:uiError" class="def">uiError</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:UpdatedIncidents">UpdatedIncidents</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> Object)</p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Assignee" class="def">Assignee</a></p><div class="subs instances"><p id="control.i:Assignee" class="caption collapser" onclick="toggleSection('i:Assignee')">Instances</p><div id="section.i:Assignee" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a></td><td class="doc empty"> </td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a></td><td class="doc empty"> </td></tr><tr><td class="src">FromJSON <a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:aAt" class="def">aAt</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a> Date</p></div><div class="top"><p class="src"><a name="v:aObject" class="def">aObject</a> :: Lens' <a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a> Object</p></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:HasIncident" class="def">HasIncident</a> a <span class="keyword">where</span></p><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Network-PagerDuty-REST-Incidents.html#v:incident">incident</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:incident" class="def">incident</a> :: Lens' a <a href="Network-PagerDuty-REST-Incidents.html#t:Incident">Incident</a></p><p class="src"><a name="v:iIncidentNumber" class="def">iIncidentNumber</a> :: Lens' a <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Int.html#t:Int">Int</a></p><div class="doc"><p>The number of the incident. This is unique across your account.</p></div><p class="src"><a name="v:iStatus" class="def">iStatus</a> :: Lens' a <a href="Network-PagerDuty-REST-Incidents.html#t:IncidentStatus">IncidentStatus</a></p><div class="doc"><p>The current status of the incident. Valid statuses are:</p></div><p class="src"><a name="v:iCreatedOn" class="def">iCreatedOn</a> :: Lens' a UTCTime</p><div class="doc"><p>The date/time the incident was triggered.</p></div><p class="src"><a name="v:iHtmlUrl" class="def">iHtmlUrl</a> :: Lens' a Text</p><div class="doc"><p>The PagerDuty website URL where the incident can be viewed and further
51+ actions taken. This is not the resource URL.</p></div><p class="src"><a name="v:iIncidentKey" class="def">iIncidentKey</a> :: Lens' a (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Network-PagerDuty-Integration.html#t:IncidentKey">IncidentKey</a>)</p><div class="doc"><p>The incident's de-duplication key. See the PagerDuty Integration API
5252 docs for further details.</p></div><p class="src"><a name="v:iService" class="def">iService</a> :: Lens' a Object</p><div class="doc"><p>The PagerDuty service that the incident belongs to. The service will
5353 contain fields of its own.</p></div><p class="src"><a name="v:iEscalationPolicy" class="def">iEscalationPolicy</a> :: Lens' a (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> Object)</p><div class="doc"><p>The escalation policy that the incident belongs to. The policy will
5454 contain fields of its own.</p></div><p class="src"><a name="v:iAssignedTo" class="def">iAssignedTo</a> :: Lens' a [<a href="Network-PagerDuty-REST-Incidents.html#t:Assignee">Assignee</a>]</p><div class="doc"><p>The list of assignments of the incident. An assignment is an object
@@ -63,7 +63,7 @@ window.onload = function () {pageLoad();setSynopsis("mini_Network-PagerDuty-REST
6363 that took the first acknowledged or resolved action. If the incident was
6464 automatically resolved (say through the Event Integration API), or if the
6565 incident is in the triggered state, this will be null. User fields are the
66− same as in the assignedToUser field above.</p></div><p class="src"><a name="v:iLastStatusChangeOn" class="def">iLastStatusChangeOn</a> :: Lens' a (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/time-1.4.2/Data-Time-Clock.html#t:UTCTime">UTCTime</a>)</p><div class="doc"><p>The date/time the incident's status last changed.</p></div><p class="src"><a name="v:iTriggerSummaryData" class="def">iTriggerSummaryData</a> :: Lens' a Object</p><div class="doc"><p>Some condensed information regarding the initial event that triggered
66+ same as in the assignedToUser field above.</p></div><p class="src"><a name="v:iLastStatusChangeOn" class="def">iLastStatusChangeOn</a> :: Lens' a (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.1/Data-Maybe.html#t:Maybe">Maybe</a> UTCTime)</p><div class="doc"><p>The date/time the incident's status last changed.</p></div><p class="src"><a name="v:iTriggerSummaryData" class="def">iTriggerSummaryData</a> :: Lens' a Object</p><div class="doc"><p>Some condensed information regarding the initial event that triggered
6767 this incident. This data will be a set of key/value pairs that vary depending
6868 on what sort of event triggered the incident (email, Event API request,
6969 etc). For instance, if an email triggered the incident, then the