SelectedPeriod
The SelectedPeriod field lets you select a time range to filter API data. Instead of manually entering start and end dates, you can select options like Last7Days, CurrentMonth, PreviousQuarter, and others to easily determine what time period your data or report should cover.
Use cases
Use the SelectedPeriod field to:
- Filter monitoring data without calculating exact dates.
- Create scheduled reports that automatically cover relative time periods. For example, last month always shows the previous month’s data.
- Retrieve data for common time periods like the current quarter or last 24 hours.
Available options
The following period options are available:
Current periods
These options cover the current, incomplete time period from the start of the period until now:
CurrentDayCurrentWeekCurrentMonthCurrentQuarterCurrentYear
Previous periods
These options cover the most recently completed full time period:
PreviousDayPreviousWeekPreviousMonthPreviousQuarterPreviousYear
Last X periods
These options cover a specific number of complete time periods, counting backwards from now. The current incomplete period is not included by default.
By hours:
Last2HoursLast6HoursLast12HoursLast24HoursLast48Hours
By days:
Last7DaysLast30DaysLast60DaysLast90DaysLast365Days
By months:
Last3MonthsLast6MonthsLast12MonthsLast24Months
When you choose time ranges like last hours, last days, or last months, you can include the current period to make sure the report also covers the ongoing period.
For example, if you select Last2Hours, enabling Include current hour ensures that the data from the current hour is also included to get the most up-to-date information in your report.