Querying the Alarm Statistics List
Function
This API is used to query alarm statistics.
Calling Method
For details, see Calling APIs.
URI
GET /v2/{project_id}/alarm-statistic
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Definition Project ID. To obtain the value, see Obtaining a Project ID. Constraints N/A Range N/A Default Value N/A |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
time_zone |
No |
String |
Definition Time zone. Constraints N/A Range N/A Default Value GMT+08:00 |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
alarm_statistics |
Array of AlarmStatisticResponse objects |
Definition Alarm statistics list. Range N/A |
Example Requests
https://{Endpoint}/v2/4cf650fd46704908aa071b4df2453e1e/alarm-statistic?time_zone=GMT
Example Responses
Status code: 200
Alarm statistics list queried.
{
"alarm_statistics" : [ {
"date" : "2022-10-21",
"urgent" : 0,
"important" : 0,
"minor" : 0,
"prompt" : 0
}, {
"date" : "2022-10-22",
"urgent" : 0,
"important" : 0,
"minor" : 0,
"prompt" : 0
}, {
"date" : "2022-10-23",
"urgent" : 0,
"important" : 0,
"minor" : 0,
"prompt" : 0
}, {
"date" : "2022-10-24",
"urgent" : 0,
"important" : 0,
"minor" : 0,
"prompt" : 0
}, {
"date" : "2022-10-25",
"urgent" : 0,
"important" : 0,
"minor" : 0,
"prompt" : 0
}, {
"date" : "2022-10-26",
"urgent" : 0,
"important" : 0,
"minor" : 0,
"prompt" : 0
}, {
"date" : "2022-10-27",
"urgent" : 17,
"important" : 0,
"minor" : 0,
"prompt" : 0
} ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Alarm statistics list queried. |
|
400 |
Request error. |
|
401 |
Authentication failed. |
|
403 |
You do not have required permissions. |
|
404 |
No resources found. |
|
500 |
Internal server error. |
|
503 |
Service unavailable. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.