Delete Downtime


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

Syntax

https://[HOST]:[PORT]/AppManager/xml/deleteDowntime?apikey=[APIKEY]&resourceid=[RESOURCEID]&fromInMillis=[FROM TIME IN MILLISECONDS]&toInMillis=[TO TIME IN MILLISECONDS]

Supported HTTP methods: POST

Allowed roles: Administrator

Request Parameters

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

Field Description
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

  • https://apm-prod-server:8443/AppManager/xml/deleteDowntime?apikey=aaaaaabbbbbbccccccddddddeeeeee&resourceid=10000280&from=Jul 10, 2018 12:00:00 AM&to=Jul 10, 2018 10:12:24 AM
  • https://apm-prod-server:8443/AppManager/xml/deleteDowntime?apikey=aaaaaabbbbbbccccccddddddeeeeee&resourceid=10000280&fromInMillis=1531161000000&toInMillis=1531197743753