Modifies the Enhanced Monitoring metrics that are displayed for an ApsaraDB RDS for PostgreSQL instance.
Operation description
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DBInstanceName | string | Yes | The instance ID. You can call the DescribeDBInstances operation to query the instance ID. | pgm-bp1s1j103lo6**** |
Scope | string | Yes | The application scope of this modification. Valid values:
| instance |
MetricsConfig | string | Yes | The keys of the Enhanced Monitoring metrics that you want to display for the instance. You can enter a maximum of 30 metric keys. If you enter multiple metric keys, you must separate the metric keys with commas (,). You can call the DescribeAvailableMetrics operation to query the keys of metrics. | os.cpu_usage.sys.avg,os.cpu_usage.user.avg |
Response parameters
Examples
Sample success responses
JSON
format
{
"DBInstanceId": "pgm-bp1s1j103lo6****",
"RequestId": "B55934BB-FFAA-5276-80A8-E0FDB12810B3",
"Scope": "instance"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidMetricsConfig | The specified metrics config is invalid. | The specified metric configuration is invalid. |
400 | InvalidScope | The specified scope is invalid | The specified scope is invalid. |
400 | InvalidDBInstanceEngineType.Format | the DB instance engine type does not support this operation. | This operation is not supported for the database engine of the instance. |
404 | InvalidDBInstanceName.NotFound | The database instance does not exist. | The name of the RDS instance cannot be found. Check the name of the RDS instance. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2022-06-23 | API Description Update. The Error code has changed | View Change Details |