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.
2467 2468 2469 |
# File 'lib/kaltura_client.rb', line 2467 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
2474 2475 2476 2477 2478 2479 2480 2481 2482 |
# File 'lib/kaltura_client.rb', line 2474 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 |