UNPKG

@dudousxd/nestjs-telescope

Version:

Laravel Telescope-style observability console for NestJS — core: watchers, recorder, correlation, SQLite store, headless API.

13 lines 844 B
import type { RollupBucket } from '../rollup/rollup-store.js'; import type { TimeseriesReport } from './timeseries.js'; /** * Assembles the SAME {@link TimeseriesReport} shape {@link bucketTimeseries} * produces, but from pre-aggregated 1-minute {@link RollupBucket}s instead of a * raw entry scan. Each rollup's `count` is placed (re-bucketed) into the report * bucket its `bucketStart` falls in, using the IDENTICAL clamp formula * `bucketTimeseries` uses for an entry's `createdAt`. When the report's bucket * width is a multiple of (and aligned to) the 1-minute rollup granularity, this * reproduces the raw-scan counts exactly. */ export declare function timeseriesFromRollups(rollups: RollupBucket[], windowStart: Date, windowEnd: Date, bucketCount: number): TimeseriesReport; //# sourceMappingURL=timeseries-from-rollups.d.ts.map