Safe Haskell | None |
---|---|
Language | Haskell2010 |
Maintenance windows allow you to schedule service maintenance periods, during which no incidents will be created.
See: http://developer.pagerduty.com/documentation/rest/maintenance_windows
- data ListWindows
- listWindows :: Request ListWindows s ListWindowsResponse
- lwQuery :: Lens' (Request ListWindows s b) (Maybe Text)
- lwServiceIds :: Lens' (Request ListWindows s b) [ServiceId]
- lwFilter :: Lens' (Request ListWindows s b) (Maybe Text)
- data ListWindowsResponse
- lwMaintenanceWindows :: Lens' ListWindowsResponse [MaintenanceWindow]
- lwCounts :: Lens' ListWindowsResponse Counts
- data CreateWindow
- createWindow :: RequesterId -> UTCTime -> UTCTime -> [ServiceId] -> Request CreateWindow s MaintenanceWindow
- createWindowBasic :: UTCTime -> UTCTime -> [ServiceId] -> Request CreateWindow Basic MaintenanceWindow
- cwStartTime :: Lens' (Request CreateWindow s b) UTCTime
- cwEndTime :: Lens' (Request CreateWindow s b) UTCTime
- cwDescription :: Lens' (Request CreateWindow s b) (Maybe Text)
- cwServiceIds :: Lens' (Request CreateWindow s b) [ServiceId]
- getWindow :: WindowId -> Request Empty s MaintenanceWindow
- data UpdateWindow
- updateWindow :: WindowId -> Request UpdateWindow s MaintenanceWindow
- uwStartTime :: Lens' (Request UpdateWindow s b) (Maybe Date)
- uwEndTime :: Lens' (Request UpdateWindow s b) (Maybe Date)
- uwDescription :: Lens' (Request UpdateWindow s b) (Maybe Text)
- uwServiceIds :: Lens' (Request UpdateWindow s b) (Maybe [ServiceId])
- deleteWindow :: WindowId -> Request Empty s Empty
- data ServiceInfo
- siId :: Lens' ServiceInfo ServiceId
- siName :: Lens' ServiceInfo Text
- siUrl :: Lens' ServiceInfo Text
- data Counts
- cOngoing :: Lens' Counts Int
- cFuture :: Lens' Counts Int
- cPast :: Lens' Counts Int
- cAll :: Lens' Counts Int
- data MaintenanceWindow
- mwSequenceNumber :: Lens' MaintenanceWindow Int
- mwStartTime :: Lens' MaintenanceWindow Date
- mwEndTime :: Lens' MaintenanceWindow Date
- mwDescription :: Lens' MaintenanceWindow (Maybe Text)
- mwCreatedBy :: Lens' MaintenanceWindow User
- mwServices :: Lens' MaintenanceWindow [ServiceInfo]
List Windows
data ListWindows Source
listWindows :: Request ListWindows s ListWindowsResponse Source
List existing maintenance windows, optionally filtered by service, or whether they are from the past, present or future.
GET /maintenance_windows
See: http://developer.pagerduty.com/documentation/rest/maintenance_windows/list
lwQuery :: Lens' (Request ListWindows s b) (Maybe Text) Source
Filters the results, showing only the maintenance windows whose descriptions contain the query.
lwServiceIds :: Lens' (Request ListWindows s b) [ServiceId] Source
An list of service IDs, specifying services whose maintenance windows shall be returned.
lwFilter :: Lens' (Request ListWindows s b) (Maybe Text) Source
Only return maintenance windows that are of this type. Possible values are past, future, ongoing. If this parameter is omitted, all maintenance windows will be returned.
Create Window
data CreateWindow Source
:: RequesterId | |
-> UTCTime | |
-> UTCTime | |
-> [ServiceId] | |
-> Request CreateWindow s MaintenanceWindow |
Create a new maintenance window for the specified services. No new incidents will be created for a service that is currently in maintenance.
POST /maintenance_windows
See: http://developer.pagerduty.com/documentation/rest/maintenance_windows/create
:: UTCTime | |
-> UTCTime | |
-> [ServiceId] | |
-> Request CreateWindow Basic MaintenanceWindow |
A version of createWindow
which uses HTTP Basic authentication and
doesn't require a RequesterId
.
cwStartTime :: Lens' (Request CreateWindow s b) UTCTime Source
This maintenance window's start time. This is when the services will stop creating incidents. If this date is in the past, it will be updated to be the current time.
cwEndTime :: Lens' (Request CreateWindow s b) UTCTime Source
This maintenance window's end time. This is when the services will start creating incidents again. This date must be in the future and after the start_time.
cwDescription :: Lens' (Request CreateWindow s b) (Maybe Text) Source
A description for this maintenance window.
cwServiceIds :: Lens' (Request CreateWindow s b) [ServiceId] Source
The ids of the services that are affected by this maintenance window.
Get Window
getWindow :: WindowId -> Request Empty s MaintenanceWindow Source
Get details about an existing maintenance window.
GET /maintenance_windows/:id
See: http://developer.pagerduty.com/documentation/rest/maintenance_windows/show
Update Window
data UpdateWindow Source
updateWindow :: WindowId -> Request UpdateWindow s MaintenanceWindow Source
Update an existing maintenance window.
PUT /maintenance_windows/:id
See: http://developer.pagerduty.com/documentation/rest/maintenance_windows/update
uwStartTime :: Lens' (Request UpdateWindow s b) (Maybe Date) Source
The maintenance window's start time. Can only be updated on future maintenance windows. If the start_time is set to a date in the past, it will be updated to the current date.
uwEndTime :: Lens' (Request UpdateWindow s b) (Maybe Date) Source
The maintenance window's end time. Can only be updated on ongoing and future maintenance windows, and cannot be set to a value before start_time.
uwDescription :: Lens' (Request UpdateWindow s b) (Maybe Text) Source
Description for this maintenance window. Can only be updated on ongoing and future maintenance windows.
uwServiceIds :: Lens' (Request UpdateWindow s b) (Maybe [ServiceId]) Source
Services that are affected by this maintenance window. Can only be updated on future maintenance windows.
Delete Window
deleteWindow :: WindowId -> Request Empty s Empty Source
Cancel or delete an existing maintenance window.
DELETE /maintenance_windows/:id
See: http://developer.pagerduty.com/documentation/rest/maintenance_windows/delete
Types
data MaintenanceWindow Source
mwStartTime :: Lens' MaintenanceWindow Date Source
mwEndTime :: Lens' MaintenanceWindow Date Source