Class: Kaltura::KalturaLiveStatsService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaLiveStatsService
- Defined in:
- lib/kaltura_client.rb
Overview
Stats Service
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#collect(event) ⇒ bool
Will write to the event log a single line representing the event KalturaStatsEvent $event.
-
#initialize(client) ⇒ KalturaLiveStatsService
constructor
A new instance of KalturaLiveStatsService.
Constructor Details
#initialize(client) ⇒ KalturaLiveStatsService
Returns a new instance of KalturaLiveStatsService.
2429 2430 2431 |
# File 'lib/kaltura_client.rb', line 2429 def initialize(client) super(client) end |
Instance Method Details
#collect(event) ⇒ bool
Will write to the event log a single line representing the event KalturaStatsEvent $event
2436 2437 2438 2439 2440 2441 2442 2443 2444 |
# File 'lib/kaltura_client.rb', line 2436 def collect(event) kparams = {} client.add_param(kparams, 'event', event) client.queue_service_action_call('livestats', 'collect', 'bool', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |