Class: Kaltura::KalturaLiveReportsService

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

Returns a new instance of KalturaLiveReportsService.



2371
2372
2373
# File 'lib/kaltura_client.rb', line 2371

def initialize(client)
  super(client)
end

Instance Method Details

#export_to_csv(report_type, params) ⇒ KalturaLiveReportExportResponse



2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
# File 'lib/kaltura_client.rb', line 2376

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

Returns:

  • (array)


2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
# File 'lib/kaltura_client.rb', line 2388

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



2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
# File 'lib/kaltura_client.rb', line 2401

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

Returns:

  • (string)


2415
2416
2417
2418
2419
2420
2421
2422
2423
# File 'lib/kaltura_client.rb', line 2415

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