Dashboard

Get total count for raw logs query

Changed on

Returns the total event count matching the MV-compatible subset of /raw-logs filters, served from the event_daily_stats materialized view for sub-second latency. Exact event_id and conversation_id filters are not supported. The frontend issues this in parallel with /raw-logs so the page renders immediately and the total fills in when ready.

Returns {"total_count": null} when the filter set cannot be answered by the materialized view (search query, client_config, connection_type, or arbitrary metadata keys other than event_type).

post/dashboard/api/raw-logs/count

Request

  • Base URL
    https://api.agnost.ai
  • URL
    https://api.agnost.ai/dashboard/api/raw-logs/count
  • Auth
    • HTTP bearer and API key in header x-org-id
    • or API key in header x-api-key

Request body

time_range'1min' | '1h' | '1d' | '1w' | '1m' | 'all'
pageinteger
page_sizeinteger

Response

Total count, or null if filters are MV-incompatible

total_countinteger nullable

Changes