Skip to main content
Get aggregation statistics and noise reduction metrics.

Endpoint

GET /api/v1/detections/aggregation/stats

Example Request

curl http://localhost:8000/api/v1/detections/aggregation/stats

Response

{
  "enabled": true,
  "active_buckets": 5,
  "pending_findings": 12,
  "emitted_buckets": 3,
  "aggregated_count": 8,
  "window_seconds": 15,
  "min_count": 2,
  "check_interval_ms": 2000
}

Response Fields

FieldTypeDescription
enabledbooleanWhether aggregation is enabled
active_bucketsnumberNumber of active aggregation buckets
pending_findingsnumberNumber of findings waiting in buckets
emitted_bucketsnumberNumber of buckets that have been emitted
aggregated_countnumberTotal number of aggregated findings stored
window_secondsnumberAggregation time window in seconds
min_countnumberMinimum findings required to aggregate
check_interval_msnumberInterval between bucket checks in milliseconds