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.
2484 2485 2486 |
# File 'lib/kaltura_client.rb', line 2484 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
2491 2492 2493 2494 2495 2496 2497 2498 2499 |
# File 'lib/kaltura_client.rb', line 2491 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 |