DeleteHiTSDBInstanceData
Updated at:
Copy as MD
Deletes data from a TSDB instance within a specified time range. Use the Metric parameter to specify which metrics to delete, and the Tags parameter to filter data by tags. If Metric is empty, no data is deleted.
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| RegionId | String | Yes | The ID of the region where the instance resides. |
| InstanceId | String | Yes | The ID of the instance. |
| ReverseIp | String | Yes | The reverse IP address of the instance in a Virtual Private Cloud (VPC). |
| ReversePort | Integer | Yes | The reverse port of the instance in a VPC. |
| Metric | String | Yes | The metrics to delete, in JSON array format. Example: ["cpuload", "mem", "blahmetric"]. If this parameter is empty, no data is deleted. |
| Tags | String | No | The tags used to filter data. Only data containing the specified tags is deleted. Specify the value in JSON object format. Example: {"city": "shanghai", "host": "127.0.0.1"}. |
| Start | Long | Yes | The start of the time range to delete. The value is a timestamp in milliseconds. |
| End | Long | Yes | The end of the time range to delete. The value is a timestamp in milliseconds. |
Note: None of the parameters have default values.
Response elements
| Parameter | Type | Description |
|---|---|---|
| RequestId | String | The request ID. |
Examples
Sample success response
{
"RequestId": "1556DCB0-043A-4444-8BD9-CF4A68E7EE64"
}Is this page helpful?