Determining cycle boundaries
- Last UpdatedMar 19, 2025
- 1 minute read
With the exception of DAILY retrieval mode, cycle boundaries are calculated based on the query start and end times, wwCycleCount, and wwResolution. (With DAILY retrieval mode, wwResolution is not supported; each cycle is a full day.)
If you only specify wwCycleCount, evenly spaced cycles are returned based on the value of wwCycleCount.
If you only specify wwResolution, cycles are spaced wwResolution milliseconds apart starting at the query start time until query end time is reached. The last cycle will have whatever duration is required to end exactly at the query end time. If this last duration is shortened by this rule, it is known as a partial cycle. Because of this, the final cycle duration may not match wwResolution.
If both wwCycleCount and wwResolution are specified, no result rows will be returned. If you specify neither wwCycleCount nor wwResolution in the query, the query will return 100 rows.
Unless otherwise specified, a value is considered in a given full or partial cycle if its timestamp occurs at or after the cycle start (timestamp >= cycle start) and before the cycle end (timestamp < cycle end).