@checkstack/healthcheck-backend 1.3.0 → 1.4.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.
@@ -0,0 +1,563 @@
1
+ {
2
+ "id": "8248bbb2-65d2-4c51-924a-0ccdf81f3f5d",
3
+ "prevId": "59252e71-9a8e-4a51-a2a5-e3c98e3d9182",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.health_check_aggregates": {
8
+ "name": "health_check_aggregates",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "uuid",
14
+ "primaryKey": true,
15
+ "notNull": true,
16
+ "default": "gen_random_uuid()"
17
+ },
18
+ "configuration_id": {
19
+ "name": "configuration_id",
20
+ "type": "uuid",
21
+ "primaryKey": false,
22
+ "notNull": true
23
+ },
24
+ "system_id": {
25
+ "name": "system_id",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true
29
+ },
30
+ "bucket_start": {
31
+ "name": "bucket_start",
32
+ "type": "timestamp",
33
+ "primaryKey": false,
34
+ "notNull": true
35
+ },
36
+ "bucket_size": {
37
+ "name": "bucket_size",
38
+ "type": "bucket_size",
39
+ "typeSchema": "public",
40
+ "primaryKey": false,
41
+ "notNull": true
42
+ },
43
+ "run_count": {
44
+ "name": "run_count",
45
+ "type": "integer",
46
+ "primaryKey": false,
47
+ "notNull": true
48
+ },
49
+ "healthy_count": {
50
+ "name": "healthy_count",
51
+ "type": "integer",
52
+ "primaryKey": false,
53
+ "notNull": true
54
+ },
55
+ "degraded_count": {
56
+ "name": "degraded_count",
57
+ "type": "integer",
58
+ "primaryKey": false,
59
+ "notNull": true
60
+ },
61
+ "unhealthy_count": {
62
+ "name": "unhealthy_count",
63
+ "type": "integer",
64
+ "primaryKey": false,
65
+ "notNull": true
66
+ },
67
+ "latency_sum_ms": {
68
+ "name": "latency_sum_ms",
69
+ "type": "integer",
70
+ "primaryKey": false,
71
+ "notNull": false
72
+ },
73
+ "avg_latency_ms": {
74
+ "name": "avg_latency_ms",
75
+ "type": "integer",
76
+ "primaryKey": false,
77
+ "notNull": false
78
+ },
79
+ "min_latency_ms": {
80
+ "name": "min_latency_ms",
81
+ "type": "integer",
82
+ "primaryKey": false,
83
+ "notNull": false
84
+ },
85
+ "max_latency_ms": {
86
+ "name": "max_latency_ms",
87
+ "type": "integer",
88
+ "primaryKey": false,
89
+ "notNull": false
90
+ },
91
+ "p95_latency_ms": {
92
+ "name": "p95_latency_ms",
93
+ "type": "integer",
94
+ "primaryKey": false,
95
+ "notNull": false
96
+ },
97
+ "aggregated_result": {
98
+ "name": "aggregated_result",
99
+ "type": "jsonb",
100
+ "primaryKey": false,
101
+ "notNull": false
102
+ },
103
+ "tdigest_state": {
104
+ "name": "tdigest_state",
105
+ "type": "jsonb",
106
+ "primaryKey": false,
107
+ "notNull": false
108
+ },
109
+ "source_id": {
110
+ "name": "source_id",
111
+ "type": "text",
112
+ "primaryKey": false,
113
+ "notNull": false
114
+ },
115
+ "source_label": {
116
+ "name": "source_label",
117
+ "type": "text",
118
+ "primaryKey": false,
119
+ "notNull": false
120
+ }
121
+ },
122
+ "indexes": {},
123
+ "foreignKeys": {
124
+ "health_check_aggregates_configuration_id_health_check_configurations_id_fk": {
125
+ "name": "health_check_aggregates_configuration_id_health_check_configurations_id_fk",
126
+ "tableFrom": "health_check_aggregates",
127
+ "tableTo": "health_check_configurations",
128
+ "columnsFrom": [
129
+ "configuration_id"
130
+ ],
131
+ "columnsTo": [
132
+ "id"
133
+ ],
134
+ "onDelete": "cascade",
135
+ "onUpdate": "no action"
136
+ }
137
+ },
138
+ "compositePrimaryKeys": {},
139
+ "uniqueConstraints": {
140
+ "health_check_aggregates_bucket_unique": {
141
+ "name": "health_check_aggregates_bucket_unique",
142
+ "nullsNotDistinct": true,
143
+ "columns": [
144
+ "configuration_id",
145
+ "system_id",
146
+ "bucket_start",
147
+ "bucket_size",
148
+ "source_id"
149
+ ]
150
+ }
151
+ },
152
+ "policies": {},
153
+ "checkConstraints": {},
154
+ "isRLSEnabled": false
155
+ },
156
+ "public.health_check_configurations": {
157
+ "name": "health_check_configurations",
158
+ "schema": "",
159
+ "columns": {
160
+ "id": {
161
+ "name": "id",
162
+ "type": "uuid",
163
+ "primaryKey": true,
164
+ "notNull": true,
165
+ "default": "gen_random_uuid()"
166
+ },
167
+ "name": {
168
+ "name": "name",
169
+ "type": "text",
170
+ "primaryKey": false,
171
+ "notNull": true
172
+ },
173
+ "strategy_id": {
174
+ "name": "strategy_id",
175
+ "type": "text",
176
+ "primaryKey": false,
177
+ "notNull": true
178
+ },
179
+ "config": {
180
+ "name": "config",
181
+ "type": "jsonb",
182
+ "primaryKey": false,
183
+ "notNull": true
184
+ },
185
+ "collectors": {
186
+ "name": "collectors",
187
+ "type": "jsonb",
188
+ "primaryKey": false,
189
+ "notNull": false
190
+ },
191
+ "interval_seconds": {
192
+ "name": "interval_seconds",
193
+ "type": "integer",
194
+ "primaryKey": false,
195
+ "notNull": true
196
+ },
197
+ "is_template": {
198
+ "name": "is_template",
199
+ "type": "boolean",
200
+ "primaryKey": false,
201
+ "notNull": false,
202
+ "default": false
203
+ },
204
+ "paused": {
205
+ "name": "paused",
206
+ "type": "boolean",
207
+ "primaryKey": false,
208
+ "notNull": true,
209
+ "default": false
210
+ },
211
+ "created_at": {
212
+ "name": "created_at",
213
+ "type": "timestamp",
214
+ "primaryKey": false,
215
+ "notNull": true,
216
+ "default": "now()"
217
+ },
218
+ "updated_at": {
219
+ "name": "updated_at",
220
+ "type": "timestamp",
221
+ "primaryKey": false,
222
+ "notNull": true,
223
+ "default": "now()"
224
+ }
225
+ },
226
+ "indexes": {},
227
+ "foreignKeys": {},
228
+ "compositePrimaryKeys": {},
229
+ "uniqueConstraints": {},
230
+ "policies": {},
231
+ "checkConstraints": {},
232
+ "isRLSEnabled": false
233
+ },
234
+ "public.health_check_runs": {
235
+ "name": "health_check_runs",
236
+ "schema": "",
237
+ "columns": {
238
+ "id": {
239
+ "name": "id",
240
+ "type": "uuid",
241
+ "primaryKey": true,
242
+ "notNull": true,
243
+ "default": "gen_random_uuid()"
244
+ },
245
+ "configuration_id": {
246
+ "name": "configuration_id",
247
+ "type": "uuid",
248
+ "primaryKey": false,
249
+ "notNull": true
250
+ },
251
+ "system_id": {
252
+ "name": "system_id",
253
+ "type": "text",
254
+ "primaryKey": false,
255
+ "notNull": true
256
+ },
257
+ "status": {
258
+ "name": "status",
259
+ "type": "health_check_status",
260
+ "typeSchema": "public",
261
+ "primaryKey": false,
262
+ "notNull": true
263
+ },
264
+ "latency_ms": {
265
+ "name": "latency_ms",
266
+ "type": "integer",
267
+ "primaryKey": false,
268
+ "notNull": false
269
+ },
270
+ "result": {
271
+ "name": "result",
272
+ "type": "jsonb",
273
+ "primaryKey": false,
274
+ "notNull": false
275
+ },
276
+ "source_id": {
277
+ "name": "source_id",
278
+ "type": "text",
279
+ "primaryKey": false,
280
+ "notNull": false
281
+ },
282
+ "source_label": {
283
+ "name": "source_label",
284
+ "type": "text",
285
+ "primaryKey": false,
286
+ "notNull": false
287
+ },
288
+ "timestamp": {
289
+ "name": "timestamp",
290
+ "type": "timestamp",
291
+ "primaryKey": false,
292
+ "notNull": true,
293
+ "default": "now()"
294
+ }
295
+ },
296
+ "indexes": {},
297
+ "foreignKeys": {
298
+ "health_check_runs_configuration_id_health_check_configurations_id_fk": {
299
+ "name": "health_check_runs_configuration_id_health_check_configurations_id_fk",
300
+ "tableFrom": "health_check_runs",
301
+ "tableTo": "health_check_configurations",
302
+ "columnsFrom": [
303
+ "configuration_id"
304
+ ],
305
+ "columnsTo": [
306
+ "id"
307
+ ],
308
+ "onDelete": "cascade",
309
+ "onUpdate": "no action"
310
+ }
311
+ },
312
+ "compositePrimaryKeys": {},
313
+ "uniqueConstraints": {},
314
+ "policies": {},
315
+ "checkConstraints": {},
316
+ "isRLSEnabled": false
317
+ },
318
+ "public.health_check_state_transitions": {
319
+ "name": "health_check_state_transitions",
320
+ "schema": "",
321
+ "columns": {
322
+ "id": {
323
+ "name": "id",
324
+ "type": "uuid",
325
+ "primaryKey": true,
326
+ "notNull": true,
327
+ "default": "gen_random_uuid()"
328
+ },
329
+ "system_id": {
330
+ "name": "system_id",
331
+ "type": "text",
332
+ "primaryKey": false,
333
+ "notNull": true
334
+ },
335
+ "configuration_id": {
336
+ "name": "configuration_id",
337
+ "type": "uuid",
338
+ "primaryKey": false,
339
+ "notNull": true
340
+ },
341
+ "from_status": {
342
+ "name": "from_status",
343
+ "type": "health_check_status",
344
+ "typeSchema": "public",
345
+ "primaryKey": false,
346
+ "notNull": false
347
+ },
348
+ "to_status": {
349
+ "name": "to_status",
350
+ "type": "health_check_status",
351
+ "typeSchema": "public",
352
+ "primaryKey": false,
353
+ "notNull": true
354
+ },
355
+ "transitioned_at": {
356
+ "name": "transitioned_at",
357
+ "type": "timestamp",
358
+ "primaryKey": false,
359
+ "notNull": true,
360
+ "default": "now()"
361
+ }
362
+ },
363
+ "indexes": {
364
+ "health_check_state_transitions_lookup_idx": {
365
+ "name": "health_check_state_transitions_lookup_idx",
366
+ "columns": [
367
+ {
368
+ "expression": "system_id",
369
+ "isExpression": false,
370
+ "asc": true,
371
+ "nulls": "last"
372
+ },
373
+ {
374
+ "expression": "to_status",
375
+ "isExpression": false,
376
+ "asc": true,
377
+ "nulls": "last"
378
+ },
379
+ {
380
+ "expression": "transitioned_at",
381
+ "isExpression": false,
382
+ "asc": true,
383
+ "nulls": "last"
384
+ }
385
+ ],
386
+ "isUnique": false,
387
+ "concurrently": false,
388
+ "method": "btree",
389
+ "with": {}
390
+ },
391
+ "health_check_state_transitions_system_recent_idx": {
392
+ "name": "health_check_state_transitions_system_recent_idx",
393
+ "columns": [
394
+ {
395
+ "expression": "system_id",
396
+ "isExpression": false,
397
+ "asc": true,
398
+ "nulls": "last"
399
+ },
400
+ {
401
+ "expression": "transitioned_at",
402
+ "isExpression": false,
403
+ "asc": true,
404
+ "nulls": "last"
405
+ }
406
+ ],
407
+ "isUnique": false,
408
+ "concurrently": false,
409
+ "method": "btree",
410
+ "with": {}
411
+ }
412
+ },
413
+ "foreignKeys": {
414
+ "health_check_state_transitions_configuration_id_health_check_configurations_id_fk": {
415
+ "name": "health_check_state_transitions_configuration_id_health_check_configurations_id_fk",
416
+ "tableFrom": "health_check_state_transitions",
417
+ "tableTo": "health_check_configurations",
418
+ "columnsFrom": [
419
+ "configuration_id"
420
+ ],
421
+ "columnsTo": [
422
+ "id"
423
+ ],
424
+ "onDelete": "cascade",
425
+ "onUpdate": "no action"
426
+ }
427
+ },
428
+ "compositePrimaryKeys": {},
429
+ "uniqueConstraints": {},
430
+ "policies": {},
431
+ "checkConstraints": {},
432
+ "isRLSEnabled": false
433
+ },
434
+ "public.system_health_checks": {
435
+ "name": "system_health_checks",
436
+ "schema": "",
437
+ "columns": {
438
+ "system_id": {
439
+ "name": "system_id",
440
+ "type": "text",
441
+ "primaryKey": false,
442
+ "notNull": true
443
+ },
444
+ "configuration_id": {
445
+ "name": "configuration_id",
446
+ "type": "uuid",
447
+ "primaryKey": false,
448
+ "notNull": true
449
+ },
450
+ "enabled": {
451
+ "name": "enabled",
452
+ "type": "boolean",
453
+ "primaryKey": false,
454
+ "notNull": true,
455
+ "default": true
456
+ },
457
+ "state_thresholds": {
458
+ "name": "state_thresholds",
459
+ "type": "jsonb",
460
+ "primaryKey": false,
461
+ "notNull": false
462
+ },
463
+ "retention_config": {
464
+ "name": "retention_config",
465
+ "type": "jsonb",
466
+ "primaryKey": false,
467
+ "notNull": false
468
+ },
469
+ "satellite_ids": {
470
+ "name": "satellite_ids",
471
+ "type": "jsonb",
472
+ "primaryKey": false,
473
+ "notNull": false
474
+ },
475
+ "include_local": {
476
+ "name": "include_local",
477
+ "type": "boolean",
478
+ "primaryKey": false,
479
+ "notNull": true,
480
+ "default": true
481
+ },
482
+ "notification_policy": {
483
+ "name": "notification_policy",
484
+ "type": "jsonb",
485
+ "primaryKey": false,
486
+ "notNull": false
487
+ },
488
+ "created_at": {
489
+ "name": "created_at",
490
+ "type": "timestamp",
491
+ "primaryKey": false,
492
+ "notNull": true,
493
+ "default": "now()"
494
+ },
495
+ "updated_at": {
496
+ "name": "updated_at",
497
+ "type": "timestamp",
498
+ "primaryKey": false,
499
+ "notNull": true,
500
+ "default": "now()"
501
+ }
502
+ },
503
+ "indexes": {},
504
+ "foreignKeys": {
505
+ "system_health_checks_configuration_id_health_check_configurations_id_fk": {
506
+ "name": "system_health_checks_configuration_id_health_check_configurations_id_fk",
507
+ "tableFrom": "system_health_checks",
508
+ "tableTo": "health_check_configurations",
509
+ "columnsFrom": [
510
+ "configuration_id"
511
+ ],
512
+ "columnsTo": [
513
+ "id"
514
+ ],
515
+ "onDelete": "cascade",
516
+ "onUpdate": "no action"
517
+ }
518
+ },
519
+ "compositePrimaryKeys": {
520
+ "system_health_checks_system_id_configuration_id_pk": {
521
+ "name": "system_health_checks_system_id_configuration_id_pk",
522
+ "columns": [
523
+ "system_id",
524
+ "configuration_id"
525
+ ]
526
+ }
527
+ },
528
+ "uniqueConstraints": {},
529
+ "policies": {},
530
+ "checkConstraints": {},
531
+ "isRLSEnabled": false
532
+ }
533
+ },
534
+ "enums": {
535
+ "public.bucket_size": {
536
+ "name": "bucket_size",
537
+ "schema": "public",
538
+ "values": [
539
+ "hourly",
540
+ "daily"
541
+ ]
542
+ },
543
+ "public.health_check_status": {
544
+ "name": "health_check_status",
545
+ "schema": "public",
546
+ "values": [
547
+ "healthy",
548
+ "unhealthy",
549
+ "degraded"
550
+ ]
551
+ }
552
+ },
553
+ "schemas": {},
554
+ "sequences": {},
555
+ "roles": {},
556
+ "policies": {},
557
+ "views": {},
558
+ "_meta": {
559
+ "columns": {},
560
+ "schemas": {},
561
+ "tables": {}
562
+ }
563
+ }
@@ -106,6 +106,27 @@
106
106
  "when": 1780031079242,
