Tracking periods#
Tracking periods are configured for every new tracker when it is created and determine a period type for which tracker events and period statistics will be tracked. There can be only one tracker event and one period statistics record per period. After the period ends, a new tracker event and period statistics record are tracked for the next corresponding period, started right after previous.
A tracker may have following periods:
- day
:
- starts at specified tracker start time, or tracker creation time if the start time is not specified
- ends in a day since the period start time
- date
:
- starts at the first millisecond of current day
- ends at the last millisecond of current day
- week
:
- starts at specified tracker start time, or tracker creation time if the start time is not specified
- ends in a week since the period start time
- week-to-date
:
- starts at the first millisecond of current week (starts from Sunday)
- ends at the last millisecond of current week
- month
:
- starts at specified tracker start time, or tracker creation time if the start time is not specified
- ends in a month since the period start time
- month-to-date
:
- starts at the first millisecond of current month
- ends at the last millisecond of current month
- quarter
:
- starts at specified tracker start time, or tracker creation time if the start time is not specified
- ends in 3 months since the period start time
- quarter-to-date
:
- starts at the first millisecond of current quarter
- ends at the last millisecond of current quarter
- year
:
- starts at specified tracker start time, or tracker creation time if the start time is not specified
- ends in a year since the period start time
- year-to-date
:
- starts at the first millisecond of current year
- ends at the last millisecond of current year
- lifetime
:
- starts at specified tracker start time, or tracker creation time if the start time is not specified
- never ends