Delete Downtime

The Delete Downtime API removes downtime details of monitors and monitor groups.

Syntax:

http://[Host]:[Port]/AppManager/xml/deleteDowntime?apikey=[APIKEY]&resourceid=[RESOURCEID]&fromInMillis=[FROM TIME IN MILLISECONDS]&toInMillis=[TO TIME IN MILLISECONDS]

Request Parameters:

The parameters involved in the API request are described below. Also, refer the list of common Request Parameters.

FieldDescription
resourceid          The resource Id of the monitor whose downtime is to be deleted.
from                The time from when the downtime should be removed. It can be found under the From column on the window that pops up when the  availability chart of the monitor is clicked.
fromInMillis        The From time in Milliseconds.
to      The time till when the downtime should be removed.  It can be found under the To column on the window that pops up when the  availability chart of the monitor is clicked.
toInMillis          The To time in milliseconds.

Sample Request:

http://localhost:7000/AppManager/xml/deleteDowntime?apikey=3c7f392cf8eab16be37cfaf11d1e1fba&resourceid=10000280&from=Jul 10, 2018 12:00:00 AM&to=Jul 10, 2018 10:12:24 AM
http://localhost:7000/AppManager/xml/deleteDowntime?apikey=3c7f392cf8eab16be37cfaf11d1e1fba&resourceid=10000280&fromInMillis=1531161000000&toInMillis=1531197743753