Class: Kaltura::KalturaStatsEvent

Inherits:
KalturaObjectBase show all
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

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#application_idObject

kaltura application name



9391
9392
9393
# File 'lib/kaltura_types.rb', line 9391

def application_id
  @application_id
end

#client_verObject

Returns the value of attribute client_ver.



9358
9359
9360
# File 'lib/kaltura_types.rb', line 9358

def client_ver
  @client_ver
end

#context_idObject

Returns the value of attribute context_id.



9392
9393
9394
# File 'lib/kaltura_types.rb', line 9392

def context_id
  @context_id
end

#control_idObject

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



9381
9382
9383
# File 'lib/kaltura_types.rb', line 9381

def control_id
  @control_id
end

#current_pointObject

the timestamp along the video when the event happend



9373
9374
9375
# File 'lib/kaltura_types.rb', line 9373

def current_point
  @current_point
end

#durationObject

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



9375
9376
9377
# File 'lib/kaltura_types.rb', line 9375

def duration
  @duration
end

#entry_idObject

Returns the value of attribute entry_id.



9365
9366
9367
# File 'lib/kaltura_types.rb', line 9365

def entry_id
  @entry_id
end

#event_timestampObject

the client’s timestamp of this event



9361
9362
9363
# File 'lib/kaltura_types.rb', line 9361

def event_timestamp
  @event_timestamp
end

#event_typeObject

Returns the value of attribute event_type.



9359
9360
9361
# File 'lib/kaltura_types.rb', line 9359

def event_type
  @event_type
end

#feature_typeObject

Returns the value of attribute feature_type.



9393
9394
9395
# File 'lib/kaltura_types.rb', line 9393

def feature_type
  @feature_type
end

#is_first_in_sessionObject

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



9389
9390
9391
# File 'lib/kaltura_types.rb', line 9389

def is_first_in_session
  @is_first_in_session
end

#new_pointObject

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



9385
9386
9387
# File 'lib/kaltura_types.rb', line 9385

def new_point
  @new_point
end

#partner_idObject

Returns the value of attribute partner_id.



9364
9365
9366
# File 'lib/kaltura_types.rb', line 9364

def partner_id
  @partner_id
end

#process_durationObject

the time in milliseconds the event took



9379
9380
9381
# File 'lib/kaltura_types.rb', line 9379

def process_duration
  @process_duration
end

#referrerObject

the referrer of the client



9387
9388
9389
# File 'lib/kaltura_types.rb', line 9387

def referrer
  @referrer
end

#seekObject

true if the user ever used seek in this session



9383
9384
9385
# File 'lib/kaltura_types.rb', line 9383

def seek
  @seek
end

#session_idObject

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



9363
9364
9365
# File 'lib/kaltura_types.rb', line 9363

def session_id
  @session_id
end

#uiconf_idObject

Returns the value of attribute uiconf_id.



9369
9370
9371
# File 'lib/kaltura_types.rb', line 9369

def uiconf_id
  @uiconf_id
end

#unique_viewerObject

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



9367
9368
9369
# File 'lib/kaltura_types.rb', line 9367

def unique_viewer
  @unique_viewer
end

#user_idObject

the partner’s user id



9371
9372
9373
# File 'lib/kaltura_types.rb', line 9371

def user_id
  @user_id
end

#user_ipObject

will be retrieved from the request of the user



9377
9378
9379
# File 'lib/kaltura_types.rb', line 9377

def user_ip
  @user_ip
end

#widget_idObject

Returns the value of attribute widget_id.



9368
9369
9370
# File 'lib/kaltura_types.rb', line 9368

def widget_id
  @widget_id
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
# File 'lib/kaltura_types.rb', line 9432

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