Class: Kaltura::KalturaStatsEvent
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaStatsEvent
- Defined in:
- lib/kaltura_types.rb
Overview
Will hold data from the Kaltura UI components to be passed on to the reports and analytics system
Instance Attribute Summary collapse
-
#application_id ⇒ Object
kaltura application name.
-
#client_ver ⇒ Object
Returns the value of attribute client_ver.
-
#context_id ⇒ Object
Returns the value of attribute context_id.
-
#control_id ⇒ Object
the id of the GUI control - will be used in the future to better understand what the user clicked.
-
#current_point ⇒ Object
the timestamp along the video when the event happend.
-
#duration ⇒ Object
the duration of the video in milliseconds - will make it much faster than quering the db for each entry.
-
#entry_id ⇒ Object
Returns the value of attribute entry_id.
-
#event_timestamp ⇒ Object
the client’s timestamp of this event.
-
#event_type ⇒ Object
Returns the value of attribute event_type.
-
#feature_type ⇒ Object
Returns the value of attribute feature_type.
-
#is_first_in_session ⇒ Object
will indicate if the event is thrown for the first video in the session.
-
#new_point ⇒ Object
timestamp of the new point on the timeline of the video after the user seeks.
-
#partner_id ⇒ Object
Returns the value of attribute partner_id.
-
#process_duration ⇒ Object
the time in milliseconds the event took.
-
#referrer ⇒ Object
the referrer of the client.
-
#seek ⇒ Object
true if the user ever used seek in this session.
-
#session_id ⇒ Object
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 ⇒ Object
Returns the value of attribute uiconf_id.
-
#unique_viewer ⇒ Object
the UV cookie - creates in the operational system and should be passed on ofr every event.
-
#user_id ⇒ Object
the partner’s user id.
-
#user_ip ⇒ Object
will be retrieved from the request of the user.
-
#widget_id ⇒ Object
Returns the value of attribute widget_id.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#application_id ⇒ Object
kaltura application name
9255 9256 9257 |
# File 'lib/kaltura_types.rb', line 9255 def application_id @application_id end |
#client_ver ⇒ Object
Returns the value of attribute client_ver.
9222 9223 9224 |
# File 'lib/kaltura_types.rb', line 9222 def client_ver @client_ver end |
#context_id ⇒ Object
Returns the value of attribute context_id.
9256 9257 9258 |
# File 'lib/kaltura_types.rb', line 9256 def context_id @context_id end |
#control_id ⇒ Object
the id of the GUI control - will be used in the future to better understand what the user clicked
9245 9246 9247 |
# File 'lib/kaltura_types.rb', line 9245 def control_id @control_id end |
#current_point ⇒ Object
the timestamp along the video when the event happend
9237 9238 9239 |
# File 'lib/kaltura_types.rb', line 9237 def current_point @current_point end |
#duration ⇒ Object
the duration of the video in milliseconds - will make it much faster than quering the db for each entry
9239 9240 9241 |
# File 'lib/kaltura_types.rb', line 9239 def duration @duration end |
#entry_id ⇒ Object
Returns the value of attribute entry_id.
9229 9230 9231 |
# File 'lib/kaltura_types.rb', line 9229 def entry_id @entry_id end |
#event_timestamp ⇒ Object
the client’s timestamp of this event
9225 9226 9227 |
# File 'lib/kaltura_types.rb', line 9225 def @event_timestamp end |
#event_type ⇒ Object
Returns the value of attribute event_type.
9223 9224 9225 |
# File 'lib/kaltura_types.rb', line 9223 def event_type @event_type end |
#feature_type ⇒ Object
Returns the value of attribute feature_type.
9257 9258 9259 |
# File 'lib/kaltura_types.rb', line 9257 def feature_type @feature_type end |
#is_first_in_session ⇒ Object
will indicate if the event is thrown for the first video in the session
9253 9254 9255 |
# File 'lib/kaltura_types.rb', line 9253 def is_first_in_session @is_first_in_session end |
#new_point ⇒ Object
timestamp of the new point on the timeline of the video after the user seeks
9249 9250 9251 |
# File 'lib/kaltura_types.rb', line 9249 def new_point @new_point end |
#partner_id ⇒ Object
Returns the value of attribute partner_id.
9228 9229 9230 |
# File 'lib/kaltura_types.rb', line 9228 def partner_id @partner_id end |
#process_duration ⇒ Object
the time in milliseconds the event took
9243 9244 9245 |
# File 'lib/kaltura_types.rb', line 9243 def process_duration @process_duration end |
#referrer ⇒ Object
the referrer of the client
9251 9252 9253 |
# File 'lib/kaltura_types.rb', line 9251 def referrer @referrer end |
#seek ⇒ Object
true if the user ever used seek in this session
9247 9248 9249 |
# File 'lib/kaltura_types.rb', line 9247 def seek @seek end |
#session_id ⇒ Object
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
9227 9228 9229 |
# File 'lib/kaltura_types.rb', line 9227 def session_id @session_id end |
#uiconf_id ⇒ Object
Returns the value of attribute uiconf_id.
9233 9234 9235 |
# File 'lib/kaltura_types.rb', line 9233 def uiconf_id @uiconf_id end |
#unique_viewer ⇒ Object
the UV cookie - creates in the operational system and should be passed on ofr every event
9231 9232 9233 |
# File 'lib/kaltura_types.rb', line 9231 def unique_viewer @unique_viewer end |
#user_id ⇒ Object
the partner’s user id
9235 9236 9237 |
# File 'lib/kaltura_types.rb', line 9235 def user_id @user_id end |
#user_ip ⇒ Object
will be retrieved from the request of the user
9241 9242 9243 |
# File 'lib/kaltura_types.rb', line 9241 def user_ip @user_ip end |
#widget_id ⇒ Object
Returns the value of attribute widget_id.
9232 9233 9234 |
# File 'lib/kaltura_types.rb', line 9232 def @widget_id end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 |
# File 'lib/kaltura_types.rb', line 9296 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. = 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. = 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 |