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.
2372 2373 2374 |
# File 'lib/kaltura_client.rb', line 2372 def initialize(client) super(client) end |
Instance Method Details
#export_to_csv(report_type, params) ⇒ KalturaLiveReportExportResponse
2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 |
# File 'lib/kaltura_client.rb', line 2377 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
2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 |
# File 'lib/kaltura_client.rb', line 2389 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
2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 |
# File 'lib/kaltura_client.rb', line 2402 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
2416 2417 2418 2419 2420 2421 2422 2423 2424 |
# File 'lib/kaltura_client.rb', line 2416 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 |