Get alert info
1. API Description
This API is used to get the alert information of the chassis.
Request mode: POST [ip]/api/chassis/get-alert
| Administrator Rights | Logged-in |
|---|---|
| No | Yes |
2. Input Parameters
None
3. Output Parameters
| Name | Type | Description |
|---|---|---|
| status | Int | Status code |
| code | String | Status description |
| alert-num | Int | The total number of alerts |
| alert | Array of AlertData | Alert list |
AlertData
| Name | Type | Description |
|---|---|---|
| index | Int | The index of alerts |
| information | String | Alert information |
4. Example
Getting the alert information of the device.
Input Example
None
Output Example
{
"alert-num": 3,
"alert": [
{
"index": 1,
"information": "2023/05/29 19:38:18\npower1 DC output below minimum detection level"
},
{
"index": 2,
"information": "2023/05/29 19:38:18\nfan 2 failed to start and stopped rotating"
},
{
"index": 3,
"information": "2023/05/29 19:38:18\nfan 3 failed to start and stopped rotating"
}
],
"status": 0,
"code": "Success"
}
5. Error Code
No error code related to the API business logic. For other error codes, see Common Error Codes.