107
107
  "tag": "0014_chilly_ultragirl",
108
108
  "breakpoints": true
109
+ },
110
+ {
111
+ "idx": 15,
112
+ "version": "7",
113
+ "when": 1780144915572,
114
+ "tag": "0015_quiet_meggan",
115
+ "breakpoints": true
116
+ },
117
+ {
118
+ "idx": 16,
119
+ "version": "7",
120
+ "when": 1780246715393,
121
+ "tag": "0016_complex_maginty",
122
+ "breakpoints": true
123
+ },
124
+ {
125
+ "idx": 17,
126
+ "version": "7",
127
+ "when": 1780249120147,
128
+ "tag": "0017_pretty_caretaker",
129
+ "breakpoints": true
109
130
  }
110
131
  ]
111
132
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/healthcheck-backend",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "license": "Elastic-2.0",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -14,24 +14,27 @@
14
14
  "lint:code": "eslint . --max-warnings 0"
15
15
  },
16
16
  "dependencies": {
17
- "@checkstack/backend-api": "0.17.1",
18
- "@checkstack/cache-api": "0.3.5",
19
- "@checkstack/cache-utils": "0.2.10",
20
- "@checkstack/catalog-backend": "1.1.6",
21
- "@checkstack/catalog-common": "2.2.2",
22
- "@checkstack/command-backend": "0.1.30",
23
- "@checkstack/common": "0.11.0",
24
- "@checkstack/gitops-backend": "0.3.6",
25
- "@checkstack/gitops-common": "0.4.1",
26
- "@checkstack/healthcheck-common": "1.2.0",
27
- "@checkstack/incident-backend": "1.2.0",
28
- "@checkstack/incident-common": "1.3.0",
29
- "@checkstack/automation-backend": "0.1.0",
30
- "@checkstack/maintenance-common": "1.2.2",
31
- "@checkstack/notification-common": "1.2.0",
32
- "@checkstack/queue-api": "0.3.5",
33
- "@checkstack/satellite-backend": "0.3.6",
34
- "@checkstack/signal-common": "0.2.4",
17
+ "@checkstack/backend-api": "0.18.0",
18
+ "@checkstack/script-packages-backend": "0.1.0",
19
+ "@checkstack/cache-api": "0.3.6",
20
+ "@checkstack/cache-utils": "0.2.11",
21
+ "@checkstack/catalog-backend": "1.2.0",
22
+ "@checkstack/catalog-common": "2.2.3",
23
+ "@checkstack/command-backend": "0.1.31",
24
+ "@checkstack/common": "0.12.0",
25
+ "@checkstack/gitops-backend": "0.3.7",
26
+ "@checkstack/gitops-common": "0.4.2",
27
+ "@checkstack/healthcheck-common": "1.3.0",
28
+ "@checkstack/secrets-common": "0.0.1",
29
+ "@checkstack/secrets-backend": "0.0.1",
30
+ "@checkstack/incident-backend": "1.3.0",
31
+ "@checkstack/incident-common": "1.3.1",
32
+ "@checkstack/automation-backend": "0.2.0",
33
+ "@checkstack/maintenance-common": "1.2.3",
34
+ "@checkstack/notification-common": "1.2.1",
35
+ "@checkstack/queue-api": "0.3.6",
36
+ "@checkstack/satellite-backend": "0.4.0",
37
+ "@checkstack/signal-common": "0.2.5",
35
38
  "@hono/zod-validator": "^0.7.6",
36
39
  "drizzle-orm": "^0.45.0",
37
40
  "hono": "^4.12.14",
@@ -41,8 +44,8 @@
41
44
  },
42
45
  "devDependencies": {
43
46
  "@checkstack/drizzle-helper": "0.0.5",
44
- "@checkstack/scripts": "0.3.3",
45
- "@checkstack/test-utils-backend": "0.1.30",
47
+ "@checkstack/scripts": "0.3.4",
48
+ "@checkstack/test-utils-backend": "0.1.31",
46
49
  "@checkstack/tsconfig": "0.0.7",
47
50
  "@types/bun": "^1.0.0",
48
51
  "@types/tdigest": "^0.1.5",