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.



2410
2411
2412
# File 'lib/kaltura_client.rb', line 2410

def initialize(client)
  super(client)
end

Instance Method Details

#export_to_csv(report_type, params) ⇒ KalturaLiveReportExportResponse



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

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)


2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
# File 'lib/kaltura_client.rb', line 2427

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



2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
# File 'lib/kaltura_client.rb', line 2440

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)


2454
2455
2456
2457
2458
2459
2460
2461
2462
# File 'lib/kaltura_client.rb', line 2454

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