Admin

Database Vacuuming

Changed on

Removes the duplicate samples (a retried write, a client that sends twice, a crash in the middle of a request leave some), then cleans up and optimizes the database and reclaims space, as far as the storage backend supports it. Only exact duplicates go: two different values at the same timestamp are both kept. Requires the delete scope, and a token without a sensor allow list.

post/api/v1/admin/vacuum

Request

  • The document declares no server URL.
  • Auth: HTTP bearer

Response

Maintenance completed, with the number of duplicate samples removed

duplicates_removedinteger nullable

Number of duplicate samples removed (same series, same timestamp, same value, the first one written is kept), or null when the storage backend cannot remove duplicates

statusstring required

ok when the maintenance completed

Changes

    • info

      the endpoint scheme security bearer was added to the API

    • breaking

      removed the media type text/plain for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status