Parameter Name | Required | Type | Description |
Action | Yes | String | Common parameter. The value used for this API: GetMonitorData . |
Version | Yes | String | Common parameter. The value used for this API: 2018-07-24 . |
Region | Yes | String | |
Namespace | Yes | String | Namespace, such as QCE/cynosdb_mysql . For more information, see TDSQL-C for MySQL Monitoring Metrics. |
MetricName | Yes | String | Metric name, such as CPUUsagerate (CPU utilization). You can pull the data of one single metric at a time. |
Instances.N | Yes | Array of Instance | Dimension combination of instance object in the format of key-value pair. Different types of instances have completely different fields. For the dimension combination of TDSQL-C for MySQL, see TDSQL-C for MySQL Monitoring Metrics. |
Period | No | Integer | Statistical period for monitoring data in seconds, such as 60. Default value: 300. |
StartTime | No | Timestamp ISO8601 | Start time, such as 2021-07-15T19:51:23+08:00 . |
EndTime | No | Timestamp ISO8601 | End time, which is the current time by default, such as 2021-07-15T20:51:23+08:00 . EndTime cannot be earlier than StartTime . |
Parameter Name | Type | Description |
Period | Integer | Statistical period |
MetricName | String | Metric name |
DataPoints | Array of DataPoint | Array of data points |
StartTime | Timestamp ISO8601 | Start time |
EndTime | Timestamp ISO8601 | End time |
RequestId | String | The unique request ID, which is returned for each request and is required for troubleshooting. |
POST / HTTP/1.1Host: monitor.tencentcloudapi.comContent-Type: application/jsonX-TC-Action: GetMonitorData<Common request parameters>{"Namespace": "QCE/cynosdb_mysql","MetricName": "CPuUsageRate","Period": 3600,"Instances": [{"Dimensions": [{"Name": "InstanceId","Value": "cynosdbmysql-ins-edpn3t6b"}]}],"StartTime": "2022-07-15T10:00:00","EndTime": "2022-07-15T15:00:00"}
{"Response": {"DataPoints": [{"Dimensions": [{"Name": "InstanceId","Value": "cynosdbmysql-ins-edpn3t6b"}],"Timestamps": [1657850400,1657854000,1657857600,1657861200,1657864800],"Values": [0.26,0.24,0.23,0.26,0.24]}],"EndTime": "7/15/2022 3:00:00 PM","MetricName": "CPuUsageRate","Period": 3600,"RequestId": "71c72744-bec5-49d0-b42c-433609ab4166""StartTime": "7/15/2022 10:00:00 AM"}}
Was this page helpful?