Maintenance windows
Planned work. While a window runs, alerts on what it covers are muted, and failed checks don't count as downtime by default. Alerts still firing when it ends start their escalation then.
List maintenance windows
Returns the team's windows, newest first.
query Parameters
pagePage number, from 1.
per_pageWindows per page, 1 to 100.
List maintenance windows › Responses
Paginated set of MaintenanceWindow
current_pagefirst_page_urlfromlast_page_urllast_pageGenerated paginator links.
next_page_urlpathBase path for paginator generated URLs.
per_pageNumber of items shown per page.
prev_page_urltoNumber of the last item in the slice.
totalTotal number of items being paginated.
Create a maintenance window
One-off with starts_at and ends_at, or weekly with schedule. Targets must belong to the
team (422 otherwise).
Create a maintenance window › Request Body
nameName, up to 255 characters
reasonWhy, for the team; up to 500 characters
starts_atA one-off window's start
ends_atA one-off window's end, after starts_at and in the future
repeat_untilA weekly window's last date, in its time zone
covers_everythingtrue: covers everything in the team. Default false
exclude_from_uptimefalse: failed checks during the window count as downtime. Default true
What it covers, at most 200, from the team. Required unless covers_everything is true
Create a maintenance window › Responses
The new window.
idWindow ID
nameName
reasonWhy, for the team; null for none
starts_atA one-off window's start; null for a weekly window
ends_atA one-off window's end; null for a weekly window
repeat_untilA weekly window's last date, in its time zone; null for no last date
covers_everythingtrue: covers everything in the team, and targets is ignored
exclude_from_uptimetrue: failed checks during the window don't count as downtime
activetrue while it runs
paused_atWhen it was paused; null if it isn't. A paused window covers nothing
next_start_atWhen the current or next occurrence starts; null when none is to come
current_end_atWhen the running occurrence ends; null when it isn't running
What it covers
created_atWhen it was created
Get a maintenance window
Returns the window with what it covers, whether it runs now and when it next starts.
path Parameters
maintenanceWindowWindow ID.
Get a maintenance window › Responses
The window.
idWindow ID
nameName
reasonWhy, for the team; null for none
starts_atA one-off window's start; null for a weekly window
ends_atA one-off window's end; null for a weekly window
repeat_untilA weekly window's last date, in its time zone; null for no last date
covers_everythingtrue: covers everything in the team, and targets is ignored
exclude_from_uptimetrue: failed checks during the window don't count as downtime
activetrue while it runs
paused_atWhen it was paused; null if it isn't. A paused window covers nothing
next_start_atWhen the current or next occurrence starts; null when none is to come
current_end_atWhen the running occurrence ends; null when it isn't running
What it covers
created_atWhen it was created
Update a maintenance window
Changes only the fields you send. Moving ends_at extends or shortens a running window.
path Parameters
maintenanceWindowWindow ID.
Update a maintenance window › Request Body
nameName, up to 255 characters
reasonWhy, for the team; up to 500 characters
starts_atA one-off window's start
ends_atA one-off window's end, in the future. Move it to extend a running window
repeat_untilA weekly window's last date, in its time zone
covers_everythingtrue: covers everything in the team
exclude_from_uptimefalse: failed checks during the window count as downtime
What it covers, at most 200, from the team; replaces the current list
Update a maintenance window › Responses
The updated window.
idWindow ID
nameName
reasonWhy, for the team; null for none
starts_atA one-off window's start; null for a weekly window
ends_atA one-off window's end; null for a weekly window
repeat_untilA weekly window's last date, in its time zone; null for no last date
covers_everythingtrue: covers everything in the team, and targets is ignored
exclude_from_uptimetrue: failed checks during the window don't count as downtime
activetrue while it runs
paused_atWhen it was paused; null if it isn't. A paused window covers nothing
next_start_atWhen the current or next occurrence starts; null when none is to come
current_end_atWhen the running occurrence ends; null when it isn't running
What it covers
created_atWhen it was created
End a maintenance window now
A one-off window ends. A weekly window skips this occurrence and runs again next time. Muted alerts that still fire start their escalation within a minute.
path Parameters
maintenanceWindowWindow ID.
End a maintenance window now › Responses
The window.
idWindow ID
nameName
reasonWhy, for the team; null for none
starts_atA one-off window's start; null for a weekly window
ends_atA one-off window's end; null for a weekly window
repeat_untilA weekly window's last date, in its time zone; null for no last date
covers_everythingtrue: covers everything in the team, and targets is ignored
exclude_from_uptimetrue: failed checks during the window don't count as downtime
activetrue while it runs
paused_atWhen it was paused; null if it isn't. A paused window covers nothing
next_start_atWhen the current or next occurrence starts; null when none is to come
current_end_atWhen the running occurrence ends; null when it isn't running
What it covers
created_atWhen it was created
Pause a maintenance window
It covers nothing until you resume it. For a weekly window this stops the whole schedule.
path Parameters
maintenanceWindowWindow ID.
Pause a maintenance window › Responses
The window.
idWindow ID
nameName
reasonWhy, for the team; null for none
starts_atA one-off window's start; null for a weekly window
ends_atA one-off window's end; null for a weekly window
repeat_untilA weekly window's last date, in its time zone; null for no last date
covers_everythingtrue: covers everything in the team, and targets is ignored
exclude_from_uptimetrue: failed checks during the window don't count as downtime
activetrue while it runs
paused_atWhen it was paused; null if it isn't. A paused window covers nothing
next_start_atWhen the current or next occurrence starts; null when none is to come
current_end_atWhen the running occurrence ends; null when it isn't running
What it covers
created_atWhen it was created
Resume a maintenance window
It covers what it did before. A one-off window whose time has passed stays over.
path Parameters
maintenanceWindowWindow ID.
Resume a maintenance window › Responses
The window.
idWindow ID
nameName
reasonWhy, for the team; null for none
starts_atA one-off window's start; null for a weekly window
ends_atA one-off window's end; null for a weekly window
repeat_untilA weekly window's last date, in its time zone; null for no last date
covers_everythingtrue: covers everything in the team, and targets is ignored
exclude_from_uptimetrue: failed checks during the window don't count as downtime
activetrue while it runs
paused_atWhen it was paused; null if it isn't. A paused window covers nothing
next_start_atWhen the current or next occurrence starts; null when none is to come
current_end_atWhen the running occurrence ends; null when it isn't running
What it covers
created_atWhen it was created