Add data migration to migrate ai usage tables in CH to ai_usage_events CH table
Summary
As part of our effort to bring generalized AI usage data to production-ready state in scope of this issue we need to
Proposal
Add data migration to migrate ai usage tables in CH to ai_usage_events CH table. See PoC for guidance.
Technical requirements
- Cover all Ai events we have in CH. (at the moment this issue was created it's CS, Duo Chat, Troubleshoot Job)
- Split migration queries per week to avoid timeouts.
- Do not merge before we enable double-write for existing events.
Edited by 🤖 GitLab Bot 🤖