Own one sampler, a bounded history, and a read-only snapshot cache. More...
Public Member Functions | |
| None | start (self) |
| Start sampling in a worker; never perform firmware calls on the UI thread. | |
| None | close (self) |
| Stop the owned worker before releasing its sampler. | |
| SystemDiagnosticsSnapshot | snapshot (self) |
| Return the cached sample immediately, or an empty sample during warmup. | |
| tuple[SystemDiagnosticsSnapshot,...] | history (self) |
| Return samples in acquisition order for local trend views. | |
| dict[str, object] | payload (self) |
| Return versioned SI telemetry and two minutes of bounded history. | |
Protected Member Functions | |
| None | _observe_failure (self, str sampler, Exception|None error=None) |
| Report degradation/recovery once without retaining telemetry or error text. | |
Own one sampler, a bounded history, and a read-only snapshot cache.