describe_db_instance_performance
Retrieve performance metrics of an RDS instance, including MemCpuUsage, QPSTPS, and Sessions, by specifying region, instance ID, database type, and time range for detailed analysis.
Instructions
Queries the performance data of an instance using the RDS OpenAPI.
This method provides performance data collected from the RDS service, such as MemCpuUsage, QPSTPS, Sessions, ThreadStatus, MBPS, etc.
Args:
region_id: db instance region(e.g. cn-hangzhou)
db_instance_id: db instance id(e.g. rm-xxx)
db_type: the db instance database type(e.g. mysql,pgsql,sqlserver)
perf_keys: Performance Key (e.g. ["MemCpuUsage", "QPSTPS", "Sessions", "COMDML", "RowDML", "ThreadStatus", "MBPS", "DetailedSpaceUsage"])
start_time: start time(e.g. 2023-01-01 00:00)
end_time: end time(e.g. 2023-01-01 00:00)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
db_instance_id | Yes | ||
db_type | Yes | ||
end_time | Yes | ||
perf_keys | Yes | ||
region_id | Yes | ||
start_time | Yes |
Input Schema (JSON Schema)
{
"properties": {
"db_instance_id": {
"title": "Db Instance Id",
"type": "string"
},
"db_type": {
"title": "Db Type",
"type": "string"
},
"end_time": {
"title": "End Time",
"type": "string"
},
"perf_keys": {
"items": {
"type": "string"
},
"title": "Perf Keys",
"type": "array"
},
"region_id": {
"title": "Region Id",
"type": "string"
},
"start_time": {
"title": "Start Time",
"type": "string"
}
},
"required": [
"region_id",
"db_instance_id",
"db_type",
"perf_keys",
"start_time",
"end_time"
],
"title": "describe_db_instance_performanceArguments",
"type": "object"
}