Class: Kaltura::KalturaLiveReportsService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaLiveReportsService
- Defined in:
- lib/kaltura_client.rb
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
- #export_to_csv(report_type, params) ⇒ KalturaLiveReportExportResponse
- #get_events(report_type, filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ array
- #get_report(report_type, filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaLiveStatsListResponse
-
#initialize(client) ⇒ KalturaLiveReportsService
constructor
A new instance of KalturaLiveReportsService.
-
#serve_report(id) ⇒ string
Will serve a requested report.
Constructor Details
#initialize(client) ⇒ KalturaLiveReportsService
Returns a new instance of KalturaLiveReportsService.
2427 2428 2429 |
# File 'lib/kaltura_client.rb', line 2427 def initialize(client) super(client) end |
Instance Method Details
#export_to_csv(report_type, params) ⇒ KalturaLiveReportExportResponse
2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 |
# File 'lib/kaltura_client.rb', line 2432 def export_to_csv(report_type, params) kparams = {} client.add_param(kparams, 'reportType', report_type) client.add_param(kparams, 'params', params) client.queue_service_action_call('livereports', 'exportToCsv', 'KalturaLiveReportExportResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get_events(report_type, filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ array
2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 |
# File 'lib/kaltura_client.rb', line 2444 def get_events(report_type, filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'reportType', report_type) client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('livereports', 'getEvents', 'KalturaReportGraph', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get_report(report_type, filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaLiveStatsListResponse
2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 |
# File 'lib/kaltura_client.rb', line 2457 def get_report(report_type, filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'reportType', report_type) client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('livereports', 'getReport', 'KalturaLiveStatsListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#serve_report(id) ⇒ string
Will serve a requested report
2471 2472 2473 2474 2475 2476 2477 2478 2479 |
# File 'lib/kaltura_client.rb', line 2471 def serve_report(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('livereports', 'serveReport', 'string', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |