@bli-cockpit/telemetry-core 0.1.27 → 0.1.28
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.
|
@@ -56,6 +56,8 @@ export declare const CollectorHeartbeatSchema: z.ZodObject<{
|
|
|
56
56
|
last_sync_reason: z.ZodOptional<z.ZodString>;
|
|
57
57
|
sessions_observed: z.ZodOptional<z.ZodNumber>;
|
|
58
58
|
sessions_outside_root: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
sessions_new_this_tick: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
sessions_pending_upload: z.ZodOptional<z.ZodNumber>;
|
|
59
61
|
}, z.core.$strict>;
|
|
60
62
|
export type CollectorHeartbeat = z.infer<typeof CollectorHeartbeatSchema>;
|
|
61
63
|
/**
|
|
@@ -89,6 +89,29 @@ export const CollectorHeartbeatSchema = z
|
|
|
89
89
|
.nonnegative()
|
|
90
90
|
.max(1_000_000)
|
|
91
91
|
.optional(),
|
|
92
|
+
/**
|
|
93
|
+
* BLI-3645. Two honest counters beside the raw scan count above, both
|
|
94
|
+
* optional so a collector too old to compute them keeps posting:
|
|
95
|
+
*
|
|
96
|
+
* - `sessions_new_this_tick` — sessions first seen since this source's
|
|
97
|
+
* cursor as it stood before this tick, a FLOW, not the re-scanned
|
|
98
|
+
* STOCK `sessions_observed` is.
|
|
99
|
+
* - `sessions_pending_upload` — sessions inside an approved root with
|
|
100
|
+
* no durable pointer yet, i.e. the "only copy" set. A FLOOR at the
|
|
101
|
+
* moment this tick observed it, same as every other counter here.
|
|
102
|
+
*/
|
|
103
|
+
sessions_new_this_tick: z
|
|
104
|
+
.number()
|
|
105
|
+
.int()
|
|
106
|
+
.nonnegative()
|
|
107
|
+
.max(1_000_000)
|
|
108
|
+
.optional(),
|
|
109
|
+
sessions_pending_upload: z
|
|
110
|
+
.number()
|
|
111
|
+
.int()
|
|
112
|
+
.nonnegative()
|
|
113
|
+
.max(1_000_000)
|
|
114
|
+
.optional(),
|
|
92
115
|
})
|
|
93
116
|
.strict();
|
|
94
117
|
/**
|