diff options
author | 2021-10-05 02:27:49 -0700 | |
---|---|---|
committer | 2021-10-05 02:27:49 -0700 | |
commit | 00e7b7c3d53e41ff3df264bfe382a8fa70bb0b9d (patch) | |
tree | 1cb6bdd5eb389c934a799f94a1fa3985f8ec160c /src/analytics/schema.peechy | |
parent | d2be50bf4d87de13a6010e93e3f100412d6290d2 (diff) | |
download | bun-00e7b7c3d53e41ff3df264bfe382a8fa70bb0b9d.tar.gz bun-00e7b7c3d53e41ff3df264bfe382a8fa70bb0b9d.tar.zst bun-00e7b7c3d53e41ff3df264bfe382a8fa70bb0b9d.zip |
Simple analytics
Diffstat (limited to 'src/analytics/schema.peechy')
-rw-r--r-- | src/analytics/schema.peechy | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/analytics/schema.peechy b/src/analytics/schema.peechy new file mode 100644 index 000000000..ec1233c40 --- /dev/null +++ b/src/analytics/schema.peechy @@ -0,0 +1,49 @@ +package Analytics; + +smol OperatingSystem { + linux = 1; + macos = 2; + windows = 3; + wsl = 4; +} + +smol Architecture { + x64 = 1; + arm = 2; +} + +struct Platform { + OperatingSystem os; + Architecture arch; + string version; +} + +enum EventKind { + bundle_success = 1; + bundle_fail = 2; + http_start = 3; + http_build = 4; + bundle_start = 5; +} + +struct Uint64 { + uint32 first; + uint32 second; +} + +struct EventListHeader { + Uint64 machine_id; + Platform platform; + uint32 build_id; + uint32 session_length; +} + +struct EventHeader { + Uint64 timestamp; + EventKind kind; +} + +struct EventList { + EventListHeader header; + uint32 event_count; +}
\ No newline at end of file |