Skip to content

feat(aigateway): telemetry cost command - #309

Merged
cdot65 merged 5 commits into
mainfrom
cdot65/feat/aigateway-telemetry-cost
Aug 5, 2026
Merged

feat(aigateway): telemetry cost command#309
cdot65 merged 5 commits into
mainfrom
cdot65/feat/aigateway-telemetry-cost

Conversation

@cdot65

@cdot65 cdot65 commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Summary

Slice 5 of #299 (final): airs aigateway telemetry cost. Stacked on #307 — merge order: #305#306#307 → this.

Changes

  • SdkAiGatewayService.getTelemetryCost({workspaceSlug, days}) — normalizes the cost chart, keeps raw cents
  • airs aigateway telemetry cost --workspace <slug> [--days 7] [--output pretty|json|yaml] — pretty output converts to dollars; structured output keeps explicit totalCents/avgCents/costCents fields; quota-exceeded warning surfaced
  • Docs page docs-site/docs/cli/aigateway/telemetry.md; changeset (minor)
  • Remaining 18 telemetry methods deliberately out of scope (per handoff sequencing)

Testing

  • TDD: failing wrapper specs committed first
  • 908 tests green on this branch; tsc + Biome + docs build clean

Closes #304

cdot65 added 5 commits August 5, 2026 16:49
Raw names sent to the API yield a misleading 400 AB01 on writes and 404 on
reads. Resolve name|slug|uuid against the workspace list for get/update/
delete/telemetry; ambiguous names error with the candidate slugs.
@cdot65
cdot65 force-pushed the cdot65/feat/aigateway-telemetry-cost branch from 8c0f9e8 to f4d46a0 Compare August 5, 2026 21:49
@cdot65
cdot65 merged commit 882dd1a into main Aug 5, 2026
4 checks passed
@cdot65
cdot65 deleted the cdot65/feat/aigateway-telemetry-cost branch August 5, 2026 21:50
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.

feat(aigateway): telemetry cost command

1 participant