Class: Kaltura::KalturaStatsService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_client.rb

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaStatsService

Returns a new instance of KalturaStatsService.



4820
4821
4822
# File 'lib/kaltura_client.rb', line 4820

def initialize(client)
	super(client)
end

Instance Method Details

#collect(event) ⇒ Object



4824
4825
4826
4827
4828
4829
4830
4831
4832
# File 'lib/kaltura_client.rb', line 4824

def collect(event)
	kparams = {}
	client.add_param(kparams, 'event', event);
	client.queue_service_action_call('stats', 'collect', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#kmc_collect(kmc_event) ⇒ Object



4834
4835
4836
4837
4838
4839
4840
4841
4842
# File 'lib/kaltura_client.rb', line 4834

def kmc_collect(kmc_event)
	kparams = {}
	client.add_param(kparams, 'kmcEvent', kmc_event);
	client.queue_service_action_call('stats', 'kmcCollect', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#report_kce_error(kaltura_ce_error) ⇒ Object



4844
4845
4846
4847
4848
4849
4850
4851
4852
# File 'lib/kaltura_client.rb', line 4844

def report_kce_error(kaltura_ce_error)
	kparams = {}
	client.add_param(kparams, 'kalturaCEError', kaltura_ce_error);
	client.queue_service_action_call('stats', 'reportKceError', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end