Class: GetStream::Generated::Models::CallStatsParticipantCounts
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::CallStatsParticipantCounts
- Defined in:
- lib/getstream_ruby/generated/models/call_stats_participant_counts.rb
Instance Attribute Summary collapse
- #average_jitter_ms ⇒ Integer
- #average_latency_ms ⇒ Integer
- #avg_user_rating ⇒ Float
- #call_event_count ⇒ Integer
- #cq_score ⇒ Integer
- #live_sessions ⇒ Integer
- #max_freezes_duration_ms ⇒ Integer
- #min_user_rating ⇒ Integer
- #participants ⇒ Integer
- #peak_concurrent_sessions ⇒ Integer
- #peak_concurrent_users ⇒ Integer
- #publishers ⇒ Integer
- #sessions ⇒ Integer
- #sfus_used ⇒ Integer
- #total_participant_duration ⇒ Integer
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ CallStatsParticipantCounts
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ CallStatsParticipantCounts
Initialize with attributes
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 59 def initialize(attributes = {}) super(attributes) @live_sessions = attributes[:live_sessions] || attributes['live_sessions'] @participants = attributes[:participants] || attributes['participants'] @peak_concurrent_sessions = attributes[:peak_concurrent_sessions] || attributes['peak_concurrent_sessions'] @peak_concurrent_users = attributes[:peak_concurrent_users] || attributes['peak_concurrent_users'] @publishers = attributes[:publishers] || attributes['publishers'] @sessions = attributes[:sessions] || attributes['sessions'] @sfus_used = attributes[:sfus_used] || attributes['sfus_used'] @average_jitter_ms = attributes[:average_jitter_ms] || attributes['average_jitter_ms'] || nil @average_latency_ms = attributes[:average_latency_ms] || attributes['average_latency_ms'] || nil @avg_user_rating = attributes[:avg_user_rating] || attributes['avg_user_rating'] || nil @call_event_count = attributes[:call_event_count] || attributes['call_event_count'] || nil @cq_score = attributes[:cq_score] || attributes['cq_score'] || nil @max_freezes_duration_ms = attributes[:max_freezes_duration_ms] || attributes['max_freezes_duration_ms'] || nil @min_user_rating = attributes[:min_user_rating] || attributes['min_user_rating'] || nil @total_participant_duration = attributes[:total_participant_duration] || attributes['total_participant_duration'] || nil end |
Instance Attribute Details
#average_jitter_ms ⇒ Integer
35 36 37 |
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 35 def average_jitter_ms @average_jitter_ms end |
#average_latency_ms ⇒ Integer
38 39 40 |
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 38 def average_latency_ms @average_latency_ms end |
#avg_user_rating ⇒ Float
41 42 43 |
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 41 def @avg_user_rating end |
#call_event_count ⇒ Integer
44 45 46 |
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 44 def call_event_count @call_event_count end |
#cq_score ⇒ Integer
47 48 49 |
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 47 def cq_score @cq_score end |
#live_sessions ⇒ Integer
14 15 16 |
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 14 def live_sessions @live_sessions end |
#max_freezes_duration_ms ⇒ Integer
50 51 52 |
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 50 def max_freezes_duration_ms @max_freezes_duration_ms end |
#min_user_rating ⇒ Integer
53 54 55 |
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 53 def @min_user_rating end |
#participants ⇒ Integer
17 18 19 |
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 17 def participants @participants end |
#peak_concurrent_sessions ⇒ Integer
20 21 22 |
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 20 def peak_concurrent_sessions @peak_concurrent_sessions end |
#peak_concurrent_users ⇒ Integer
23 24 25 |
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 23 def peak_concurrent_users @peak_concurrent_users end |
#publishers ⇒ Integer
26 27 28 |
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 26 def publishers @publishers end |
#sessions ⇒ Integer
29 30 31 |
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 29 def sessions @sessions end |
#sfus_used ⇒ Integer
32 33 34 |
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 32 def sfus_used @sfus_used end |
#total_participant_duration ⇒ Integer
56 57 58 |
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 56 def total_participant_duration @total_participant_duration end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 79 def self.json_field_mappings { live_sessions: 'live_sessions', participants: 'participants', peak_concurrent_sessions: 'peak_concurrent_sessions', peak_concurrent_users: 'peak_concurrent_users', publishers: 'publishers', sessions: 'sessions', sfus_used: 'sfus_used', average_jitter_ms: 'average_jitter_ms', average_latency_ms: 'average_latency_ms', avg_user_rating: 'avg_user_rating', call_event_count: 'call_event_count', cq_score: 'cq_score', max_freezes_duration_ms: 'max_freezes_duration_ms', min_user_rating: 'min_user_rating', total_participant_duration: 'total_participant_duration' } end |