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.
2444 2445 2446 |
# File 'lib/kaltura_client.rb', line 2444 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
2451 2452 2453 2454 2455 2456 2457 2458 2459 |
# File 'lib/kaltura_client.rb', line 2451 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 |