v2023.4.67.0 - Big update
Основные изменения
Изменения в хранилище отчетов по каналам и трафику
Отчеты по каналу и трафику вынесены в отдельные таблицы ClickHouse. Для переноса уже существующих данных необходимо выполнить миграцию:
-
Остановите сервис
procevent
. -
Создайте таблицы:
./aktool stats init channel --config /opt/akd/config/main.json
- Заполните таблицы:
Usage:
aktool stats fill --acc_ids=[]int --date_from=YYYY-MM-DD --date_to=YYYY-MM-DD [flags]
Examples:
fill --table_type=all|channel|summary --acc_ids=1,3,4 --date_from=2023-01-01 --date_to=2023-02-01 --config=path/to/main.json
Flags:
--acc_ids ints list of accounts to fill, if not passed, it will be executed for all accounts
--date_from string date from which the user history will be filled in, format YYYY-MM-DD
--date_to string date by which the user history will be filled in, format YYYY-MM-DD
-h, --help help for fill
--table_type string list of tables for filling statistics: summary,pixel,engagement,click_map,forms,undelive,campaigns,notify,channel
Global Flags:
--config string config path (default "/opt/akd/config/main.json")
-o, --output string file path to output in the result of the command (default "stdout")
--truncate whether to truncate the file specified by --output
предупреждение
Рекомендуется остановить сервис procevent
и перенести данные за текущий месяц, затем запустить сервис и перенести оставшиеся данные.