Skip to content

feat: add query_team_usage_stats API for multi-tenant metrics#195

Draft
daksh-r wants to merge 1 commit intomasterfrom
feat/add-query-team-usage-stats-api
Draft

feat: add query_team_usage_stats API for multi-tenant metrics#195
daksh-r wants to merge 1 commit intomasterfrom
feat/add-query-team-usage-stats-api

Conversation

@daksh-r
Copy link
Contributor

@daksh-r daksh-r commented Feb 16, 2026

Add query_team_usage_stats method for querying team-level usage statistics from the warehouse database.

  • Returns all 16 metrics grouped by team with cursor-based pagination
  • Supports monthly aggregation (month param) or daily breakdown (start_date/end_date)
  • Includes Sorbet type signatures and comprehensive test coverage

Submit a pull request

CLA

  • I have signed the Stream CLA (required).
  • The code changes follow best practices
  • Code changes are tested (add some information if not applicable)

Description of the pull request

Add query_team_usage_stats method for querying team-level usage
statistics from the warehouse database.

- Returns all 16 metrics grouped by team with cursor-based pagination
- Supports monthly aggregation (month param) or daily breakdown (start_date/end_date)
- Includes Sorbet type signatures and comprehensive test coverage

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant