Repository navigation
feat(voice): CPS tracking on create call and started webhook (DEVX-11542, DEVX-11549) - #632
Merged
Merged
Conversation
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
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
Fixes jackson-databind advisories GHSA-q4xh-88c3-wmh7 (high), GHSA-gx83-3vf8-gh7j, GHSA-wjgm-6hv5-3cvf, GHSA-vvgp-rfg2-7rr6, GHSA-5gvw-p9qm-jgwh and GHSA-5jmj-h7xm-6q6v.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds SDK support for Voice CPS (calls per second) tracking, per epic DEVX-11539.
Call.Builder#returnCpsOnStarted(boolean)→ sendsreturn_cps_on_startedonPOST /v1/calls. Omitted from the request unless set, so existing payloads are unchanged.EventWebhook#getCpsRegionUsage(),#getCpsGlobalUsage(),#getCpsLimit()→ mapcps_region_usage,cps_global_usage,cps_limiton thestartedevent.nullwhen absent.Versioning
Additive only, no breaking changes → MINOR. CHANGELOG entry added under
9.15.0;@since 9.15.0on new APIs. Version bumped to9.15.0viabumpversion.sh(pom.xml, README,HttpWrapper.CLIENT_VERSION); ready to release on merge.Testing
Run in Docker (
maven:3.9-eclipse-temurin-21),mvn test:CallTest: JSON fortrue/false, field omitted by defaultEventWebhookTest: parses the epic's examplestartedpayload; CPS gettersnullwhen absentOut of scope / follow-ups
connectaction support forreturnCpsOnStarted(mentioned in VAPI-5714, not in the DEVX epic)Dependencies
2.22.0→2.22.2(jackson-core,jackson-databind,jackson-datatype-jsr310;jackson-annotationsstays2.22per Jackson versioning). Patch-level, fixes all 6 open Dependabot alerts onjackson-databind: GHSA-q4xh-88c3-wmh7 (high), GHSA-gx83-3vf8-gh7j, GHSA-wjgm-6hv5-3cvf, GHSA-vvgp-rfg2-7rr6, GHSA-5gvw-p9qm-jgwh, GHSA-5jmj-h7xm-6q6v. Full suite re-run after bump: 1466 tests, 0 failures.