Class: Kaltura::Service::StatsService

Inherits:
BaseService show all
Defined in:
lib/kaltura/service/stats_service.rb

Instance Attribute Summary

Attributes inherited from BaseService

#client

Instance Method Summary collapse

Methods inherited from BaseService

#initialize, #perform_request

Constructor Details

This class inherits a constructor from Kaltura::Service::BaseService

Instance Method Details

#collect(event) ⇒ Object



5
6
7
8
9
# File 'lib/kaltura/service/stats_service.rb', line 5

def collect(event)
	kparams = {}
	client.add_param(kparams, 'event', event)
	perform_request('stats','collect',kparams,false)
end

#kmc_collect(kmc_event) ⇒ Object



11
12
13
14
15
# File 'lib/kaltura/service/stats_service.rb', line 11

def kmc_collect(kmc_event)
	kparams = {}
	client.add_param(kparams, 'kmcEvent', kmc_event)
	perform_request('stats','kmcCollect',kparams,false)
end

#report_kce_error(kaltura_ce_error) ⇒ Object



17
18
19
20
21
# File 'lib/kaltura/service/stats_service.rb', line 17

def report_kce_error(kaltura_ce_error)
	kparams = {}
	client.add_param(kparams, 'kalturaCEError', kaltura_ce_error)
	perform_request('stats','reportKceError',kparams,false)
end