Class: Kaltura::KalturaAnalyticsService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_client.rb

Overview

api for getting analytics data

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaAnalyticsService

Returns a new instance of KalturaAnalyticsService.



236
237
238
# File 'lib/kaltura_client.rb', line 236

def initialize(client)
  super(client)
end

Instance Method Details

#query(filter, pager = KalturaNotImplemented) ⇒ KalturaReportResponse

report query action allows to get a analytics data for specific query dimensions, metrics and filters.



242
243
244
245
246
247
248
249
250
251
# File 'lib/kaltura_client.rb', line 242

def query(filter, pager=KalturaNotImplemented)
  kparams = {}
  client.add_param(kparams, 'filter', filter)
  client.add_param(kparams, 'pager', pager)
  client.queue_service_action_call('analytics', 'query', 'KalturaReportResponse', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end