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) ⇒ Object
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.
2411 2412 2413 |
# File 'lib/kaltura_client.rb', line 2411 def initialize(client) super(client) end |
Instance Method Details
#collect(event) ⇒ Object
Will write to the event log a single line representing the event KalturaStatsEvent $event
2418 2419 2420 2421 2422 2423 2424 2425 2426 |
# File 'lib/kaltura_client.rb', line 2418 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 |