feat(reporter): persist drift metrics and last heal result in state snapshot
This commit is contained in:
1 parent
c698d01c40
commit
b34ac69ac1
5 files changed
+160
-14
No files matched your search
@@ -51,7 +51,14 @@ def main():
|
||||
while not stop_event.is_set():
|
||||
try:
|
||||
is_synced, count, drift = auditor.reconcile()
|
||||
reporter.update_status(is_synced, count)
|
||||
reporter.update_status(
|
||||
is_synced,
|
||||
count,
|
||||
missing_count=drift.get("missing_count", 0),
|
||||
extra_count=drift.get("extra_count", 0),
|
||||
metadata_drift_count=drift.get("metadata_drift_count", 0),
|
||||
last_drift_fingerprint=drift.get("fingerprint", ""),
|
||||
)
|
||||
|
||||
if is_synced:
|
||||
status_msg = f"Audit Success: {count} IPs in sync."
|
||||
|
||||
Reference in new issue
Block a user