class Kaltura::KalturaLiveStatsService

Stats Service

Public Class Methods

new(client) click to toggle source
Calls superclass method
# File lib/kaltura_client.rb, line 2444
def initialize(client)
        super(client)
end

Public Instance Methods

collect(event) click to toggle source

Will write to the event log a single line representing the event

KalturaStatsEvent $event

@return [bool]

# 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