Class: GetStream::Generated::Models::PublishedTrackMetrics

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/published_track_metrics.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 = {}) ⇒ PublishedTrackMetrics

Initialize with attributes



35
36
37
38
39
40
41
42
43
44
# File 'lib/getstream_ruby/generated/models/published_track_metrics.rb', line 35

def initialize(attributes = {})
  super(attributes)
  @codec = attributes[:codec] || attributes['codec'] || nil
  @track_id = attributes[:track_id] || attributes['track_id'] || nil
  @track_type = attributes[:track_type] || attributes['track_type'] || nil
  @warnings = attributes[:warnings] || attributes['warnings'] || nil
  @bitrate = attributes[:bitrate] || attributes['bitrate'] || nil
  @framerate = attributes[:framerate] || attributes['framerate'] || nil
  @resolution = attributes[:resolution] || attributes['resolution'] || nil
end

Instance Attribute Details

#bitrateMetricTimeSeries

Returns:



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

def bitrate
  @bitrate
end

#codecString

Returns:

  • (String)


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

def codec
  @codec
end

#framerateMetricTimeSeries

Returns:



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

def framerate
  @framerate
end

#resolutionResolutionMetricsTimeSeries



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

def resolution
  @resolution
end

#track_idString

Returns:

  • (String)


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

def track_id
  @track_id
end

#track_typeString

Returns:

  • (String)


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

def track_type
  @track_type
end

#warningsArray<SessionWarningResponse>

Returns:



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

def warnings
  @warnings
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



47
48
49
50
51
52
53
54
55
56
57
# File 'lib/getstream_ruby/generated/models/published_track_metrics.rb', line 47

def self.json_field_mappings
  {
    codec: 'codec',
    track_id: 'track_id',
    track_type: 'track_type',
    warnings: 'warnings',
    bitrate: 'bitrate',
    framerate: 'framerate',
    resolution: 'resolution'
  }
end