add label to STT/TTS alerts (#1468)

* add label to STT/TTS alerts

* update time-series
This commit is contained in:
Sam Machin
2025-12-11 16:07:24 +00:00
committed by GitHub
parent 5cea91e18a
commit 57982335e0
5 changed files with 3465 additions and 1651 deletions

View File

@@ -1250,9 +1250,10 @@ class CallSession extends Emitter {
}
else {
writeAlerts({
alert_type: AlertType.STT_NOT_PROVISIONED,
alert_type: type === 'tts' ? AlertType.TTS_NOT_PROVISIONED : AlertType.STT_NOT_PROVISIONED,
account_sid: this.accountSid,
vendor,
label,
target_sid: this.callSid
}).catch((err) => this.logger.error({err}, 'Error writing tts alert'));
}