Time Series

Timeseries Query

POST/api/v1/timeseries/query
Body
bucket*Bucket

The timeseries bucket where data is stored in the database

range*Range
groupGroup
sumSum
lastLast

Filter only the last record from the result

Response

Successful Response

Body
Response Timeseries Query Api V1 Timeseries Query Post
Request
const response = await fetch('/api/v1/timeseries/query', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "bucket": "text",
      "range": "text"
    }),
});
const data = await response.json();
Response
[]

Timeseries Write

POST/api/v1/timeseries/write
Body
bucket*Bucket

The timeseries bucket where data is stored in the database

Response

Successful Response

Body
Response Timeseries Write Api V1 Timeseries Write Post
Request
const response = await fetch('/api/v1/timeseries/write', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "bucket": "text"
    }),
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}

Last updated