Class: GetStream::Generated::Models::QueryCallStatsMapResponse

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

Overview

Basic response information

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 = {}) ⇒ QueryCallStatsMapResponse

Initialize with attributes



56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 56

def initialize(attributes = {})
  super(attributes)
  @call_id = attributes[:call_id] || attributes['call_id']
  @call_session_id = attributes[:call_session_id] || attributes['call_session_id']
  @call_type = attributes[:call_type] || attributes['call_type']
  @duration = attributes[:duration] || attributes['duration']
  @counts = attributes[:counts] || attributes['counts']
  @call_ended_at = attributes[:call_ended_at] || attributes['call_ended_at'] || nil
  @call_started_at = attributes[:call_started_at] || attributes['call_started_at'] || nil
  @data_source = attributes[:data_source] || attributes['data_source'] || nil
  @end_time = attributes[:end_time] || attributes['end_time'] || nil
  @generated_at = attributes[:generated_at] || attributes['generated_at'] || nil
  @start_time = attributes[:start_time] || attributes['start_time'] || nil
  @publishers = attributes[:publishers] || attributes['publishers'] || nil
  @sfus = attributes[:sfus] || attributes['sfus'] || nil
  @subscribers = attributes[:subscribers] || attributes['subscribers'] || nil
end

Instance Attribute Details

#call_ended_atDateTime

Returns:

  • (DateTime)


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

def call_ended_at
  @call_ended_at
end

#call_idString

Returns:

  • (String)


14
15
16
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 14

def call_id
  @call_id
end

#call_session_idString

Returns:

  • (String)


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

def call_session_id
  @call_session_id
end

#call_started_atDateTime

Returns:

  • (DateTime)


32
33
34
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 32

def call_started_at
  @call_started_at
end

#call_typeString

Returns:

  • (String)


20
21
22
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 20

def call_type
  @call_type
end

#countsCallStatsParticipantCounts



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

def counts
  @counts
end

#data_sourceString

Returns:

  • (String)


35
36
37
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 35

def data_source
  @data_source
end

#durationString

Returns Duration of the request in milliseconds.

Returns:

  • (String)

    Duration of the request in milliseconds



23
24
25
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 23

def duration
  @duration
end

#end_timeDateTime

Returns:

  • (DateTime)


38
39
40
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 38

def end_time
  @end_time
end

#generated_atDateTime

Returns:

  • (DateTime)


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

def generated_at
  @generated_at
end

#publishersCallStatsMapPublishers



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

def publishers
  @publishers
end

#sfusCallStatsMapSFUs

Returns:



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

def sfus
  @sfus
end

#start_timeDateTime

Returns:

  • (DateTime)


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

def start_time
  @start_time
end

#subscribersCallStatsMapSubscribers



53
54
55
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 53

def subscribers
  @subscribers
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 75

def self.json_field_mappings
  {
    call_id: 'call_id',
    call_session_id: 'call_session_id',
    call_type: 'call_type',
    duration: 'duration',
    counts: 'counts',
    call_ended_at: 'call_ended_at',
    call_started_at: 'call_started_at',
    data_source: 'data_source',
    end_time: 'end_time',
    generated_at: 'generated_at',
    start_time: 'start_time',
    publishers: 'publishers',
    sfus: 'sfus',
    subscribers: 'subscribers'
  }
end