#minute (0-59),
#|	hour (0-23),
#|	|	day of the month (1-31),
#|	|	|	month of the year (1-12),
#|	|	|	|	day of the week (0-6 with 0=Sunday).
#|	|	|	|	|	user
#|	|	|	|	|	|	commands
PATH=/usr/sbin:/bin:$PATH
LC_ALL=ru_RU.UTF-8
#stat aggregation for traff service

#stat aggregation - hour
0	*	*	*	*	root	katrin-web-db-service AggregateStat traff Hour "`date -d '-1 hour' '+\%F \%H:00:00'`"
#stat aggregation - day
5	0	*	*	*	root	katrin-web-db-service AggregateStat traff Day "`date -d '-1 day' '+\%F 00:00:00'`"
#stat aggregation - month
15	0	1	*	*	root	katrin-web-db-service AggregateStat traff Month "`date -d '-1 month' '+\%Y-\%m-01 00:00:00'`"

#close billing period - AFTER stat aggregation

#close billing period - day
7	4	*	*	*	root	katrin-web-db-service CloseBillingPeriod День
#close billing period - week
12	4	*	*	1	root	katrin-web-db-service CloseBillingPeriod Неделя
#close billing period - month
18	4	1	*	*	root	katrin-web-db-service CloseBillingPeriod Месяц
#close billing period - quarter
20	4	1	*/4	*	root	katrin-web-db-service CloseBillingPeriod Квартал
#close billing period - half-year
22	4	1	*/6	*	root	katrin-web-db-service CloseBillingPeriod Полугодие
#close billing period - year
24	4	1	1	*	root	katrin-web-db-service CloseBillingPeriod Год

#export post-paid bills - AFTER billing period closure
30	4	*	*	*	root	katrin-web-db-service ExportBills demo

#delete old stat
35	4	1	*	*	root	katrin-web-db-service CleanStat traff "`date -d '-3 months' '+\%Y-\%m-01 00:00:00'`"

