feat(analytics): monthly totals series with same month last year #85
Labels
No labels
blocked
bug
enhancement
high-priority
low-priority
needs-info
needs-triage
ready-for-agent
ready-for-human
referenced
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gabogg/hikcentral#85
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Route
GET /api/analytics/timeseries/monthly?end=YYYY-MM&months=13One row per closed month ending at
end: visitors, daily average, mean dwell, quality, and the same month one year earlier (nullwhen there is no data).Used by
Month view: visitors per month over 13 months against the previous year, and growth vs last year by month.
Notes
Context
Part of the statistics deck redesign, draft RFC in #80 (
docs/architecture/rfc-statistics-deck-display-model.md; mockup linked there). Period selection is settled in #81; the parameters below assume a period is identified bygranularity(day/week/month) and its first business day. A year period is out of scope.Shared constraints (all statistics-deck routes)
daily_reset_timeboundaries,app/facility_time.py); an in-progress cycle is never returned._COUNTED_CAMERA_JOIN/_COUNTED_CAMERA_FILTER); quarantined events never do.require_admin; who can open the deck is open question 7 in the RFC.analytics_service, SQL in repositories.Closing: the Month view no longer shows multi-month or yearly trends (the maintainer ruled yearly scope out; see #80). The month graphs are served by #84 (daily totals) over the month and the previous month. Reopen if a trend view comes back into scope.