Webhook analytics event. (#3423)

* Webhook analytics event.

* deps

* generate

* nil notifier
This commit is contained in:
Raja Subramanian
2025-02-13 10:39:45 +05:30
committed by GitHub
parent 7fef374b19
commit 1ae2e48c2e
6 changed files with 91 additions and 34 deletions
+11
View File
@@ -522,6 +522,17 @@ func (t *telemetryService) APICall(ctx context.Context, apiCallInfo *livekit.API
})
}
func (t *telemetryService) Webhook(ctx context.Context, webhookInfo *livekit.WebhookInfo) {
t.enqueue(func() {
ev := &livekit.AnalyticsEvent{
Type: livekit.AnalyticsEventType_WEBHOOK,
Timestamp: timestamppb.Now(),
Webhook: webhookInfo,
}
t.SendEvent(ctx, ev)
})
}
// returns a livekit.Room with only name and sid filled out
// returns nil if room is not found
func (t *telemetryService) getRoomDetails(participantID livekit.ParticipantID) *livekit.Room {