You can call the interface DescribeRdsPerformanceSummary to query RDS instance's performance details, such as CPU.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Required | DescribeRdsPerformanceSummary |
The operation that you want to perform. The value is DescribeRdsPerformanceSummary. |
DrdsInstanceId | String | Required | drds************ |
The ID of a DRDS instance. |
RdsInstanceId.N | RepeatList | Yes | rm-***************** |
The list of ApsaraDB RDS for MySQL instances. |
RegionId | String | No | cn-hangzhou |
The ID of the region where the streaming domain resides. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RdsPerformanceInfos | Array of RdsPerformanceInfo |
A collection of objects. |
|
ActiveSessions | Integer | 0 |
The number of active sessions of the RDS instance. |
Cpu | Float | 0.26 |
The CPU utilization of an RDS instance. |
Iops | Float | 17.62 |
The IOPS of the RDS instance. |
RdsId | String | rm-************** |
The ID of an RDS instance. |
SpaceUsage | Long | 4145144777 |
The disk usage of apsaradb for RDS. Unit: MB. |
TotalSessions | Integer | 162 |
The total number of current RDS sessions. |
RequestId | String | B6876277-ECFD-4658-AC1E-A7FAD8****** |
The request ID. |
Success | Boolean | true |
Indicates whether the API request is successful. |
Examples
Sample requests
http(s)://drds.aliyuncs.com/? Action=DescribeRdsPerformanceSummary
&DrdsInstanceId=drds************
&RdsInstanceId.1=rm-*****************
&<Common request parameters>
Sample success responses
XML
format
<RequestId>B6876277-ECFD-4658-AC1E-A7FAD8******</RequestId>
<RdsPerformanceInfos>
<TotalSessions>162</TotalSessions>
<SpaceUsage>4145144777</SpaceUsage>
<Cpu>0.26</Cpu>
<Iops>17.62</Iops>
<RdsId>rm-**************</RdsId>
<ActiveSessions>0</ActiveSessions>
</RdsPerformanceInfos>
<Success>true</Success>
JSON
format
{
"RequestId": "B6876277-ECFD-4658-AC1E-A7FAD8******",
"RdsPerformanceInfos": [
{
"TotalSessions": 162,
"SpaceUsage": 4145144777,
"Cpu": 0.26,
"Iops": 17.62,
"RdsId": "rm-**************",
"ActiveSessions": 0
}
],
"Success": true
}
Error codes
For a list of error codes, visit the API Error Center.