API Extensions
API Extensions
Our API could always be used as one way to populate time series via the Insert Endpoint. Now, we have added endpoint to list data points of a series, to prune them, and to count the number of points in a series.
List Endpoint
The List Endpoint returns a list of data points of a series. That could be the complete list or a part of the list between a start and an end point. The list can be sorted by time or by value. You can, for example, get the 3 data points with the highest values in your series.
An interesting option is to use this endpoint on derived series. For example, if you store temperatures in a series, you may define a derived series that calculates the monthly average and then use the API to get the month with the highest average temperature, or all the months sorted by their average temperatures.
Prune Endpoint
The Prune Endpoint allows deleting a range of data points. You can also sort by date or by value and limit the number of points to be deleted. For example, delete the 10 lowest values in March, or the oldest value of the week.
Count Endpoint
The Count Endpoint is very similar to the list endpoint, except it just returns the number of points in an interval rather than the complete list.