Deletes time series data for a specified metric within a given time range.
Request syntax
POST /api/delete_dataRequest parameters
| Parameter | Type | Required | Description | Default value | Example |
|---|---|---|---|---|---|
| metric | String | Yes | The metric name of the data to delete. | None | cpu.usage |
| start | Integer | Yes | The start timestamp of the time range, in seconds. | None | 1499308591 |
| end | Integer | No | The end timestamp of the time range, in seconds. | Current time | 1499508591 |
Examples
Delete all data for the cpu.usage metric between timestamps 1499308591 and 1499508591.
Request:
POST /api/delete_dataBody:
{
"metric": "cpu.usage",
"start": 1499308591,
"end": 1499508591
}Response
A response code of 200 indicates success. Any other code indicates failure. For a complete list of response codes, see Response codes.