Skip to content

v1.1.0

Latest
Compare
Choose a tag to compare
@dev-embedthis dev-embedthis released this 29 Dec 08:50
· 2 commits to main since this release

Minor Feature Release

Release Update: Query Behavior Adjustment

In this release, the behavior of the query() function has been updated.

The first change is that query() will now consistently return data points for all intervals within the requested span, even if no actual data exists for those intervals. Intervals that have no data will be set to {count: 0, value: 0}. Previously, query() only returned points for intervals with non-zero data. For example, if you queried a metric over a 24-hour (86400-second) span with only one recorded data point, the result would include just that single data point. With this update, the response will include data points with {count: 0, value: 0} for every interval without data in the requested span. This adjustment may affect applications that rely on specific data items appearing at fixed positions in the points[] index (a practice we strongly advise against). The change is designed to simplify graphing query results, ensuring a consistent and predictable structure.

The second change is to support a start date in the query via options.start. This permits queries to retrieve data for arbitrary date ranges.

Features

  • Interpolate missing points on query
  • Fully support options.start on query

Fixes

  • Fix selecting the wrong span range when stale data in held in a span that hasn't been updated for a while