Skip to content

feat(voice): CPS tracking on create call and started webhook (DEVX-11542, DEVX-11549) - #632

Merged
dragonmantank merged 4 commits into
mainfrom
feature/DEVX-11542-return-cps-on-started
Sep 30, 2026
Merged

dragonmantank merged 4 commits into
mainfrom
feature/DEVX-11542-return-cps-on-started

Conversation

@dragonmantank

@dragonmantank dragonmantank commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds SDK support for Voice CPS (calls per second) tracking, per epic DEVX-11539.

  • DEVX-11542: Call.Builder#returnCpsOnStarted(boolean) → sends return_cps_on_started on POST /v1/calls. Omitted from the request unless set, so existing payloads are unchanged.
  • DEVX-11549: EventWebhook#getCpsRegionUsage(), #getCpsGlobalUsage(), #getCpsLimit() → map cps_region_usage, cps_global_usage, cps_limit on the started event. null when absent.

Versioning

Additive only, no breaking changes → MINOR. CHANGELOG entry added under 9.15.0; @since 9.15.0 on new APIs. Version bumped to 9.15.0 via bumpversion.sh (pom.xml, README, HttpWrapper.CLIENT_VERSION); ready to release on merge.

Testing

Run in Docker (maven:3.9-eclipse-temurin-21), mvn test:

  • Full suite: 1466 tests, 0 failures
  • CallTest: JSON for true/false, field omitted by default
  • EventWebhookTest: parses the epic's example started payload; CPS getters null when absent

Out of scope / follow-ups

  • NCCO connect action support for returnCpsOnStarted (mentioned in VAPI-5714, not in the DEVX epic)

Dependencies

Adds Call.Builder#returnCpsOnStarted so callers can request CPS usage
and limit data in the started event webhook. Omitted from the request
unless set.

DEVX-11542
Adds cps_region_usage, cps_global_usage and cps_limit to EventWebhook.
Present only on started events when return_cps_on_started is true.

DEVX-11549
@dragonmantank dragonmantank changed the title feat(voice): CPS tracking on create call and started webhook feat(voice): CPS tracking on create call and started webhook (DEVX-11542, DEVX-11549) Sep 30, 2026
@codecov-commenter

codecov-commenter commented Sep 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.07%. Comparing base (25a6e55) to head (e586bef).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #632   +/-   ##
=========================================
  Coverage     99.07%   99.07%           
- Complexity     3656     3660    +4     
=========================================
  Files           549      549           
  Lines          8069     8076    +7     
  Branches        446      446           
=========================================
+ Hits           7994     8001    +7     
  Misses           55       55           
  Partials         20       20           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dragonmantank
dragonmantank merged commit 6564a9e into main Sep 30, 2026
14 of 15 checks passed
@dragonmantank
dragonmantank deleted the feature/DEVX-11542-return-cps-on-started branch September 30, 2026 20:05
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.

2 participants