class Kaltura::KalturaStatsEvent
Will hold data from the Kaltura
UI components to be passed on to the reports and analytics system
Attributes
kaltura application name
the id of the GUI control - will be used in the future to better understand what the user clicked
the timestamp along the video when the event happend
the duration of the video in milliseconds - will make it much faster than quering the db for each entry
the client's timestamp of this event
will indicate if the event is thrown for the first video in the session
timestamp of the new point on the timeline of the video after the user seeks
the time in milliseconds the event took
the referrer of the client
true if the user ever used seek in this session
a unique string generated by the client that will represent the client-side session: the primary component will pass it on to other components that sprout from it
the UV cookie - creates in the operational system and should be passed on ofr every event
the partner's user id
will be retrieved from the request of the user
Public Instance Methods
# File lib/kaltura_types.rb, line 9461 def context_id=(val) @context_id = val.to_i end
# File lib/kaltura_types.rb, line 9443 def current_point=(val) @current_point = val.to_i end
# File lib/kaltura_types.rb, line 9446 def duration=(val) @duration = val.to_i end
# File lib/kaltura_types.rb, line 9434 def event_timestamp=(val) @event_timestamp = val.to_f end
# File lib/kaltura_types.rb, line 9431 def event_type=(val) @event_type = val.to_i end
# File lib/kaltura_types.rb, line 9464 def feature_type=(val) @feature_type = val.to_i end
Kaltura::KalturaObjectBase#from_xml
# File lib/kaltura_types.rb, line 9468 def from_xml(xml_element) super if xml_element.elements['clientVer'] != nil self.client_ver = xml_element.elements['clientVer'].text end if xml_element.elements['eventType'] != nil self.event_type = xml_element.elements['eventType'].text end if xml_element.elements['eventTimestamp'] != nil self.event_timestamp = xml_element.elements['eventTimestamp'].text end if xml_element.elements['sessionId'] != nil self.session_id = xml_element.elements['sessionId'].text end if xml_element.elements['partnerId'] != nil self.partner_id = xml_element.elements['partnerId'].text end if xml_element.elements['entryId'] != nil self.entry_id = xml_element.elements['entryId'].text end if xml_element.elements['uniqueViewer'] != nil self.unique_viewer = xml_element.elements['uniqueViewer'].text end if xml_element.elements['widgetId'] != nil self.widget_id = xml_element.elements['widgetId'].text end if xml_element.elements['uiconfId'] != nil self.uiconf_id = xml_element.elements['uiconfId'].text end if xml_element.elements['userId'] != nil self.user_id = xml_element.elements['userId'].text end if xml_element.elements['currentPoint'] != nil self.current_point = xml_element.elements['currentPoint'].text end if xml_element.elements['duration'] != nil self.duration = xml_element.elements['duration'].text end if xml_element.elements['userIp'] != nil self.user_ip = xml_element.elements['userIp'].text end if xml_element.elements['processDuration'] != nil self.process_duration = xml_element.elements['processDuration'].text end if xml_element.elements['controlId'] != nil self.control_id = xml_element.elements['controlId'].text end if xml_element.elements['seek'] != nil self.seek = xml_element.elements['seek'].text end if xml_element.elements['newPoint'] != nil self.new_point = xml_element.elements['newPoint'].text end if xml_element.elements['referrer'] != nil self.referrer = xml_element.elements['referrer'].text end if xml_element.elements['isFirstInSession'] != nil self.is_first_in_session = xml_element.elements['isFirstInSession'].text end if xml_element.elements['applicationId'] != nil self.application_id = xml_element.elements['applicationId'].text end if xml_element.elements['contextId'] != nil self.context_id = xml_element.elements['contextId'].text end if xml_element.elements['featureType'] != nil self.feature_type = xml_element.elements['featureType'].text end end
# File lib/kaltura_types.rb, line 9458 def is_first_in_session=(val) @is_first_in_session = to_b(val) end
# File lib/kaltura_types.rb, line 9455 def new_point=(val) @new_point = val.to_i end
# File lib/kaltura_types.rb, line 9437 def partner_id=(val) @partner_id = val.to_i end
# File lib/kaltura_types.rb, line 9449 def process_duration=(val) @process_duration = val.to_i end
# File lib/kaltura_types.rb, line 9452 def seek=(val) @seek = to_b(val) end
# File lib/kaltura_types.rb, line 9440 def uiconf_id=(val) @uiconf_id = val.to_i end