The Rust server records room analytics and duration; expose them through a typed SDK service only when included in your published version.
Rust endpoints
text
GET /rooms/:room_id/analytics
GET /rooms/:room_id/durationTyped service example
dart
final analytics = await sdk.analytics.analytics(roomId);
final duration = await sdk.analytics.duration(roomId);Recommended metrics
| Metric | Source |
|---|---|
| Room joins and leaves | Rust room service and WebSocket |
| Current online members | Redis room presence |
| Room duration | MySQL analytics |
| Chat and reactions | Rust realtime events |
| Gifts and wallet totals | Laravel financial records |
| Media quality | LiveKit telemetry |
Use Redis for live counters and MySQL for permanent analytics history.