Before using this API, ensure that you have fully understood the billing methods and pricing of RDS.

This API is used to set the monitoring frequency of your RDS instance.

Note Second-level monitoring incurs additional costs.

Debug

Click here to perform a debug operation in OpenAPI Explorer and automatically generate an SDK code example.

Request parameters

Parameter Type Required Example value Description
Action String Yes ModifyDBInstanceMonitor

Action to perform. Value: ModifyDBInstanceMonitor.

DBInstanceId String Yes rm-uf6wjk5xxxxxxx

Instance ID.

Period String Yes 60

Data collection frequency. Value:

  • 5
  • 60
  • 300

Unit: second

To view the data collection frequencies supported by different instances, see Set monitoring frequency.

Note The 5-second monitoring frequency incurs additional costs.
AccessKeyId String No LTAIfCxxxxxxx

Used to access Alibaba Cloud services.

ClientToken String No ETnLKlblzczshOTUbOCzxxxxxxx

Guarantee the idempotence of the request. The value is generated by a client. It must be unique among all requests and can contain a maximum of 64 ASCII characters.

Examples

Request example


http(s)://rds.aliyuncs.com/?Action=ModifyDBInstanceMonitor
&DBInstanceId=rm-uf6wjk5xxxxxxx
&Period=60
&<Common request parameters>
			

Normal response example

XML format

<ModifyDBInstanceMonitorResponse>
  <requestId>52B9805C-432C-4ED1-83FD-2F916B6D2733</requestId>
</ModifyDBInstanceMonitorResponse>
			

JSON format

{
	"requestId":"52B9805C-432C-4ED1-83FD-2F916B6D2733"
}

Error codes

Click here to view error codes.