class Kaltura::KalturaStatsEvent

Will hold data from the Kaltura UI components to be passed on to the reports and analytics system

Attributes

application_id[RW]

kaltura application name

client_ver[RW]
context_id[RW]
control_id[RW]

the id of the GUI control - will be used in the future to better understand what the user clicked

current_point[RW]

the timestamp along the video when the event happend

duration[RW]

the duration of the video in milliseconds - will make it much faster than quering the db for each entry

entry_id[RW]
event_timestamp[RW]

the client's timestamp of this event

event_type[RW]
feature_type[RW]
is_first_in_session[RW]

will indicate if the event is thrown for the first video in the session

new_point[RW]

timestamp of the new point on the timeline of the video after the user seeks

partner_id[RW]
process_duration[RW]

the time in milliseconds the event took

referrer[RW]

the referrer of the client

seek[RW]

true if the user ever used seek in this session

session_id[RW]

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

uiconf_id[RW]
unique_viewer[RW]

the UV cookie - creates in the operational system and should be passed on ofr every event

user_id[RW]

the partner's user id

user_ip[RW]

will be retrieved from the request of the user

widget_id[RW]

Public Instance Methods

context_id=(val) click to toggle source
# File lib/kaltura_types.rb, line 9461
def context_id=(val)
        @context_id = val.to_i
end
current_point=(val) click to toggle source
# File lib/kaltura_types.rb, line 9443
def current_point=(val)
        @current_point = val.to_i
end
duration=(val) click to toggle source
# File lib/kaltura_types.rb, line 9446
def duration=(val)
        @duration = val.to_i
end
event_timestamp=(val) click to toggle source
# File lib/kaltura_types.rb, line 9434
def event_timestamp=(val)
        @event_timestamp = val.to_f
end
event_type=(val) click to toggle source
# File lib/kaltura_types.rb, line 9431
def event_type=(val)
        @event_type = val.to_i
end
feature_type=(val) click to toggle source
# File lib/kaltura_types.rb, line 9464
def feature_type=(val)
        @feature_type = val.to_i
end
from_xml(xml_element) click to toggle source
Calls superclass method 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
is_first_in_session=(val) click to toggle source
# File lib/kaltura_types.rb, line 9458
def is_first_in_session=(val)
        @is_first_in_session = to_b(val)
end
new_point=(val) click to toggle source
# File lib/kaltura_types.rb, line 9455
def new_point=(val)
        @new_point = val.to_i
end
partner_id=(val) click to toggle source
# File lib/kaltura_types.rb, line 9437
def partner_id=(val)
        @partner_id = val.to_i
end
process_duration=(val) click to toggle source
# File lib/kaltura_types.rb, line 9449
def process_duration=(val)
        @process_duration = val.to_i
end
seek=(val) click to toggle source
# File lib/kaltura_types.rb, line 9452
def seek=(val)
        @seek = to_b(val)
end
uiconf_id=(val) click to toggle source
# File lib/kaltura_types.rb, line 9440
def uiconf_id=(val)
        @uiconf_id = val.to_i
end