edit-icon download-icon

Clean the data

Last Updated: Aug 03, 2018

Request path and method

Path Method Description
/api/delete_data POST Deletes the data

Request content

Name Type Required Description Default value Example
metric String Yes Metric of the data to be deleted None cpu.usage
start Integer Yes Start timestamp of the data to be deleted, in seconds None 1499308591
end Integer No End timestamp of the data to be deleted, in seconds Current time 1499508591

Request JSON example

Job: Clean all the data starting from 1499308591 to 1499508591, and of which the metric is “cpu.usage”.

Request: POST/api/delete_data

Body:

  1. {
  2. "metric": "cpu.usage",
  3. "start": 1499308591,
  4. "end": 1499508591
  5. }

Response description

If the error code “200” is returned, the request succeeded; otherwise, the request failed. For details about error codes, see Response codes.

Thank you! We've received your feedback.