bipbip 0.6.20 → 0.6.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bipbip/plugin/janus_rtpbroadcast.rb +10 -6
- data/lib/bipbip/plugin/mongodb.rb +2 -1
- data/lib/bipbip/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 174da8347786e9ab567f19333462144d97633d37
|
4
|
+
data.tar.gz: 3685e0304414384b269df248643fc8c644eb0487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62c40d66098b521c5ef5f5611cd961c0cc200c732215d111ef995784814814093a921ba73075fc57e5e79a6926d1a0adb9605b9ab9320c61074261a1224c00df
|
7
|
+
data.tar.gz: 730e023dcd9bf1aa872682053d94e262a9ac140f4360fbc6728e9b5159f303a17c392db2f606d4b73f11ed20f89432eeadc1a7a1f0ad942514fd0f3520f2b6bf
|
@@ -13,8 +13,10 @@ module Bipbip
|
|
13
13
|
{ name: 'streams_zero_bitrate_count', type: 'gauge', unit: 'Streams' },
|
14
14
|
{ name: 'streams_packet_loss_audio_max', type: 'gauge', unit: '%' },
|
15
15
|
{ name: 'streams_packet_loss_audio_avg', type: 'gauge', unit: '%' },
|
16
|
+
{ name: 'streams_packet_loss_audio_count', type: 'counter', unit: 'Packets' },
|
16
17
|
{ name: 'streams_packet_loss_video_max', type: 'gauge', unit: '%' },
|
17
|
-
{ name: 'streams_packet_loss_video_avg', type: 'gauge', unit: '%' }
|
18
|
+
{ name: 'streams_packet_loss_video_avg', type: 'gauge', unit: '%' },
|
19
|
+
{ name: 'streams_packet_loss_video_count', type: 'counter', unit: 'Packets' }
|
18
20
|
]
|
19
21
|
end
|
20
22
|
|
@@ -23,8 +25,8 @@ module Bipbip
|
|
23
25
|
mountpoints = data['data']['list']
|
24
26
|
streams = mountpoints.map { |mp| mp['streams'] }.flatten
|
25
27
|
|
26
|
-
packet_loss_audio_avg = streams.count != 0 ? streams.map { |s| s['stats']['audio']['packet-loss'] || 0 }.reduce(0, :+) / streams.count : 0
|
27
|
-
packet_loss_video_avg = streams.count != 0 ? streams.map { |s| s['stats']['video']['packet-loss'] || 0 }.reduce(0, :+) / streams.count : 0
|
28
|
+
packet_loss_audio_avg = streams.count != 0 ? streams.map { |s| s['stats']['audio']['packet-loss-rate'] || 0 }.reduce(0, :+) / streams.count : 0
|
29
|
+
packet_loss_video_avg = streams.count != 0 ? streams.map { |s| s['stats']['video']['packet-loss-rate'] || 0 }.reduce(0, :+) / streams.count : 0
|
28
30
|
|
29
31
|
{
|
30
32
|
'mountpoint_count' => mountpoints.count,
|
@@ -34,10 +36,12 @@ module Bipbip
|
|
34
36
|
'streams_bandwidth' => streams.map { |s| (s['stats']['video']['bitrate'] || 0) + (s['stats']['audio']['bitrate'] || 0) }.reduce(0, :+),
|
35
37
|
'streams_zero_fps_count' => streams.count { |s| s['frame']['fps'] == 0 },
|
36
38
|
'streams_zero_bitrate_count' => streams.count { |s| s['stats']['video']['bitrate'].nil? || s['stats']['video']['bitrate'] == 0 },
|
37
|
-
'streams_packet_loss_audio_max' => streams.map { |s| (s['stats']['audio']['packet-loss'] || 0) * 100 }.max,
|
39
|
+
'streams_packet_loss_audio_max' => streams.map { |s| (s['stats']['audio']['packet-loss-rate'] || 0) * 100 }.max,
|
38
40
|
'streams_packet_loss_audio_avg' => packet_loss_audio_avg * 100,
|
39
|
-
'
|
40
|
-
'
|
41
|
+
'streams_packet_loss_audio_count' => streams.map { |s| (s['stats']['audio']['packet-loss-count'] || 0) }.reduce(0, :+),
|
42
|
+
'streams_packet_loss_video_max' => streams.map { |s| (s['stats']['video']['packet-loss-rate'] || 0) * 100 }.max,
|
43
|
+
'streams_packet_loss_video_avg' => packet_loss_video_avg * 100,
|
44
|
+
'streams_packet_loss_video_count' => streams.map { |s| (s['stats']['video']['packet-loss-count'] || 0) }.reduce(0, :+)
|
41
45
|
}
|
42
46
|
end
|
43
47
|
|
data/lib/bipbip/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bipbip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cargo Media
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-06-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: copperegg-revealmetrics
|