Class: Kaltura::KalturaReportService

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) ⇒ KalturaReportService

Returns a new instance of KalturaReportService.



4675
4676
4677
# File 'lib/kaltura_client.rb', line 4675

def initialize(client)
	super(client)
end

Instance Method Details

#get_graphs(report_type, report_input_filter, dimension = '', object_ids = '') ⇒ Object



4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
# File 'lib/kaltura_client.rb', line 4679

def get_graphs(report_type, report_input_filter, dimension='', object_ids='')
	kparams = {}
	client.add_param(kparams, 'reportType', report_type);
	client.add_param(kparams, 'reportInputFilter', report_input_filter);
	client.add_param(kparams, 'dimension', dimension);
	client.add_param(kparams, 'objectIds', object_ids);
	client.queue_service_action_call('report', 'getGraphs', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#get_table(report_type, report_input_filter, pager, order = '', object_ids = '') ⇒ Object



4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
# File 'lib/kaltura_client.rb', line 4704

def get_table(report_type, report_input_filter, pager, order='', object_ids='')
	kparams = {}
	client.add_param(kparams, 'reportType', report_type);
	client.add_param(kparams, 'reportInputFilter', report_input_filter);
	client.add_param(kparams, 'pager', pager);
	client.add_param(kparams, 'order', order);
	client.add_param(kparams, 'objectIds', object_ids);
	client.queue_service_action_call('report', 'getTable', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#get_total(report_type, report_input_filter, object_ids = '') ⇒ Object



4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
# File 'lib/kaltura_client.rb', line 4692

def get_total(report_type, report_input_filter, object_ids='')
	kparams = {}
	client.add_param(kparams, 'reportType', report_type);
	client.add_param(kparams, 'reportInputFilter', report_input_filter);
	client.add_param(kparams, 'objectIds', object_ids);
	client.queue_service_action_call('report', 'getTotal', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#get_url_for_report_as_csv(report_title, report_text, headers, report_type, report_input_filter, dimension = '', pager = nil, order = '', object_ids = '') ⇒ Object



4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
# File 'lib/kaltura_client.rb', line 4718

def get_url_for_report_as_csv(report_title, report_text, headers, report_type, report_input_filter, dimension='', pager=nil, order='', object_ids='')
	kparams = {}
	client.add_param(kparams, 'reportTitle', report_title);
	client.add_param(kparams, 'reportText', report_text);
	client.add_param(kparams, 'headers', headers);
	client.add_param(kparams, 'reportType', report_type);
	client.add_param(kparams, 'reportInputFilter', report_input_filter);
	client.add_param(kparams, 'dimension', dimension);
	client.add_param(kparams, 'pager', pager);
	client.add_param(kparams, 'order', order);
	client.add_param(kparams, 'objectIds', object_ids);
	client.queue_service_action_call('report', 'getUrlForReportAsCsv', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end