@stackone/olap 1.67.0 → 1.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/index.cjs +25 -101
- package/dist/index.d.cts +7 -8
- package/dist/index.d.mts +7 -8
- package/dist/index.mjs +25 -101
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,6 +49,32 @@ $ pnpm lint
|
|
|
49
49
|
$ pnpm lint:fix
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
+
## Platform logs
|
|
53
|
+
|
|
54
|
+
Platform logs are the audit trail of operations on StackOne itself — creating an account, deleting
|
|
55
|
+
an integration, minting a session — as opposed to requests proxied to a provider.
|
|
56
|
+
|
|
57
|
+
They are read through `getPlatformLogs` and **only** through it. It takes no `engine` argument,
|
|
58
|
+
because there is nothing to choose: the `platform` table lives in ClickHouse and has no Tinybird
|
|
59
|
+
datasource, so the client is resolved here rather than by the caller.
|
|
60
|
+
|
|
61
|
+
They are also deliberately **not** part of the combined `getLogs` feed. That feed still serves orgs
|
|
62
|
+
on Tinybird, so including platform rows meant classifying every filter and dimension the platform
|
|
63
|
+
table lacks, per arm, and quietly rerouting such queries to ClickHouse behind the caller's back.
|
|
64
|
+
`CombinedLogType` is therefore `action | unified`, and it stays that way at least until Tinybird is
|
|
65
|
+
gone.
|
|
66
|
+
|
|
67
|
+
### `isRead`
|
|
68
|
+
|
|
69
|
+
Each row carries `isRead`: whether the operation only retrieved state, changing nothing and sending
|
|
70
|
+
nothing onwards. It is a `UInt8` in ClickHouse and a boolean on the way out, filterable through
|
|
71
|
+
`PlatformQuery`.
|
|
72
|
+
|
|
73
|
+
The value comes from the emitting route and nothing else, and an absent value means `false` — "not
|
|
74
|
+
known to be a pure read", which is where anything with a side effect belongs. Neither the HTTP
|
|
75
|
+
method nor the verb can stand in for it: a read is often a `POST` carrying filters, and plenty of
|
|
76
|
+
`get`-shaped operations write.
|
|
77
|
+
|
|
52
78
|
## Advanced log truncation
|
|
53
79
|
|
|
54
80
|
Advanced logs hold the full request and response of a call. When one is too large to store, what the
|