Retrieves the alerting statistics information for a server.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:GetInstanceAlarmStatistics |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| From |
string |
No |
The data source from which instance alert statistics are collected. Default value: aqs. Valid values:
|
sas |
| Uuid |
string |
No |
The UUID of the server to query. Note
You can call the DescribeCloudCenterInstances operation to obtain this parameter. |
00fea5a1-9792-4373-ab1e-bb6536ba**** |
| ResourceDirectoryAccountId |
integer |
No |
The Alibaba Cloud account ID of the member accounts in the resource folder. Note
You can invoke the DescribeMonitorAccounts operation to obtain this parameter. |
127608589417**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| Data |
object |
The data structure. |
|
| RemindCount |
integer |
The number of reminder-level alerts. |
1 |
| SuspiciousCount |
integer |
The number of suspicious alerts. |
3 |
| SeriousCount |
integer |
The number of urgent alerts. |
1 |
| RequestId |
string |
The request ID. |
09969D2C-4FAD-429E-BFBF-9A60DEF8B**** |
Examples
Success response
JSON format
{
"Data": {
"RemindCount": 1,
"SuspiciousCount": 3,
"SeriousCount": 1
},
"RequestId": "09969D2C-4FAD-429E-BFBF-9A60DEF8B****\n"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | no permission | |
| 400 | UnknownError | UnknownError | |
| 400 | RdCheckNoPermission | Resource directory account verification has no permission. | |
| 500 | ServerError | ServerError | |
| 500 | RdCheckInnerError | Resource directory account service internal error. | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.