Class: GetStream::Generated::Models::CallStatsParticipantCounts

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/call_stats_participant_counts.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ CallStatsParticipantCounts

Initialize with attributes



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 53

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
  @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
  @total_participant_duration = attributes[:total_participant_duration] || attributes['total_participant_duration'] || nil
end

Instance Attribute Details

#average_jitter_msInteger

Returns:

  • (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_msInteger

Returns:

  • (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

#call_event_countInteger

Returns:

  • (Integer)


41
42
43
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 41

def call_event_count
  @call_event_count
end

#cq_scoreInteger

Returns:

  • (Integer)


44
45
46
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 44

def cq_score
  @cq_score
end

#live_sessionsInteger

Returns:

  • (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_msInteger

Returns:

  • (Integer)


47
48
49
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 47

def max_freezes_duration_ms
  @max_freezes_duration_ms
end

#participantsInteger

Returns:

  • (Integer)


17
18
19
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 17

def participants
  @participants
end

#peak_concurrent_sessionsInteger

Returns:

  • (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_usersInteger

Returns:

  • (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

#publishersInteger

Returns:

  • (Integer)


26
27
28
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 26

def publishers
  @publishers
end

#sessionsInteger

Returns:

  • (Integer)


29
30
31
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 29

def sessions
  @sessions
end

#sfus_usedInteger

Returns:

  • (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_durationInteger

Returns:

  • (Integer)


50
51
52
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 50

def total_participant_duration
  @total_participant_duration
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 71

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',
    call_event_count: 'call_event_count',
    cq_score: 'cq_score',
    max_freezes_duration_ms: 'max_freezes_duration_ms',
    total_participant_duration: 'total_participant_duration'
  }
end