egress updated webhook (#1555)

This commit is contained in:
David Colburn
2023-03-27 16:34:44 -07:00
committed by GitHub
parent 96607a170a
commit 108b251045
4 changed files with 60 additions and 17 deletions
+9
View File
@@ -411,6 +411,15 @@ func (t *telemetryService) EgressStarted(ctx context.Context, info *livekit.Egre
})
}
func (t *telemetryService) EgressUpdated(ctx context.Context, info *livekit.EgressInfo) {
t.enqueue(func() {
t.NotifyEvent(ctx, &livekit.WebhookEvent{
Event: webhook.EventEgressUpdated,
EgressInfo: info,
})
})
}
func (t *telemetryService) EgressEnded(ctx context.Context, info *livekit.EgressInfo) {
t.enqueue(func() {
t.NotifyEvent(ctx, &livekit.WebhookEvent{