Example #1
0
 public function __construct(KalturaLiveReportExportJobData $data, $reportNameFormat, $timeRange)
 {
     if (!$data->entryIds) {
         throw new KOperationEngineException("Missing mandatory argument entryIds");
     }
     if (count(explode(",", $data->entryIds)) != 1) {
         throw new KOperationEngineException("This exporter supports only a single entry id :" . $data->entryIds);
     }
     $reportNameFormat = str_replace("@ENTRY_ID@", $data->entryIds, $reportNameFormat);
     parent::__construct($data, $reportNameFormat, $timeRange);
     $this->allEntriesEngines = array(new LiveReportConstantStringEngine(LiveReportConstants::ROWS_SEPARATOR), new LiveReportEntryQueryEngine("plays", LiveReportConstants::SECONDS_36_HOURS, "Total Plays:"), new LiveReportEntryQueryEngine("secondsViewed", LiveReportConstants::SECONDS_36_HOURS, "Seconds Viewed:"), new LiveReportEntryQueryEngine("bufferTime", LiveReportConstants::SECONDS_36_HOURS, "Average Buffering Time per Minute (seconds):"), new LiveReportEntryQueryEngine("avgBitrate", LiveReportConstants::SECONDS_36_HOURS, "Average Bitrate (kbps):"), new LiveReportConstantStringEngine(LiveReportConstants::ROWS_SEPARATOR));
     $this->liveEntriesEngines = array(new LiveReportConstantStringEngine(LiveReportConstants::ROWS_SEPARATOR), new LiveReportEntryExactTimeEngine(array("audience", "dvrAudience"), LiveReportConstants::SECONDS_60, "Current Audience & DVR:"), new LiveReportEntryQueryEngine("secondsViewed", LiveReportConstants::SECONDS_36_HOURS, "Seconds Viewed:"), new LiveReportEntryQueryEngine("bufferTime", LiveReportConstants::SECONDS_60, "Average Buffering Time per Minute (seconds):"), new LiveReportEntryQueryEngine("avgBitrate", LiveReportConstants::SECONDS_60, "Average Bitrate (kbps):"), new LiveReportConstantStringEngine(LiveReportConstants::ROWS_SEPARATOR));
 }
 public function __construct(KalturaLiveReportExportJobData $data)
 {
     parent::__construct($data, "all-entries-%s-%s.csv", LiveReportConstants::SECONDS_36_HOURS);
 }
 public function __construct(KalturaLiveReportExportJobData $data)
 {
     parent::__construct($data, "live-now-entries-%s-%s.csv", LiveReportConstants::SECONDS_36_HOURS);
     $this->params[LiveReportConstants::IS_LIVE] = true;
 }