fix monitor error

This commit is contained in:
larssand
2026-07-06 13:02:10 +02:00
parent 35282bca7f
commit d314c94dee
6 changed files with 30 additions and 24 deletions

View File

@@ -103,7 +103,7 @@ class BaselineTests(unittest.TestCase):
store.ingest([parse_log_line("srcip=10.0.0.2 dstport=443 recent=1")], observed_at=recent)
store.ingest_profile_fields([parse_log_line("fgai_stream_id=windows username=bob action=login recent=1")], profiles, observed_at=recent)
result = store.maintenance(retention_days=7, value_retention_days=7, max_values_per_field=2000)
result = store.maintenance(retention_days=7, value_retention_days=7, max_values_per_field=2000, include_rows=True)
self.assertGreaterEqual(result["deleted"]["source_buckets"], 1)
self.assertGreaterEqual(result["deleted"]["profile_buckets"], 1)
@@ -122,7 +122,7 @@ class BaselineTests(unittest.TestCase):
]
store.ingest_profile_fields(events, profiles, observed_at=1_700_000_000)
stats = store.stats()
stats = store.stats(include_rows=True)
self.assertEqual(stats["rows"]["profile_buckets"], 2)
with store._connect() as connection: