Interval unit is weeks
- Last UpdatedJan 14, 2025
- 2 minute read
If the interval unit for a calendar frequency is set to weeks (enumeration value of 4), and offset start and offset start unit configured for this frequency is not null, then the first sample for a week is offset from the midnight of Sunday of that week. The offset is generated using the offset_start and offset_start_unit configured for that frequency.
A sample is generated when the time between the last sample (collected for the entity with the frequency) and the offset from midnight Sunday of the current week is greater than the interval time configured for the frequency. The sample is generated for the current week, at the time specified by the offset.
The following table shows how sample times (in local time) are calculated with different offset units corresponding to an interval unit.
|
Frequency ID |
Interval |
Interval Unit |
Offset Start |
Offset Start Unit |
Sample Times |
|---|---|---|---|---|---|
|
1 |
3 |
2 (hours) |
10 |
1 (minutes) |
12:10am, 03:10am, 06:10am, 09:10am, 12:10pm, 03:10pm, 06:10pm, 09:10pm, 12:10am (day+1), 03:10am (day+1), and so on. |
|
2 |
1 |
2 (hours) |
20 |
2 (hours) |
08:00pm, 09:00pm, 10:00pm, 11:00pm, 08:00pm (day+1), 09:00pm (day+1), 10:00pm (day+1), 11:00pm (day+1), 8:00pm (day+2), and so on. |
|
3 |
1 |
3 (days) |
25 |
1 (minutes) |
12:25am (Sun), 12:25am (Mon), 12:25am (Tue), 12:25am (Wed), 12:25am (Thu), 12:25am (Fri), 12:25am (Sat), 12:25am (Sun, week+1), 12:25am (Mon, week+1), and so on. |
|
4 |
1 |
3 (days) |
62 |
2 (hours) |
02:00pm (Tue), 02:00pm (Wed), 02:00pm (Thu), 02:00pm (Fri), 02:00pm (Sat), 02:00pm (Tue, week+1), 02:00pm (Wed, week+1), 02:00pm (Thu, week+1), and so on. |
|
5 |
1 |
4 (weeks) |
40 |
1 (minutes) |
12:40am (Sun), 12:40am (Sun, week+1), 12:40am (Sun, week+2), and so on. |
|
6 |
1 |
4 (weeks) |
66 |
2 (hours) |
06:00pm (Tue), 06:00pm (Tue, week+1), 06:00pm (Tue, week+2), and so on. |
|
7 |
2 |
4 (weeks) |
66 |
2 (hours) |
06:00pm (Tue), 06:00pm (Tue, week+2), 06:00pm (Tue, week+4), and so on. |