fix: retain complete histories with bounded journal capacity and native recovery
Rust development slice / linux (push) Failing after 6s
Rust development slice / linux (push) Failing after 6s
This commit is contained in:
@@ -31,6 +31,9 @@ def vm_pending(payload):
|
||||
events.append(dict(message_id=ident,agent_id=e[4].decode(),snapshot_id=snap[1].decode(),
|
||||
observed_at_ms=e[9],sequence=e[8],data_sha256=hashlib.sha256(snap[6]).hexdigest(),
|
||||
payload_sha256=hashlib.sha256(b''.join(raw for number,raw in parts if number!=6)).hexdigest(),
|
||||
collection_started_at=data.get('collection_started_at'),collection_completed_at=data.get('collection_completed_at'),
|
||||
observations=[dict(scope=o.get('scope'),source_id=o.get('source_id'),quality=o.get('quality'),observed_at=o.get('observed_at'),
|
||||
bytes=len(json.dumps(o,separators=(',',':')).encode())) for o in data.get('observations',[])],
|
||||
recovery_scope_present=any(o.get('scope')=='linux.apt.recovery-planning' for o in data.get('observations',[]))))
|
||||
return dict(events=events,other_unacked=other)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user