Each of the API commands described here relate to retrieving, editing, and deleting the Issues that have occurred on your site.
There are four kinds of issues, those created by system alerts(RevealCloud), those created by website alerts(RevealUptime), those created by custom metrics(RevealMetrics) and those created for AWS services.
Each issue is completely described by an Issue hash.
The Issue Hash
The JSON-encoded Issue Hash is shown in the following system alert example:
Index
Retrieve all existing Issues at your site (in batches of 100 max).
CURL Command, and variations:
where
per_page = No. of issues to be fetched in a page (in one call). Maximum is 100.
page_number = Number of the batch to be fetched. By default, it is 1.
begin_time = The time in seconds from 1st Jan 1970 till the lower limit of required date.
end_time = The time in seconds from 1st Jan 1970 till the upper limit of required date.
If begin_time and end_time are not specified, it fetches the all the issues for the site and returns result on basis of pagination done according to page_number and per_page option.
If any of the above parameters are not sent with curl request, the request will return the first 100 issues of the site.
The API key is a unique key that identifies each customer.
You can obtain it by clicking the Settings tab while logged on to Uptime Cloud Monitor UI.
It is presented at the bottom of the screen under “User API Access”.
Example
CURL Response:
Response is a hash which consists of two keys “issues” and “issuesStats”.
“issues” key has value as an array of JSON-encoded Issue Hashes. In this example, there are two issues; the first is a website alert, the second a system alert.
“issuesStats” key has value as a hash which consists of “total” key which has value as the count of issues according to the given filters.
Show
Show in-depth information about a single Issue.
Required Parameters:
Issue_ID as part of the path
CURL Command, and variations:
CURL Response:
Response is a single JSON-encoded Issue Hash.
Update
Update a single Issue.
Required Parameters:
Issue_ID as part of the path
A string specifying a change of state. Permissible strings are :
“state=active”
“state=notified”
“state=acknowledged”
“state=cleared”
“state=snoozed”
CURL Command, and variations:
CURL Response:
Response is Status 200, and the newly updated Issue Hash
Delete
Delete a single Issue
Required Parameters:
Issue_ID as part of the path
The string “state=deleted”
CURL Command, and variations:
CURL Response:
The specified issue will be deleted.
Response is Status 200, empty JSON: