Hi @rpelletier,
It all seems quite in order. Including actual events in kalturadw.dwh_fact_events.
Can you try running the follow script to see what we get back from the API? Perhaps the problem is only in KMC..
<?php
if ($argc < 6){
echo "\nUsage: ".$argv[0] . ' <partner id> <admin secret> <service url> <start date> <end date>'."\n\n";
exit (1);
}
require_once('/opt/kaltura/web/content/clientlibs/php5/KalturaClient.php');
$userId = null;
$expiry = null;
$privileges = null;
$partnerId=$argv[1];
$secret = $argv[2];
$type = KalturaSessionType::ADMIN;
$config = new KalturaConfiguration($partnerId);
$config->serviceUrl = $argv[3];
$start_date=$argv[4];
$end_date=$argv[5];
$client = new KalturaClient($config);
$ks = $client->session->start($secret, $userId, $type, $partnerId, $expiry, $privileges);
$client->setKs($ks);
$result = $client->partner->get($partnerId);
$partner_name=$result->name;
$reportTitle = "Usgae for partner $partner_name ($partnerId)";
$reportText = "This shows the partner usage for $start_date - $end_date";
//$headers = 'bandwidth_consumption,average_storage,peak_storage,added_storage,deleted_storage,combined_bandwidth_storage,transcoding_consumption';
$reportType = KalturaReportType::TOP_CONTENT;
$reportInputFilter = new KalturaReportInputFilter();
$reportInputFilter->fromDay = $start_date;
$reportInputFilter->toDay = $end_date;
$dimension = null;
$pager = new KalturaFilterPager();
$order = null;
$objectIds = null;
$result = $client->report->getTable($reportType, $reportInputFilter,$pager, $order,$objectIds);
echo ('"'.$partner_name.'",'.$partnerId.','.$result->data."\n");
Run like so:
# php script.php
start date and end date should be in the format of %Y%m%d.