edit-icon download-icon

Clean the time series

Last Updated: Aug 03, 2018

Request path and method

Path Method Description
/api/delete_meta POST Deletes the time series

Request content

Name Type Required Description Default value Example
metric String Yes Metric of the time series to be deleted cpu.usage
tags Map No Time series to be deleted. It is optional. When no tag is specified, all the time series related to this metric are deleted. For details, see the description below.

Request JSON example

Job: Clean the metric of which the name is “cpu.usage”, and the tag is “host: 192.168.0.2” and “appName: hitsdb”.

Request: POST/api/delete_meta

Body:

  1. {
  2. "metric": "cpu.usage",
  3. "tags": {
  4. "host": "192.168.0.2",
  5. "appName": "hitsdb"
  6. }
  7. }

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.