Last updated 3 months ago
The timeseries bucket where data is stored in the database
Successful Response
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();
{ "detail": [ { "loc": [ "text" ], "msg": "text", "type": "text" } ] }
Filter only the last record from the result
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();
[]