Retrieves monitoring data for an RDS AI Assistant Ultimate Edition instance.
Operation description
Supported engines
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rdsai:DescribeMonitorData |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
The instance ID. |
rds_copilot***_public_cn-*********6 |
| StartTime |
integer |
Yes |
The start of the query time range, specified as a Unix timestamp in seconds. |
1627268185 |
| EndTime |
integer |
Yes |
The end of the query time range, specified as a Unix timestamp in seconds. |
1627269085 |
| Metric |
string |
Yes |
The metric to query. Valid values:
|
● pv |
| Interval |
integer |
No |
The aggregation interval for monitoring data, in seconds. Default: 15. |
15 |
| ApiKeyName |
array |
No |
The names of the API keys to use for filtering the data. If this parameter is not specified, data from all keys is returned. |
|
|
string |
No |
The API key name. |
api-***** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
FE9C65D7-930F-57A5-A207-8C396329241C |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| Message |
string |
The response message. |
success |
| Data |
array<object> |
The response data. |
|
|
array<object> |
|||
| Name |
string |
The metric name. |
qps |
| Value |
array<object> |
An array of data points for the metric. |
|
|
object |
|||
| Time |
string |
The timestamp of the data point. |
1774972800 |
| Value |
number |
The value of the metric at the specified timestamp. |
60 |
Examples
Success response
JSON format
{
"RequestId": "FE9C65D7-930F-57A5-A207-8C396329241C",
"Success": true,
"Message": "success",
"Data": [
{
"Name": "qps",
"Value": [
{
"Time": "1774972800",
"Value": 60
}
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MoInvalidIpWhitelistError | Invalid IP address or CIDR in whitelist. | |
| 400 | MoDomainNotReadyError | Domain is not ready yet, please try again later. | |
| 403 | InvalidUserOrder | There is no valid order for this UID. | There is no valid order for this UID |
| 404 | MoInstanceMappingNotFoundError | No active instance mapping found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.