Queries the performance metrics and sample data of a specified application component within a specified time range.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ComponentId |
string |
Yes |
The ID of the application component. You can obtain the ID from the Components parameter returned by the DescribeApplicationAttribute operation. |
pac-******************* |
| ApplicationId |
string |
Yes |
The ID of the application. |
pa-************** |
| Type |
string |
No |
The type of the performance data. |
supabase |
| Key |
string |
Yes |
The performance metrics to query. Separate multiple metrics with commas (,). You can specify up to 5 metrics. |
PolarDBCPU |
| StartTime |
string |
Yes |
The start time of the query. Specify the time in the ISO 8601 standard in the YYYY-MM-DDTHH:mmZ format. The time must be in UTC. |
2020-09-23T01:00Z |
| EndTime |
string |
Yes |
The end time of the query. The end time must be later than or equal to the start time. Specify the time in the ISO 8601 standard in the YYYY-MM-DDTHH:mmZ format. The time must be in UTC. |
2020-09-23T02:00Z |
| Interval |
string |
No |
The sampling granularity of the performance data. Unit: seconds. |
60 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PerformanceKeys |
object |
||
| PerformanceItem |
array<object> |
The list of performance metrics for the component. |
|
|
array<object> |
|||
| MetricName |
string |
The specific measurement name of the performance metrics. |
mean_cpu_usage |
| Measurement |
string |
The name of the performance metrics. |
PolarDBCPU |
| Points |
object |
||
| PerformanceItemValue |
array<object> |
The sampling data points for the performance metric. |
|
|
object |
|||
| Value |
string |
The metric value of the sampled data point. The unit is determined by the queried metric. |
42.38 |
| Timestamp |
integer |
The UNIX timestamp of the sampled data point. Unit: milliseconds. |
1600822800000 |
| EndTime |
string |
The end time of the query. The time is in UTC. |
2020-09-23T02:00Z |
| RequestId |
string |
The ID of the request. |
2921D843-433A-5FB3-A03B-4EC093B219F8 |
| StartTime |
string |
The start time of the query. The time is in UTC. |
2020-09-23T01:00Z |
| ComponentId |
string |
The ID of the application component. |
pac-******************* |
| ComponentType |
string |
The type of the application component. |
backend |
| ApplicationVersion |
string |
The version of the application. |
1.0.0 |
| ApplicationId |
string |
The ID of the application. |
pa-************** |
| ApplicationType |
string |
The type of the application. |
supabase |
Examples
Success response
JSON format
{
"PerformanceKeys": {
"PerformanceItem": [
{
"MetricName": "mean_cpu_usage",
"Measurement": "PolarDBCPU",
"Points": {
"PerformanceItemValue": [
{
"Value": "42.38",
"Timestamp": 1600822800000
}
]
}
}
]
},
"EndTime": "2020-09-23T02:00Z",
"RequestId": "2921D843-433A-5FB3-A03B-4EC093B219F8",
"StartTime": "2020-09-23T01:00Z",
"ComponentId": "pac-*******************",
"ComponentType": "backend",
"ApplicationVersion": "1.0.0",
"ApplicationId": "pa-**************",
"ApplicationType": "supabase"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidStartTime.Malformed | The specified parameter StartTime is not valid. | The specified StartTime parameter is invalid. |
| 400 | InvalidKey.Malformed | The specified parameter Key is not valid. | The specified parameter key is invalid. |
| 400 | InvalidDBNodeId.Malformed | The specified parameter DBNodeId is not valid. | The specified DBNodeId parameter is invalid. |
| 400 | InvalidEndTime.Malformed | The specified parameter EndTime is not valid. | The specified EndTime parameter is invalid. |
| 400 | InvalidDateRange.Malformed | The Date Range can not more than one month. | The date range can be up to one month in length. |
| 404 | InvalidDBNodeId.NotFound | The DBNodeId provided does not exist in our records. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.