Hybrid Recursive Ladder

v0.0.8
io.github.MagicSquarekey/hybrid-recursive-ladder Checked 2 days ago Published 20 days ago

Aggregate long time-series ranges with a few source requests instead of one per bucket.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ladder_meta Ladder metadata

Return version, configuration, source/store type and demo range.

ladder_decompose Decompose a time range

Decompose [start, end) into month/day/hour/minute ladder segments. Times accept ISO-8601 (``2026-01-01T00:00:00``) or epoch milliseconds.

ParameterTypeDescription
end *string
start *string
fineststring
timezonestring

ladder_sum Sum time series

Sum time series over a range. ``series`` items use ``{"entity": "...", "key": "...", "name": "..."}`` (``device_id``/``device_name`` are accepted as aliases). ``mode`` is ``tb`` (source only), ``mixed`` (local first) or ``local`` (offline). With no series, the built-in demo series are used.

ParameterTypeDescription
end *string
series *array
start *string
fineststring
materializeboolean
modestring
verify_on_read

ladder_verify Verify against source

Compare the authoritative source with the local store. Returns per-segment differences and, for the first ``drill_limit`` differing segments, point-level added/removed/changed counts.

ParameterTypeDescription
end *string
series *array
start *string
drill_limitinteger
fineststring

ladder_calc Bucket calculation

Bucket [start, end) and compute one value per bucket. ``dimension`` is the bucket size (minute/hour/day/month, both edges must align to it) and ``rule`` is one of: * ``sum`` — bucket sum; * ``avg`` — bucket mean of sums/counts, row totals are means of means; * ``meter_delta`` — next bucket's first reading minus this bucket's; the last bucket reads one bucket past ``end``; missing anchors, repeated readings and meter resets come back as ``anomaly`` codes (``no_current_reading``, ``no_next_reading``, ``same_reading``,…

ParameterTypeDescription
end *string
series *array
start *string
dimensionstring
materializeboolean
modestring
rulestring
verify_on_read