Add instance level AiUsageData endpoint

What does this MR do and why?

Add instance level AiUsageData endpoint

The endpoint is accessible by instance admins and can be used to retrieve all usage data for given instance.

Screenshots or screen recordings

image

How to set up and validate locally

  1. Seed AI usage files with FILTER=ai_usage_stats bundle exec rake db:seed_fu
  2. Log in as admin
  3. Use sample GraphQL from screenshot above.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #582153 (closed)

Merge request reports

Loading