Rollups and Analytics
Chirpier exposes two different ways to read an event.
Rollups
Use event logs when you need the raw time-bucketed history for an event.
Supported rollup periods:
minutehourday
Endpoint:
GET /v1.0/events/:eventID/logs?period=minute|hour|day&limit=&offset=Rollups are best for:
- charts
- recent history inspection
- building your own comparisons
- validating monitor inputs
Analytics windows
Use analytics windows when you need Chirpier to compare the current window to a previous one.
The response schema stays the same for every analytics window. current_* always refers to the requested window, and previous_* always refers to the comparison window selected by the previous query parameter.
Endpoint:
GET /v1.0/events/:eventID/analytics?view=window&period=...&previous=...Supported analytics periods:
1h1d7d1m
Supported comparison keys:
previous_windowprevious_1dprevious_7dprevious_1m
Supported window combinations:
period=1h&previous=previous_windowperiod=1h&previous=previous_1dperiod=1h&previous=previous_7dperiod=1h&previous=previous_1mperiod=1d&previous=previous_windowperiod=1d&previous=previous_7dperiod=1d&previous=previous_1mperiod=7d&previous=previous_windowperiod=7d&previous=previous_1mperiod=1m&previous=previous_window
Use analytics windows for:
- last hour vs previous hour
- last hour vs same hour yesterday
- last day vs same day last month
- week-over-week or month-over-month summaries
Analytics windows return a comparison summary rather than a time series. Typical response fields include:
current_value,current_count,current_mean,current_stddevprevious_value,previous_count,previous_mean,previous_stddevvalue_delta,count_delta,mean_deltavalue_pct_change,count_pct_change,mean_pct_change
Choosing between them
Use rollups when you need the time series.
Use analytics windows when you need a precomputed comparison summary.
For route-level details, see Event logs and Analytics API.