askrobots / dbbasic-object-server
Public
Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.
page_views.json · 2.5 KB · 88 lines
| 1 | { |
| 2 | "name": "page_views", |
| 3 | "subject_exempt": "Traffic rows are keyed by network address and by an opaque visitor token that is never joined to an account, so they cannot be matched to a person in either direction. They are deleted on the retention period stated at /privacy.", |
| 4 | "title": "Page Views", |
| 5 | "version": 2, |
| 6 | "description": "First-party traffic log (object_analytics). One row per non-asset HTTP request: path/method/status/ip/user_agent/referrer/session/is_owner. append storage -- write-hot and log-shaped; the platform's heaviest write path, and the source for analytics rollups. Bounded by the daemon's retention pass (process_analytics_retention), NOT id-fold compaction (a pure event log has nothing to fold). Admin-read only. See plan/2026-07-21-... parity assessment. Records the Host header, because a single process routinely serves more than one site and merging their traffic makes every per-site question unanswerable.", |
| 7 | "storage": "append", |
| 8 | "fields": [ |
| 9 | { |
| 10 | "name": "id" |
| 11 | }, |
| 12 | { |
| 13 | "name": "host", |
| 14 | "type": "text", |
| 15 | "label": "Host", |
| 16 | "help": "Which hostname was asked. One process can serve several sites -- a marketing domain and an app domain often reach the same server -- and without this their traffic is one indistinguishable number. 'Did anyone come to the thing I announced' cannot be answered by a figure that also counts the front page." |
| 17 | }, |
| 18 | { |
| 19 | "name": "path", |
| 20 | "type": "text", |
| 21 | "label": "Path" |
| 22 | }, |
| 23 | { |
| 24 | "name": "method", |
| 25 | "type": "text", |
| 26 | "label": "Method" |
| 27 | }, |
| 28 | { |
| 29 | "name": "status", |
| 30 | "type": "number", |
| 31 | "label": "Status" |
| 32 | }, |
| 33 | { |
| 34 | "name": "ip", |
| 35 | "type": "text", |
| 36 | "label": "IP" |
| 37 | }, |
| 38 | { |
| 39 | "name": "user_agent", |
| 40 | "type": "text", |
| 41 | "label": "User Agent" |
| 42 | }, |
| 43 | { |
| 44 | "name": "referrer", |
| 45 | "type": "text", |
| 46 | "label": "Referrer" |
| 47 | }, |
| 48 | { |
| 49 | "name": "session_id", |
| 50 | "type": "text", |
| 51 | "label": "Session" |
| 52 | }, |
| 53 | { |
| 54 | "name": "user_id", |
| 55 | "type": "text", |
| 56 | "label": "User" |
| 57 | }, |
| 58 | { |
| 59 | "name": "is_owner", |
| 60 | "type": "boolean", |
| 61 | "label": "Owner Traffic", |
| 62 | "default": "false" |
| 63 | }, |
| 64 | { |
| 65 | "name": "created_at", |
| 66 | "type": "datetime", |
| 67 | "read_only": true, |
| 68 | "label": "Time" |
| 69 | } |
| 70 | ], |
| 71 | "views": { |
| 72 | "list_mode": "table", |
| 73 | "list_fields": [ |
| 74 | "created_at", |
| 75 | "method", |
| 76 | "path", |
| 77 | "status", |
| 78 | "ip" |
| 79 | ] |
| 80 | }, |
| 81 | "search": { |
| 82 | "fields": [ |
| 83 | "path", |
| 84 | "ip", |
| 85 | "user_agent" |
| 86 | ] |
| 87 | } |
| 88 | } |