From 68427ca145baf6e3725825cf06cadbc2c0754e4e Mon Sep 17 00:00:00 2001 From: Zebadiah Long Date: Wed, 3 Oct 2018 19:38:35 +0000 Subject: [PATCH] documentation for redis peer bandwidth usage stats --- turndb/schema.stats.redis | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/turndb/schema.stats.redis b/turndb/schema.stats.redis index 428074cf..e8d0a072 100644 --- a/turndb/schema.stats.redis +++ b/turndb/schema.stats.redis @@ -17,11 +17,17 @@ in the traffic information must subscribe to the events as: psubscribe turn/realm/*/user/*/allocation/*/traffic +Additionally peer traffic is available with the key "turn/user//allocation//traffic/peer". +The application that is interested in the peer traffic information must subscribe to the events as: + + psubscribe turn/realm/*/user/*/allocation/*/traffic/peer + Total traffic information is also reported when the allocation is deleted. The keys are -"turn/user//allocation//total_traffic". Applications interested in the total amount -of traffic per allocation can subscribe to these events as: +"turn/user//allocation//total_traffic" or "turn/user//allocation//total_traffic/peer". +Applications interested in the total amount of traffic per allocation can subscribe to these events as: psubscribe turn/realm/*/user/*/allocation/*/total_traffic + psubscribe turn/realm/*/user/*/allocation/*/total_traffic/peer Or, to receive all allocation events: