aboutsummaryrefslogtreecommitdiff
path: root/src/analytics/schema.peechy
blob: 6d924cf09f89bf4a36ff845bcbfdf10bdb77a996 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package analytics;

smol OperatingSystem {
  linux = 1;
  macos = 2;
  windows = 3;
  wsl = 4;
}

smol Architecture {
    x64 = 1;
    arm = 2;
}

struct Platform {
    OperatingSystem os;
    Architecture arch;
    byte[] 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;
    uint32 session_id;
    Platform platform;
    uint32 build_id;
    // hash of the folder name
    Uint64 project_id;
    uint32 session_length;
    // enum flags
    uint32 feature_usage;
}

struct EventHeader {
    Uint64 timestamp;
    EventKind kind;
}

struct EventList {
    EventListHeader header;
    uint32 event_count;
}
sertions'>+14 2023-05-21Fix assertion failureGravatar Jarred Sumner 1-1/+1 2023-05-21oopsieGravatar Jarred Sumner 1-1/+1 2023-05-21WS send with callback (#2986)Gravatar Ciro Spaciari 3-44/+39 2023-05-21[Bun.serve] Support `"nodebuffer"` binaryType in `ServerWebSocket`Gravatar Jarred Sumner 4-77/+122 2023-05-21[WebSocket] Implement `"nodebuffer"` binaryTypeGravatar Jarred Sumner 5-5/+125 2023-05-21[ws client] Make it a little more type safeGravatar Jarred Sumner 1-33/+51 2023-05-21[internal] Add more debug logs for uwsGravatar Jarred Sumner 2-3/+8 2023-05-21[internal] Add a 0 byte to EOF read files as a precautionGravatar Jarred Sumner 1-1/+5 2023-05-21[internal] Make AbortSIgnal usage slightly saferGravatar Jarred Sumner 3-6/+11 2023-05-21Add extra flag just to be sureGravatar Jarred Sumner 1-1/+1 2023-05-21[internal] Fix potential missing callbacks in AbortSignalGravatar Jarred Sumner 2-208/+2