API Documents
Cancel
Contents
Get a Monitor’s Warnings
1. API Description
This API (Monitor.Getdowns) is used to get a monitor’s warnings.
Domain name for API request:https://dnsapi.cn/Monitor.Getdowns
HTTP request method: POST
2. Request Parameters
The table below lists only the API request parameters. Common request parameters are required when the API is called. For more information, please see Common Request Parameters.
Parameter | Required | Description |
---|---|---|
offset | no | The offset of the response.The first is numbered 0.Optional parameter. |
length | no | The number of results you want get.Optional parameter. |
3. Response Codes
Only the response codes related to this API are listed below. For other response codes, please see Common Return Codes.
Response Code | Description |
---|---|
Common Return Codes。 |
4. Sample
curl -X POST https://api.dnspod.com/Monitor.Getdowns -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&offset=0&length=10'
The following is a sample response:
- JSON:
{
"status": {
"code": "1",
"message": "Action completed successful",
"created_at": "2014-06-05 10:25:04"
},
"info": {
"total_count": "1"
},
"monitor_downs": [
{
"down_id": "15132",
"monitor_id": "792626",
"host": "eeee.usertest.com",
"record_line": "Default",
"ip": "4.4.4.4",
"warn_reason": "Connection timed out",
"switch_log": [
"2014-06-05 10:24:28 No available spare server to switch to"
],
"created_on": "2014-06-05 10:23:14",
"updated_on": "0000-00-00 00:00:00"
}
]
}
Last updated on 2020-12-23 09:14
Is the above content helpful to you?
Helpful
Unhelpful
Select an issue type
- Can't find what I need
- Update is not timely
- Difficult to understand
- Typo/invalid link
- Steps are incomplete
- Missing images/sample codes
View on Mobile Phone
Click to copy the link