Class: Kaltura::KalturaSystemPartnerUsageItem

Inherits:
KalturaObjectBase show all
Defined in:
lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#audio_entries_countObject

Number of new audio entries created during specific date range



56
57
58
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 56

def audio_entries_count
  @audio_entries_count
end

#avg_storageObject

The average amount of storage consumption during the given date range for the specific publisher



68
69
70
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 68

def avg_storage
  @avg_storage
end

#bandwidthObject

The total bandwidth usage during the given date range (in MB)



60
61
62
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 60

def bandwidth
  @bandwidth
end

#combined_bandwidth_storageObject

The combined amount of bandwidth and storage consumed during the given date range for the specific publisher



70
71
72
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 70

def combined_bandwidth_storage
  @combined_bandwidth_storage
end

#deleted_storageObject

Amount of deleted storage in MB



72
73
74
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 72

def deleted_storage
  @deleted_storage
end

#entries_countObject

Number of new entries created during specific date range



48
49
50
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 48

def entries_count
  @entries_count
end

#image_entries_countObject

Number of new image entries created during specific date range



54
55
56
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 54

def image_entries_count
  @image_entries_count
end

#mix_entries_countObject

Number of new mix entries created during specific date range



58
59
60
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 58

def mix_entries_count
  @mix_entries_count
end

#partner_created_atObject

Partner creation date (Unix timestamp)



42
43
44
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 42

def partner_created_at
  @partner_created_at
end

#partner_idObject

Partner ID



34
35
36
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 34

def partner_id
  @partner_id
end

#partner_nameObject

Partner name



36
37
38
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 36

def partner_name
  @partner_name
end

#partner_packageObject

Partner package



40
41
42
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 40

def partner_package
  @partner_package
end

#partner_statusObject

Partner status



38
39
40
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 38

def partner_status
  @partner_status
end

#peak_storageObject

The peak amount of storage consumption during the given date range for the specific publisher



66
67
68
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 66

def peak_storage
  @peak_storage
end

#playsObject

Number of plays in the specific date range



46
47
48
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 46

def plays
  @plays
end

#storageObject

The change in storage consumption (new uploads) during the given date range (in MB)



64
65
66
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 64

def storage
  @storage
end

#total_entries_countObject

Total number of entries



50
51
52
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 50

def total_entries_count
  @total_entries_count
end

#total_storageObject

The total storage consumption (in MB)



62
63
64
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 62

def total_storage
  @total_storage
end

#transcoding_usageObject

Amount of transcoding usage in MB



74
75
76
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 74

def transcoding_usage
  @transcoding_usage
end

#video_entries_countObject

Number of new video entries created during specific date range



52
53
54
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 52

def video_entries_count
  @video_entries_count
end

#viewsObject

Number of player loads in the specific date range



44
45
46
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 44

def views
  @views
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# File 'lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb', line 137

def from_xml(xml_element)
	super
	if xml_element.elements['partnerId'] != nil
		self.partner_id = xml_element.elements['partnerId'].text
	end
	if xml_element.elements['partnerName'] != nil
		self.partner_name = xml_element.elements['partnerName'].text
	end
	if xml_element.elements['partnerStatus'] != nil
		self.partner_status = xml_element.elements['partnerStatus'].text
	end
	if xml_element.elements['partnerPackage'] != nil
		self.partner_package = xml_element.elements['partnerPackage'].text
	end
	if xml_element.elements['partnerCreatedAt'] != nil
		self.partner_created_at = xml_element.elements['partnerCreatedAt'].text
	end
	if xml_element.elements['views'] != nil
		self.views = xml_element.elements['views'].text
	end
	if xml_element.elements['plays'] != nil
		self.plays = xml_element.elements['plays'].text
	end
	if xml_element.elements['entriesCount'] != nil
		self.entries_count = xml_element.elements['entriesCount'].text
	end
	if xml_element.elements['totalEntriesCount'] != nil
		self.total_entries_count = xml_element.elements['totalEntriesCount'].text
	end
	if xml_element.elements['videoEntriesCount'] != nil
		self.video_entries_count = xml_element.elements['videoEntriesCount'].text
	end
	if xml_element.elements['imageEntriesCount'] != nil
		self.image_entries_count = xml_element.elements['imageEntriesCount'].text
	end
	if xml_element.elements['audioEntriesCount'] != nil
		self.audio_entries_count = xml_element.elements['audioEntriesCount'].text
	end
	if xml_element.elements['mixEntriesCount'] != nil
		self.mix_entries_count = xml_element.elements['mixEntriesCount'].text
	end
	if xml_element.elements['bandwidth'] != nil
		self.bandwidth = xml_element.elements['bandwidth'].text
	end
	if xml_element.elements['totalStorage'] != nil
		self.total_storage = xml_element.elements['totalStorage'].text
	end
	if xml_element.elements['storage'] != nil
		self.storage = xml_element.elements['storage'].text
	end
	if xml_element.elements['peakStorage'] != nil
		self.peak_storage = xml_element.elements['peakStorage'].text
	end
	if xml_element.elements['avgStorage'] != nil
		self.avg_storage = xml_element.elements['avgStorage'].text
	end
	if xml_element.elements['combinedBandwidthStorage'] != nil
		self.combined_bandwidth_storage = xml_element.elements['combinedBandwidthStorage'].text
	end
	if xml_element.elements['deletedStorage'] != nil
		self.deleted_storage = xml_element.elements['deletedStorage'].text
	end
	if xml_element.elements['transcodingUsage'] != nil
		self.transcoding_usage = xml_element.elements['transcodingUsage'].text
	end
end