mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 02:55:51 +00:00
81de801e58
The incident recorder asks for current metrics for every monitored resource every five seconds, and the adapter answered each request by scanning all views with a formatted VMID comparison per candidate. At thousands of resources that is millions of comparisons and allocations per tick, forever. The adapter now exposes a batch method that builds the full lookup in one pass over the views, keyed by every ID form the per-ID method matches with the same first-match precedence, and the recorder uses it when the provider offers it. Per-ID behavior is pinned to the batch by an equivalence test, including VMID collisions. Contract-Neutral: performance-only batch lookup addition, per-ID metrics resolution is pinned unchanged by equivalence tests