@bli-cockpit/telemetry-core 0.1.84 → 0.1.85
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.
|
@@ -44,6 +44,40 @@ export declare const CollectorHeartbeatSyncStatusSchema: z.ZodEnum<{
|
|
|
44
44
|
fail: "fail";
|
|
45
45
|
not_run: "not_run";
|
|
46
46
|
}>;
|
|
47
|
+
/**
|
|
48
|
+
* BLI-23181. What the staging gate measured on this tick's volume, and how much
|
|
49
|
+
* Tower itself keeps there. Before this the fleet board could say a machine
|
|
50
|
+
* was paused for low disk but not how low, against which floor, or whether
|
|
51
|
+
* Tower's own bytes were part of the reason: "is it us filling their disk?"
|
|
52
|
+
* had no server-side answer.
|
|
53
|
+
*
|
|
54
|
+
* Byte counts and one gate label only, never a path. `free_bytes`,
|
|
55
|
+
* `total_bytes` and `floor_bytes` are null when the platform could not read
|
|
56
|
+
* the volume (logged on the collector); `collector_bytes` is everything the
|
|
57
|
+
* collector keeps under its state dir, study folders excluded — the same
|
|
58
|
+
* number the 512 MiB ceiling bounds.
|
|
59
|
+
*/
|
|
60
|
+
export declare const CollectorDiskGateSchema: z.ZodEnum<{
|
|
61
|
+
open: "open";
|
|
62
|
+
low_disk: "low_disk";
|
|
63
|
+
state_over_ceiling: "state_over_ceiling";
|
|
64
|
+
staging_at_cap: "staging_at_cap";
|
|
65
|
+
}>;
|
|
66
|
+
export type CollectorDiskGate = z.infer<typeof CollectorDiskGateSchema>;
|
|
67
|
+
export declare const CollectorDiskReadingSchema: z.ZodObject<{
|
|
68
|
+
free_bytes: z.ZodNullable<z.ZodNumber>;
|
|
69
|
+
total_bytes: z.ZodNullable<z.ZodNumber>;
|
|
70
|
+
floor_bytes: z.ZodNullable<z.ZodNumber>;
|
|
71
|
+
collector_bytes: z.ZodNumber;
|
|
72
|
+
staging_bytes: z.ZodNumber;
|
|
73
|
+
gate: z.ZodEnum<{
|
|
74
|
+
open: "open";
|
|
75
|
+
low_disk: "low_disk";
|
|
76
|
+
state_over_ceiling: "state_over_ceiling";
|
|
77
|
+
staging_at_cap: "staging_at_cap";
|
|
78
|
+
}>;
|
|
79
|
+
}, z.core.$strict>;
|
|
80
|
+
export type CollectorDiskReading = z.infer<typeof CollectorDiskReadingSchema>;
|
|
47
81
|
export declare const CollectorHeartbeatSchema: z.ZodObject<{
|
|
48
82
|
schema_version: z.ZodLiteral<"collector-heartbeat.v1">;
|
|
49
83
|
generated_at: z.ZodString;
|
|
@@ -77,6 +111,19 @@ export declare const CollectorHeartbeatSchema: z.ZodObject<{
|
|
|
77
111
|
sessions_pending_upload: z.ZodOptional<z.ZodNumber>;
|
|
78
112
|
staging_uncommitted_bytes: z.ZodOptional<z.ZodNumber>;
|
|
79
113
|
staging_uncommitted_reason: z.ZodOptional<z.ZodString>;
|
|
114
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
115
|
+
free_bytes: z.ZodNullable<z.ZodNumber>;
|
|
116
|
+
total_bytes: z.ZodNullable<z.ZodNumber>;
|
|
117
|
+
floor_bytes: z.ZodNullable<z.ZodNumber>;
|
|
118
|
+
collector_bytes: z.ZodNumber;
|
|
119
|
+
staging_bytes: z.ZodNumber;
|
|
120
|
+
gate: z.ZodEnum<{
|
|
121
|
+
open: "open";
|
|
122
|
+
low_disk: "low_disk";
|
|
123
|
+
state_over_ceiling: "state_over_ceiling";
|
|
124
|
+
staging_at_cap: "staging_at_cap";
|
|
125
|
+
}>;
|
|
126
|
+
}, z.core.$strict>>;
|
|
80
127
|
memory_install: z.ZodOptional<z.ZodObject<{
|
|
81
128
|
schema_version: z.ZodLiteral<"memory-install-receipt.v1">;
|
|
82
129
|
checked_at: z.ZodString;
|
|
@@ -52,6 +52,36 @@ export const CollectorHeartbeatSyncStatusSchema = z.enum([
|
|
|
52
52
|
"skipped",
|
|
53
53
|
"not_run",
|
|
54
54
|
]);
|
|
55
|
+
/**
|
|
56
|
+
* BLI-23181. What the staging gate measured on this tick's volume, and how much
|
|
57
|
+
* Tower itself keeps there. Before this the fleet board could say a machine
|
|
58
|
+
* was paused for low disk but not how low, against which floor, or whether
|
|
59
|
+
* Tower's own bytes were part of the reason: "is it us filling their disk?"
|
|
60
|
+
* had no server-side answer.
|
|
61
|
+
*
|
|
62
|
+
* Byte counts and one gate label only, never a path. `free_bytes`,
|
|
63
|
+
* `total_bytes` and `floor_bytes` are null when the platform could not read
|
|
64
|
+
* the volume (logged on the collector); `collector_bytes` is everything the
|
|
65
|
+
* collector keeps under its state dir, study folders excluded — the same
|
|
66
|
+
* number the 512 MiB ceiling bounds.
|
|
67
|
+
*/
|
|
68
|
+
export const CollectorDiskGateSchema = z.enum([
|
|
69
|
+
"open",
|
|
70
|
+
"low_disk",
|
|
71
|
+
"state_over_ceiling",
|
|
72
|
+
"staging_at_cap",
|
|
73
|
+
]);
|
|
74
|
+
const ByteCountSchema = z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
|
|
75
|
+
export const CollectorDiskReadingSchema = z
|
|
76
|
+
.object({
|
|
77
|
+
free_bytes: ByteCountSchema.nullable(),
|
|
78
|
+
total_bytes: ByteCountSchema.nullable(),
|
|
79
|
+
floor_bytes: ByteCountSchema.nullable(),
|
|
80
|
+
collector_bytes: ByteCountSchema,
|
|
81
|
+
staging_bytes: ByteCountSchema,
|
|
82
|
+
gate: CollectorDiskGateSchema,
|
|
83
|
+
})
|
|
84
|
+
.strict();
|
|
55
85
|
export const CollectorHeartbeatSchema = z
|
|
56
86
|
.object({
|
|
57
87
|
schema_version: z.literal(COLLECTOR_HEARTBEAT_SCHEMA_VERSION),
|
|
@@ -156,6 +186,12 @@ export const CollectorHeartbeatSchema = z
|
|
|
156
186
|
.max(120)
|
|
157
187
|
.regex(/^[a-z0-9_:.-]+$/iu)
|
|
158
188
|
.optional(),
|
|
189
|
+
/**
|
|
190
|
+
* BLI-23181. The volume the gate measured and Tower's own footprint on it.
|
|
191
|
+
* Optional like every counter here: an absent reading means "this collector
|
|
192
|
+
* predates it or could not measure", never "the disk is fine".
|
|
193
|
+
*/
|
|
194
|
+
disk: CollectorDiskReadingSchema.optional(),
|
|
159
195
|
/**
|
|
160
196
|
* BLI-3729. Is BLI Memory actually switched on for both agent hosts on
|
|
161
197
|
* this machine? Six words computed by reading the host configs BACK, not
|