git.iko.soy/typeable/pagerduty
on gh-pages help sign in
typeable/pagerduty/Network-PagerDuty-REST-MaintenanceWindows.html
21 lines 37 kB history raw
1<!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.MaintenanceWindows</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[
2window.onload = function () {pageLoad();setSynopsis("mini_Network-PagerDuty-REST-MaintenanceWindows.html");};
3//]]>
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.1.1: 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.MaintenanceWindows</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">List Windows</a></li><li><a href="#g:2">Create Window</a></li><li><a href="#g:3">Get Window</a></li><li><a href="#g:4">Update Window</a></li><li><a href="#g:5">Delete Window</a></li><li><a href="#g:6">Types</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Maintenance windows allow you to schedule service maintenance periods,
5 during which no incidents will be created.</p><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/maintenance_windows">http://developer.pagerduty.com/documentation/rest/maintenance_windows</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:ListWindows">ListWindows</a></li><li class="src short"><a href="#v:listWindows">listWindows</a> :: <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindows">ListWindows</a> s <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindowsResponse">ListWindowsResponse</a></li><li class="src short"><a href="#v:lwQuery">lwQuery</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindows">ListWindows</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Maybe.html#t:Maybe">Maybe</a> Text)</li><li class="src short"><a href="#v:lwServiceIds">lwServiceIds</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindows">ListWindows</a> s b) [<a href="Network-PagerDuty-Integration.html#t:ServiceId">ServiceId</a>]</li><li class="src short"><a href="#v:lwFilter">lwFilter</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindows">ListWindows</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Maybe.html#t:Maybe">Maybe</a> Text)</li><li class="src short"><span class="keyword">data</span> <a href="#t:ListWindowsResponse">ListWindowsResponse</a></li><li class="src short"><a href="#v:lwMaintenanceWindows">lwMaintenanceWindows</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindowsResponse">ListWindowsResponse</a> [<a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a>]</li><li class="src short"><a href="#v:lwCounts">lwCounts</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindowsResponse">ListWindowsResponse</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:Counts">Counts</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:CreateWindow">CreateWindow</a></li><li class="src short"><a href="#v:createWindow">createWindow</a> :: <a href="Network-PagerDuty-Integration.html#t:RequesterId">RequesterId</a> -&gt; UTCTime -&gt; UTCTime -&gt; [<a href="Network-PagerDuty-Integration.html#t:ServiceId">ServiceId</a>] -&gt; <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:CreateWindow">CreateWindow</a> s <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a></li><li class="src short"><a href="#v:createWindowBasic">createWindowBasic</a> :: UTCTime -&gt; UTCTime -&gt; [<a href="Network-PagerDuty-Integration.html#t:ServiceId">ServiceId</a>] -&gt; <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:CreateWindow">CreateWindow</a> <a href="Network-PagerDuty-Integration.html#v:Basic">Basic</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a></li><li class="src short"><a href="#v:cwStartTime">cwStartTime</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:CreateWindow">CreateWindow</a> s b) UTCTime</li><li class="src short"><a href="#v:cwEndTime">cwEndTime</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:CreateWindow">CreateWindow</a> s b) UTCTime</li><li class="src short"><a href="#v:cwDescription">cwDescription</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:CreateWindow">CreateWindow</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Maybe.html#t:Maybe">Maybe</a> Text)</li><li class="src short"><a href="#v:cwServiceIds">cwServiceIds</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:CreateWindow">CreateWindow</a> s b) [<a href="Network-PagerDuty-Integration.html#t:ServiceId">ServiceId</a>]</li><li class="src short"><a href="#v:getWindow">getWindow</a> :: <a href="Network-PagerDuty-Integration.html#t:WindowId">WindowId</a> -&gt; <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-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:UpdateWindow">UpdateWindow</a></li><li class="src short"><a href="#v:updateWindow">updateWindow</a> :: <a href="Network-PagerDuty-Integration.html#t:WindowId">WindowId</a> -&gt; <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:UpdateWindow">UpdateWindow</a> s <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a></li><li class="src short"><a href="#v:uwStartTime">uwStartTime</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:UpdateWindow">UpdateWindow</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Maybe.html#t:Maybe">Maybe</a> Date)</li><li class="src short"><a href="#v:uwEndTime">uwEndTime</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:UpdateWindow">UpdateWindow</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Maybe.html#t:Maybe">Maybe</a> Date)</li><li class="src short"><a href="#v:uwDescription">uwDescription</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:UpdateWindow">UpdateWindow</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Maybe.html#t:Maybe">Maybe</a> Text)</li><li class="src short"><a href="#v:uwServiceIds">uwServiceIds</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:UpdateWindow">UpdateWindow</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/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:deleteWindow">deleteWindow</a> :: <a href="Network-PagerDuty-Integration.html#t:WindowId">WindowId</a> -&gt; <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:ServiceInfo">ServiceInfo</a></li><li class="src short"><a href="#v:siId">siId</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ServiceInfo">ServiceInfo</a> <a href="Network-PagerDuty-Integration.html#t:ServiceId">ServiceId</a></li><li class="src short"><a href="#v:siName">siName</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ServiceInfo">ServiceInfo</a> Text</li><li class="src short"><a href="#v:siUrl">siUrl</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ServiceInfo">ServiceInfo</a> Text</li><li class="src short"><span class="keyword">data</span> <a href="#t:Counts">Counts</a></li><li class="src short"><a href="#v:cOngoing">cOngoing</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:Counts">Counts</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:cFuture">cFuture</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:Counts">Counts</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:cPast">cPast</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:Counts">Counts</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:cAll">cAll</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:Counts">Counts</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Int.html#t:Int">Int</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:MaintenanceWindow">MaintenanceWindow</a></li><li class="src short"><a href="#v:mwSequenceNumber">mwSequenceNumber</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:mwStartTime">mwStartTime</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a> Date</li><li class="src short"><a href="#v:mwEndTime">mwEndTime</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a> Date</li><li class="src short"><a href="#v:mwDescription">mwDescription</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Maybe.html#t:Maybe">Maybe</a> Text)</li><li class="src short"><a href="#v:mwCreatedBy">mwCreatedBy</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a> <a href="Network-PagerDuty-REST-Users.html#t:User">User</a></li><li class="src short"><a href="#v:mwServices">mwServices</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a> [<a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ServiceInfo">ServiceInfo</a>]</li></ul></div><div id="interface"><h1 id="g:1">List Windows</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:ListWindows" class="def">ListWindows</a></p><div class="subs instances"><p id="control.i:ListWindows" class="caption collapser" onclick="toggleSection('i:ListWindows')">Instances</p><div id="section.i:ListWindows" class="show"><table><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindows">ListWindows</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">HasDatatypeInfo <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindows">ListWindows</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">Generic <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindows">ListWindows</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">QueryLike <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindows">ListWindows</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><span class="keyword">type</span> Code <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindows">ListWindows</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:listWindows" class="def">listWindows</a> :: <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindows">ListWindows</a> s <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindowsResponse">ListWindowsResponse</a></p><div class="doc"><p>List existing maintenance windows, optionally filtered by service,
6 or whether they are from the past, present or future.</p><pre>GET /maintenance_windows</pre><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/maintenance_windows/list">http://developer.pagerduty.com/documentation/rest/maintenance_windows/list</a></p></div></div><div class="top"><p class="src"><a name="v:lwQuery" class="def">lwQuery</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindows">ListWindows</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Maybe.html#t:Maybe">Maybe</a> Text)</p><div class="doc"><p>Filters the results, showing only the maintenance windows whose
7 descriptions contain the query.</p></div></div><div class="top"><p class="src"><a name="v:lwServiceIds" class="def">lwServiceIds</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindows">ListWindows</a> s b) [<a href="Network-PagerDuty-Integration.html#t:ServiceId">ServiceId</a>]</p><div class="doc"><p>An list of service IDs, specifying services whose maintenance
8 windows shall be returned.</p></div></div><div class="top"><p class="src"><a name="v:lwFilter" class="def">lwFilter</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindows">ListWindows</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Maybe.html#t:Maybe">Maybe</a> Text)</p><div class="doc"><p>Only return maintenance windows that are of this type. Possible values
9 are past, future, ongoing. If this parameter is omitted, all maintenance
10 windows will be returned.</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:ListWindowsResponse" class="def">ListWindowsResponse</a></p><div class="subs instances"><p id="control.i:ListWindowsResponse" class="caption collapser" onclick="toggleSection('i:ListWindowsResponse')">Instances</p><div id="section.i:ListWindowsResponse" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindowsResponse">ListWindowsResponse</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindowsResponse">ListWindowsResponse</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindowsResponse">ListWindowsResponse</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">FromJSON <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindowsResponse">ListWindowsResponse</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:lwMaintenanceWindows" class="def">lwMaintenanceWindows</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindowsResponse">ListWindowsResponse</a> [<a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a>]</p></div><div class="top"><p class="src"><a name="v:lwCounts" class="def">lwCounts</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ListWindowsResponse">ListWindowsResponse</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:Counts">Counts</a></p></div><h1 id="g:2">Create Window</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:CreateWindow" class="def">CreateWindow</a></p><div class="subs instances"><p id="control.i:CreateWindow" class="caption collapser" onclick="toggleSection('i:CreateWindow')">Instances</p><div id="section.i:CreateWindow" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:CreateWindow">CreateWindow</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:CreateWindow">CreateWindow</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:CreateWindow">CreateWindow</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">FromJSON <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:CreateWindow">CreateWindow</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">QueryLike <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:CreateWindow">CreateWindow</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:createWindow" class="def">createWindow</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Network-PagerDuty-Integration.html#t:RequesterId">RequesterId</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; UTCTime</td><td class="doc"><p><code><a href="Network-PagerDuty-REST-MaintenanceWindows.html#v:cwStartTime">cwStartTime</a></code></p></td></tr><tr><td class="src">-&gt; UTCTime</td><td class="doc"><p><code><a href="Network-PagerDuty-REST-MaintenanceWindows.html#v:cwEndTime">cwEndTime</a></code></p></td></tr><tr><td class="src">-&gt; [<a href="Network-PagerDuty-Integration.html#t:ServiceId">ServiceId</a>]</td><td class="doc"><p><code><a href="Network-PagerDuty-REST-MaintenanceWindows.html#v:cwServiceIds">cwServiceIds</a></code></p></td></tr><tr><td class="src">-&gt; <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:CreateWindow">CreateWindow</a> s <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Create a new maintenance window for the specified services. No new
11 incidents will be created for a service that is currently in maintenance.</p><pre>POST /maintenance_windows</pre><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/maintenance_windows/create">http://developer.pagerduty.com/documentation/rest/maintenance_windows/create</a></p></div></div><div class="top"><p class="src"><a name="v:createWindowBasic" class="def">createWindowBasic</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: UTCTime</td><td class="doc"><p><code><a href="Network-PagerDuty-REST-MaintenanceWindows.html#v:cwStartTime">cwStartTime</a></code></p></td></tr><tr><td class="src">-&gt; UTCTime</td><td class="doc"><p><code><a href="Network-PagerDuty-REST-MaintenanceWindows.html#v:cwEndTime">cwEndTime</a></code></p></td></tr><tr><td class="src">-&gt; [<a href="Network-PagerDuty-Integration.html#t:ServiceId">ServiceId</a>]</td><td class="doc"><p><code><a href="Network-PagerDuty-REST-MaintenanceWindows.html#v:cwServiceIds">cwServiceIds</a></code></p></td></tr><tr><td class="src">-&gt; <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:CreateWindow">CreateWindow</a> <a href="Network-PagerDuty-Integration.html#v:Basic">Basic</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>A version of <code><a href="Network-PagerDuty-REST-MaintenanceWindows.html#v:createWindow">createWindow</a></code> which uses HTTP Basic authentication and
12 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:cwStartTime" class="def">cwStartTime</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:CreateWindow">CreateWindow</a> s b) UTCTime</p><div class="doc"><p>This maintenance window's start time. This is when the services will stop
13 creating incidents. If this date is in the past, it will be updated to be the
14 current time.</p></div></div><div class="top"><p class="src"><a name="v:cwEndTime" class="def">cwEndTime</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:CreateWindow">CreateWindow</a> s b) UTCTime</p><div class="doc"><p>This maintenance window's end time. This is when the services will start
15 creating incidents again. This date must be in the future and after the
16 start_time.</p></div></div><div class="top"><p class="src"><a name="v:cwDescription" class="def">cwDescription</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:CreateWindow">CreateWindow</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Maybe.html#t:Maybe">Maybe</a> Text)</p><div class="doc"><p>A description for this maintenance window.</p></div></div><div class="top"><p class="src"><a name="v:cwServiceIds" class="def">cwServiceIds</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:CreateWindow">CreateWindow</a> s b) [<a href="Network-PagerDuty-Integration.html#t:ServiceId">ServiceId</a>]</p><div class="doc"><p>The ids of the services that are affected by this maintenance window.</p></div></div><h1 id="g:3">Get Window</h1><div class="top"><p class="src"><a name="v:getWindow" class="def">getWindow</a> :: <a href="Network-PagerDuty-Integration.html#t:WindowId">WindowId</a> -&gt; <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-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a></p><div class="doc"><p>Get details about an existing maintenance window.</p><pre>GET /maintenance_windows/:id</pre><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/maintenance_windows/show">http://developer.pagerduty.com/documentation/rest/maintenance_windows/show</a></p></div></div><h1 id="g:4">Update Window</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:UpdateWindow" class="def">UpdateWindow</a></p><div class="subs instances"><p id="control.i:UpdateWindow" class="caption collapser" onclick="toggleSection('i:UpdateWindow')">Instances</p><div id="section.i:UpdateWindow" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:UpdateWindow">UpdateWindow</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:UpdateWindow">UpdateWindow</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:UpdateWindow">UpdateWindow</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">FromJSON <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:UpdateWindow">UpdateWindow</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">QueryLike <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:UpdateWindow">UpdateWindow</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:updateWindow" class="def">updateWindow</a> :: <a href="Network-PagerDuty-Integration.html#t:WindowId">WindowId</a> -&gt; <a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:UpdateWindow">UpdateWindow</a> s <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a></p><div class="doc"><p>Update an existing maintenance window.</p><pre>PUT /maintenance_windows/:id</pre><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/maintenance_windows/update">http://developer.pagerduty.com/documentation/rest/maintenance_windows/update</a></p></div></div><div class="top"><p class="src"><a name="v:uwStartTime" class="def">uwStartTime</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:UpdateWindow">UpdateWindow</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Maybe.html#t:Maybe">Maybe</a> Date)</p><div class="doc"><p>The maintenance window's start time. Can only be updated on future
17 maintenance windows. If the start_time is set to a date in the past, it will be
18 updated to the current date.</p></div></div><div class="top"><p class="src"><a name="v:uwEndTime" class="def">uwEndTime</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:UpdateWindow">UpdateWindow</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Maybe.html#t:Maybe">Maybe</a> Date)</p><div class="doc"><p>The maintenance window's end time. Can only be updated on ongoing and
19 future maintenance windows, and cannot be set to a value before start_time.</p></div></div><div class="top"><p class="src"><a name="v:uwDescription" class="def">uwDescription</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:UpdateWindow">UpdateWindow</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Maybe.html#t:Maybe">Maybe</a> Text)</p><div class="doc"><p>Description for this maintenance window. Can only be updated on ongoing
20 and future maintenance windows.</p></div></div><div class="top"><p class="src"><a name="v:uwServiceIds" class="def">uwServiceIds</a> :: Lens' (<a href="Network-PagerDuty-Integration.html#t:Request">Request</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:UpdateWindow">UpdateWindow</a> s b) (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Network-PagerDuty-Integration.html#t:ServiceId">ServiceId</a>])</p><div class="doc"><p>Services that are affected by this maintenance window. Can only be updated
21 on future maintenance windows.</p></div></div><h1 id="g:5">Delete Window</h1><div class="top"><p class="src"><a name="v:deleteWindow" class="def">deleteWindow</a> :: <a href="Network-PagerDuty-Integration.html#t:WindowId">WindowId</a> -&gt; <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>Cancel or delete an existing maintenance window.</p><pre>DELETE /maintenance_windows/:id</pre><p><em>See:</em> <a href="http://developer.pagerduty.com/documentation/rest/maintenance_windows/delete">http://developer.pagerduty.com/documentation/rest/maintenance_windows/delete</a></p></div></div><h1 id="g:6">Types</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:ServiceInfo" class="def">ServiceInfo</a></p><div class="subs instances"><p id="control.i:ServiceInfo" class="caption collapser" onclick="toggleSection('i:ServiceInfo')">Instances</p><div id="section.i:ServiceInfo" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ServiceInfo">ServiceInfo</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ServiceInfo">ServiceInfo</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ServiceInfo">ServiceInfo</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">FromJSON <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ServiceInfo">ServiceInfo</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:siId" class="def">siId</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ServiceInfo">ServiceInfo</a> <a href="Network-PagerDuty-Integration.html#t:ServiceId">ServiceId</a></p></div><div class="top"><p class="src"><a name="v:siName" class="def">siName</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ServiceInfo">ServiceInfo</a> Text</p></div><div class="top"><p class="src"><a name="v:siUrl" class="def">siUrl</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ServiceInfo">ServiceInfo</a> Text</p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Counts" class="def">Counts</a></p><div class="subs instances"><p id="control.i:Counts" class="caption collapser" onclick="toggleSection('i:Counts')">Instances</p><div id="section.i:Counts" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:Counts">Counts</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:Counts">Counts</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:Counts">Counts</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">FromJSON <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:Counts">Counts</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:cOngoing" class="def">cOngoing</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:Counts">Counts</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Int.html#t:Int">Int</a></p></div><div class="top"><p class="src"><a name="v:cFuture" class="def">cFuture</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:Counts">Counts</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Int.html#t:Int">Int</a></p></div><div class="top"><p class="src"><a name="v:cPast" class="def">cPast</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:Counts">Counts</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Int.html#t:Int">Int</a></p></div><div class="top"><p class="src"><a name="v:cAll" class="def">cAll</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:Counts">Counts</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Int.html#t:Int">Int</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:MaintenanceWindow" class="def">MaintenanceWindow</a></p><div class="subs instances"><p id="control.i:MaintenanceWindow" class="caption collapser" onclick="toggleSection('i:MaintenanceWindow')">Instances</p><div id="section.i:MaintenanceWindow" class="show"><table><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Eq.html#t:Eq">Eq</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Text-Show.html#t:Show">Show</a> <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">ToJSON <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">FromJSON <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:mwSequenceNumber" class="def">mwSequenceNumber</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a> <a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Int.html#t:Int">Int</a></p></div><div class="top"><p class="src"><a name="v:mwStartTime" class="def">mwStartTime</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a> Date</p></div><div class="top"><p class="src"><a name="v:mwEndTime" class="def">mwEndTime</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a> Date</p></div><div class="top"><p class="src"><a name="v:mwDescription" class="def">mwDescription</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a> (<a href="file:///Users/brendanhay/ghc/share/doc/ghc/html/libraries/base-4.7.0.2/Data-Maybe.html#t:Maybe">Maybe</a> Text)</p></div><div class="top"><p class="src"><a name="v:mwCreatedBy" class="def">mwCreatedBy</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a> <a href="Network-PagerDuty-REST-Users.html#t:User">User</a></p></div><div class="top"><p class="src"><a name="v:mwServices" class="def">mwServices</a> :: Lens' <a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:MaintenanceWindow">MaintenanceWindow</a> [<a href="Network-PagerDuty-REST-MaintenanceWindows.html#t:ServiceInfo">ServiceInfo</a>]</p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.14.3</p></div></body></html>