Statistic Overview
Last updated
Last updated
The stats
API provides a comprehensive overview of occupancy between the supplied time windows.
Like the base reporting API, the stats API measures occupancy in two ways: and .
Below is a sample query for retrieving statistic overviews of our data by occupancy type within the selected time range.
Measurements are named in the following format.
{METRIC}_{AGG_FUNCTION}_{traffic/presence}
occupancy_used_avg_presence
The average of all presence-based occupancy counts (excluding unoccupied periods) within the time range
occupancy_used_avg_traffic
The average of all traffic-based occupancy counts (excluding unoccupied periods) within the time range
occupancy_used_median_presence
The median of all presence-based occupancy counts (excluding unoccupied periods) within the time range
occupancy_used_median_traffic
The median of all traffic-based occupancy counts (excluding unoccupied periods) within the time range
occupancy_avg_presence
The average of all presence-based occupancy counts (including unoccupied periods) within the time range
occupancy_avg_traffic
The average of all traffic-based occupancy counts (including unoccupied periods) within the time range
occupancy_median_presence
The median of all presence-based occupancy counts (including unoccupied periods) within the time range
occupancy_median_traffic
The median of all traffic-based occupancy counts (including unoccupied periods) within the time range
The stats
API supports two types of filters: exclude_days_of_week
and time_ranges
.
exclude_days_of_week
Excludes data from specified days in the final aggregation.
time_ranges
Only include data in the aggregation if it falls under the specified time range(s).