发布

  • feat: add API key usage endpoint with provider and key grouping

    frostbyte_neo 发布于 2026-05-01 15:34:18 +00:00

    • Implemented GetAPIKeyUsage to expose recent request data grouped by provider and API key.
    • Added supporting function mergeRecentRequestBuckets for bucket aggregation.
    • Registered new endpoint /v0/management/api-key-usage in the management API.
    • Included extensive unit tests for provider and key-based grouping validation.
    • Updated formatRecentRequestBucketLabel to support configurable bucket duration.
    下载附件