Queries the alert statistics of container assets.
Only users who have purchased the Enterprise edition of Container Registry 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 toDescribeContainerStatistics. |
ClusterId | String | Yes | Cccfd68c474454665ace07efce924**** |
The ID of the container cluster. Note You can call the DescribeGroupedContainerInstances operation to query the cluster ID.
|
Response parameters
Parameter | Type | Sample response | Description |
---|---|---|---|
Data | Struct |
The alert statistics of container assets. |
|
HasRiskNode | Integer | 4 |
The number of nodes that contain alerts in the current container cluster. |
RemindAlarmCount | Integer | 1 |
The number of alertswhose risk level isReminder. |
SeriousAlarmCount | Integer | 2 |
The number of alertswhose risk level isEmergency. |
SuspiciousAlarmCount | Integer | 3 |
The number of alertswhose risk level isSuspicious. |
TotalAlarmCount | Integer | 6 |
The total number of alerts in the current container cluster. |
TotalNode | Integer | 12 |
The total number of nodes 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.