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.
danq9
signup: the person chooses the password and name on the confirm page
83c7aa6
2 weeks, 5 days ago
History
page_views.json · 2.3 KB · 87 lines
| 1 | { |
| 2 | "name": "page_views", |
| 3 | "title": "Page Views", |
| 4 | "version": 2, |
| 5 | "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.", |
| 6 | "storage": "append", |
| 7 | "fields": [ |
| 8 | { |
| 9 | "name": "id" |
| 10 | }, |
| 11 | { |
| 12 | "name": "host", |
| 13 | "type": "text", |
| 14 | "label": "Host", |
| 15 | "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." |
| 16 | }, |
| 17 | { |
| 18 | "name": "path", |
| 19 | "type": "text", |
| 20 | "label": "Path" |
| 21 | }, |
| 22 | { |
| 23 | "name": "method", |
| 24 | "type": "text", |
| 25 | "label": "Method" |
| 26 | }, |
| 27 | { |
| 28 | "name": "status", |
| 29 | "type": "number", |
| 30 | "label": "Status" |
| 31 | }, |
| 32 | { |
| 33 | "name": "ip", |
| 34 | "type": "text", |
| 35 | "label": "IP" |
| 36 | }, |
| 37 | { |
| 38 | "name": "user_agent", |
| 39 | "type": "text", |
| 40 | "label": "User Agent" |
| 41 | }, |
| 42 | { |
| 43 | "name": "referrer", |
| 44 | "type": "text", |
| 45 | "label": "Referrer" |
| 46 | }, |
| 47 | { |
| 48 | "name": "session_id", |
| 49 | "type": "text", |
| 50 | "label": "Session" |
| 51 | }, |
| 52 | { |
| 53 | "name": "user_id", |
| 54 | "type": "text", |
| 55 | "label": "User" |
| 56 | }, |
| 57 | { |
| 58 | "name": "is_owner", |
| 59 | "type": "boolean", |
| 60 | "label": "Owner Traffic", |
| 61 | "default": "false" |
| 62 | }, |
| 63 | { |
| 64 | "name": "created_at", |
| 65 | "type": "datetime", |
| 66 | "read_only": true, |
| 67 | "label": "Time" |
| 68 | } |
| 69 | ], |
| 70 | "views": { |
| 71 | "list_mode": "table", |
| 72 | "list_fields": [ |
| 73 | "created_at", |
| 74 | "method", |
| 75 | "path", |
| 76 | "status", |
| 77 | "ip" |
| 78 | ] |
| 79 | }, |
| 80 | "search": { |
| 81 | "fields": [ |
| 82 | "path", |
| 83 | "ip", |
| 84 | "user_agent" |
| 85 | ] |
| 86 | } |
| 87 | } |