API to recreate an outage

API to recreate an outage

In cases where an outage is not reported or it has been accidentally deleted, you can recreate it using the following API:
    -X PUT \
    -H "Content-Type: application/json;charset=UTF-8" \
    -H "Accept: application/json; version=2.0" \
    -H "Authorization: Zoho-authtoken <authtoken>" \
    -d '{
          "start_time": "2017-10-04T14:48:36+0530",
          "end_time": "2017-03-24T14:55:47+0530",
          "reason": "Unable to connect to http://mpeproc.gov.in.%26quot%3B/
        }'
Note:
  • To generate the <authtoken>, log in to Site24x7 and go to Admin > Developer > API > access the URL given.
  • Copy the <monitor_ID> from the Site24x7 web client page URL. Eg: https://www.site24x7.com/app/demo#/server/SERVER/15698000078729003/Device
  • Ensure the time entered is in the ISO format.


    • Related Articles

    • How to download the saved search data using API

      Use the below API to download saved search data in CSV or JSON format: https://www.site24x7.com/api/applog/saved_searches/download/<search_id>/<from_date>/<to_date>?data_format=json&range=1-100&order=desc The following are the field values passed to ...
    • How do I generate the Meraki REST API key?

      To discover and monitor Meraki organizations and devices in Site24x7, obtain an API key by following the steps below:   Open your Cisco Meraki dashboard. Once logged in, navigate to Organizations > Settings. Ensure the option Enable access to the ...
    • Site24x7's intelligent polling logic during Monitor outage

      For Internet service monitors, all paid plans, excluding the Enterprise plans allows you to monitor your websites from 8 test locations (1 primary and 7 secondary locations). For Enterprise plans, monitoring can be performed from up to 16 locations. ...
    • Possible outage scenarios and their troubleshooting steps for a server monitor

      The following table list the possible outage scenarios and steps to resolve them: Possible Scenarios Troubleshooting Steps The server was never up since installing the agent. Try using a proxy to connect to the internet. Learn how to set a proxy for ...
    • Customize URL names using PHP agent API

      With APM Insight PHP agent, you can customize URL names for your web transactions.  Here's how you can do it: Open the PHP script of the transaction for which you want to customize the URL. Add the following snippet in any part of the PHP script ...