Skip to main content

Get event usage stats

GET 

/projects/:project_id/event-usage-stats

Returns the latest event usage statistics for the project from the cache.

Trigger a refresh first with POST /projects/{project_id}/event-usage-stats/refresh. The status field indicates whether results are available:

  • not_started: no gathering job has been run yet; the events list is empty.
  • pending: a gathering job is currently running. The events list holds the results of the previous run, if any.
  • ready: the events list holds the latest gathered results.
  • failed: the last gathering job failed. The events list holds the results of the previous successful run, if any. Trigger another refresh to retry.

Request

Responses

OK