Analytics: send local node room state/info (#2335)
* Analytics: send local node room state/info Signed-off-by: shishir gowda <shishir@livekit.io>
This commit is contained in:
@@ -73,6 +73,7 @@ type TelemetryService interface {
|
||||
IngressStarted(ctx context.Context, info *livekit.IngressInfo)
|
||||
IngressUpdated(ctx context.Context, info *livekit.IngressInfo)
|
||||
IngressEnded(ctx context.Context, info *livekit.IngressInfo)
|
||||
LocalRoomState(ctx context.Context, info *livekit.AnalyticsNodeRooms)
|
||||
|
||||
// helpers
|
||||
AnalyticsService
|
||||
@@ -187,3 +188,9 @@ func (t *telemetryService) cleanupWorkers() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (t *telemetryService) LocalRoomState(ctx context.Context, info *livekit.AnalyticsNodeRooms) {
|
||||
t.enqueue(func() {
|
||||
t.SendNodeRoomStates(ctx, info)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user