getLogAggregator()->queryVisitsByDimension(['idvisitor']); * while ($row = $query->fetch()) { * $label = $row['idvisitor']; * unset($row['idvisitor']); * $record->sumRowWithLabel($label, $row); * } * * return [self::EXAMPLEPLUGIN_ARCHIVE_RECORD => $record]; * ``` * * non-day periods will automatically be aggregated together */ protected function aggregate(ArchiveProcessor $archiveProcessor): array { $record = new DataTable(); $query = $archiveProcessor->getLogAggregator()->queryVisitsByDimension(['idvisitor']); while ($row = $query->fetch()) { $label = $row['idvisitor']; unset($row['idvisitor']); $record->sumRowWithLabel($label, $row); } return [self::EXAMPLEPLUGIN_BLOB_RECORD_NAME => $record]; } }