Queries the alert statistics of container assets.
Only users who created a Container Registry Enterprise Edition instance can call this operation.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeContainerStatistics |
The operation that you want to perform. Set the value to DescribeContainerStatistics. |
ClusterId | String | Yes | Cccfd68c474454665ace07efce924**** |
The ID of the container cluster. Note You can call the DescribeGroupedContainerInstances operation to query the IDs of container clusters.
|
All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.
For more information about sample requests, see the "Examples" section of this topic.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Data | Struct |
The alert statistics of container assets. |
|
RemindAlarmCount | Integer | 1 |
The number of alerts whose risk level is Reminder. |
SeriousAlarmCount | Integer | 2 |
The number of alerts whose risk level is Urgent. |
SuspiciousAlarmCount | Integer | 3 |
The number of alerts whose risk level is Suspicious. |
TotalAlarmCount | Integer | 6 |
The total number of alerts that are generated in the current container cluster. |
TotalNode | Integer | 12 |
The total number of nodes in the current container cluster. |
hasRiskNode | Integer | 4 |
The number of nodes on which alerts are generated in the current container cluster. |
RequestId | String | 21DA46CA-2DCE-4FF6-907D-D5DBBB7518C8 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeContainerStatistics
&ClusterId=Cccfd68c474454665ace07efce924****
&<Common request parameters>
Sample success responses
XML
format
<DescribeContainerStatisticsResponse>
<RequestId>21DA46CA-2DCE-4FF6-907D-D5DBBB7518C8</RequestId>
<Data>
<TotalNode>12</TotalNode>
<RemindAlarmCount>1</RemindAlarmCount>
<hasRiskNode>4</hasRiskNode>
<TotalAlarmCount>6</TotalAlarmCount>
<SeriousAlarmCount>2</SeriousAlarmCount>
<SuspiciousAlarmCount>3</SuspiciousAlarmCount>
</Data>
</DescribeContainerStatisticsResponse>
JSON
format
{
"RequestId": "21DA46CA-2DCE-4FF6-907D-D5DBBB7518C8",
"Data": {
"TotalNode": "12",
"RemindAlarmCount": "1",
"hasRiskNode": "4",
"TotalAlarmCount": "6",
"SeriousAlarmCount": "2",
"SuspiciousAlarmCount": "3"
}
}
Error codes
For a list of error codes, visit the API Error Center.