@checkstack/healthcheck-backend 1.1.3 → 1.2.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,648 @@
1
+ {
2
+ "id": "b6feb0cc-aaac-43bc-a958-a52ff7b17809",
3
+ "prevId": "724bdcf9-4cc4-4879-a94a-0bbb0138d207",
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_auto_incidents": {
157
+ "name": "health_check_auto_incidents",
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
+ "incident_id": {
168
+ "name": "incident_id",
169
+ "type": "uuid",
170
+ "primaryKey": false,
171
+ "notNull": true
172
+ },
173
+ "system_id": {
174
+ "name": "system_id",
175
+ "type": "text",
176
+ "primaryKey": false,
177
+ "notNull": true
178
+ },
179
+ "configuration_id": {
180
+ "name": "configuration_id",
181
+ "type": "uuid",
182
+ "primaryKey": false,
183
+ "notNull": true
184
+ },
185
+ "opened_at": {
186
+ "name": "opened_at",
187
+ "type": "timestamp",
188
+ "primaryKey": false,
189
+ "notNull": true,
190
+ "default": "now()"
191
+ },
192
+ "closed_at": {
193
+ "name": "closed_at",
194
+ "type": "timestamp",
195
+ "primaryKey": false,
196
+ "notNull": false
197
+ },
198
+ "cooldown_minutes": {
199
+ "name": "cooldown_minutes",
200
+ "type": "integer",
201
+ "primaryKey": false,
202
+ "notNull": false
203
+ }
204
+ },
205
+ "indexes": {
206
+ "health_check_auto_incidents_active_by_system_idx": {
207
+ "name": "health_check_auto_incidents_active_by_system_idx",
208
+ "columns": [
209
+ {
210
+ "expression": "system_id",
211
+ "isExpression": false,
212
+ "asc": true,
213
+ "nulls": "last"
214
+ },
215
+ {
216
+ "expression": "closed_at",
217
+ "isExpression": false,
218
+ "asc": true,
219
+ "nulls": "last"
220
+ }
221
+ ],
222
+ "isUnique": false,
223
+ "concurrently": false,
224
+ "method": "btree",
225
+ "with": {}
226
+ },
227
+ "health_check_auto_incidents_last_close_idx": {
228
+ "name": "health_check_auto_incidents_last_close_idx",
229
+ "columns": [
230
+ {
231
+ "expression": "configuration_id",
232
+ "isExpression": false,
233
+ "asc": true,
234
+ "nulls": "last"
235
+ },
236
+ {
237
+ "expression": "system_id",
238
+ "isExpression": false,
239
+ "asc": true,
240
+ "nulls": "last"
241
+ },
242
+ {
243
+ "expression": "closed_at",
244
+ "isExpression": false,
245
+ "asc": true,
246
+ "nulls": "last"
247
+ }
248
+ ],
249
+ "isUnique": false,
250
+ "concurrently": false,
251
+ "method": "btree",
252
+ "with": {}
253
+ }
254
+ },
255
+ "foreignKeys": {
256
+ "health_check_auto_incidents_configuration_id_health_check_configurations_id_fk": {
257
+ "name": "health_check_auto_incidents_configuration_id_health_check_configurations_id_fk",
258
+ "tableFrom": "health_check_auto_incidents",
259
+ "tableTo": "health_check_configurations",
260
+ "columnsFrom": [
261
+ "configuration_id"
262
+ ],
263
+ "columnsTo": [
264
+ "id"
265
+ ],
266
+ "onDelete": "cascade",
267
+ "onUpdate": "no action"
268
+ }
269
+ },
270
+ "compositePrimaryKeys": {},
271
+ "uniqueConstraints": {},
272
+ "policies": {},
273
+ "checkConstraints": {},
274
+ "isRLSEnabled": false
275
+ },
276
+ "public.health_check_configurations": {
277
+ "name": "health_check_configurations",
278
+ "schema": "",
279
+ "columns": {
280
+ "id": {
281
+ "name": "id",
282
+ "type": "uuid",
283
+ "primaryKey": true,
284
+ "notNull": true,
285
+ "default": "gen_random_uuid()"
286
+ },
287
+ "name": {
288
+ "name": "name",
289
+ "type": "text",
290
+ "primaryKey": false,
291
+ "notNull": true
292
+ },
293
+ "strategy_id": {
294
+ "name": "strategy_id",
295
+ "type": "text",
296
+ "primaryKey": false,
297
+ "notNull": true
298
+ },
299
+ "config": {
300
+ "name": "config",
301
+ "type": "jsonb",
302
+ "primaryKey": false,
303
+ "notNull": true
304
+ },
305
+ "collectors": {
306
+ "name": "collectors",
307
+ "type": "jsonb",
308
+ "primaryKey": false,
309
+ "notNull": false
310
+ },
311
+ "interval_seconds": {
312
+ "name": "interval_seconds",
313
+ "type": "integer",
314
+ "primaryKey": false,
315
+ "notNull": true
316
+ },
317
+ "is_template": {
318
+ "name": "is_template",
319
+ "type": "boolean",
320
+ "primaryKey": false,
321
+ "notNull": false,
322
+ "default": false
323
+ },
324
+ "paused": {
325
+ "name": "paused",
326
+ "type": "boolean",
327
+ "primaryKey": false,
328
+ "notNull": true,
329
+ "default": false
330
+ },
331
+ "created_at": {
332
+ "name": "created_at",
333
+ "type": "timestamp",
334
+ "primaryKey": false,
335
+ "notNull": true,
336
+ "default": "now()"
337
+ },
338
+ "updated_at": {
339
+ "name": "updated_at",
340
+ "type": "timestamp",
341
+ "primaryKey": false,
342
+ "notNull": true,
343
+ "default": "now()"
344
+ }
345
+ },
346
+ "indexes": {},
347
+ "foreignKeys": {},
348
+ "compositePrimaryKeys": {},
349
+ "uniqueConstraints": {},
350
+ "policies": {},
351
+ "checkConstraints": {},
352
+ "isRLSEnabled": false
353
+ },
354
+ "public.health_check_runs": {
355
+ "name": "health_check_runs",
356
+ "schema": "",
357
+ "columns": {
358
+ "id": {
359
+ "name": "id",
360
+ "type": "uuid",
361
+ "primaryKey": true,
362
+ "notNull": true,
363
+ "default": "gen_random_uuid()"
364
+ },
365
+ "configuration_id": {
366
+ "name": "configuration_id",
367
+ "type": "uuid",
368
+ "primaryKey": false,
369
+ "notNull": true
370
+ },
371
+ "system_id": {
372
+ "name": "system_id",
373
+ "type": "text",
374
+ "primaryKey": false,
375
+ "notNull": true
376
+ },
377
+ "status": {
378
+ "name": "status",
379
+ "type": "health_check_status",
380
+ "typeSchema": "public",
381
+ "primaryKey": false,
382
+ "notNull": true
383
+ },
384
+ "latency_ms": {
385
+ "name": "latency_ms",
386
+ "type": "integer",
387
+ "primaryKey": false,
388
+ "notNull": false
389
+ },
390
+ "result": {
391
+ "name": "result",
392
+ "type": "jsonb",
393
+ "primaryKey": false,
394
+ "notNull": false
395
+ },
396
+ "source_id": {
397
+ "name": "source_id",
398
+ "type": "text",
399
+ "primaryKey": false,
400
+ "notNull": false
401
+ },
402
+ "source_label": {
403
+ "name": "source_label",
404
+ "type": "text",
405
+ "primaryKey": false,
406
+ "notNull": false
407
+ },
408
+ "timestamp": {
409
+ "name": "timestamp",
410
+ "type": "timestamp",
411
+ "primaryKey": false,
412
+ "notNull": true,
413
+ "default": "now()"
414
+ }
415
+ },
416
+ "indexes": {},
417
+ "foreignKeys": {
418
+ "health_check_runs_configuration_id_health_check_configurations_id_fk": {
419
+ "name": "health_check_runs_configuration_id_health_check_configurations_id_fk",
420
+ "tableFrom": "health_check_runs",
421
+ "tableTo": "health_check_configurations",
422
+ "columnsFrom": [
423
+ "configuration_id"
424
+ ],
425
+ "columnsTo": [
426
+ "id"
427
+ ],
428
+ "onDelete": "cascade",
429
+ "onUpdate": "no action"
430
+ }
431
+ },
432
+ "compositePrimaryKeys": {},
433
+ "uniqueConstraints": {},
434
+ "policies": {},
435
+ "checkConstraints": {},
436
+ "isRLSEnabled": false
437
+ },
438
+ "public.health_check_unhealthy_transitions": {
439
+ "name": "health_check_unhealthy_transitions",
440
+ "schema": "",
441
+ "columns": {
442
+ "id": {
443
+ "name": "id",
444
+ "type": "uuid",
445
+ "primaryKey": true,
446
+ "notNull": true,
447
+ "default": "gen_random_uuid()"
448
+ },
449
+ "configuration_id": {
450
+ "name": "configuration_id",
451
+ "type": "uuid",
452
+ "primaryKey": false,
453
+ "notNull": true
454
+ },
455
+ "system_id": {
456
+ "name": "system_id",
457
+ "type": "text",
458
+ "primaryKey": false,
459
+ "notNull": true
460
+ },
461
+ "transitioned_at": {
462
+ "name": "transitioned_at",
463
+ "type": "timestamp",
464
+ "primaryKey": false,
465
+ "notNull": true,
466
+ "default": "now()"
467
+ }
468
+ },
469
+ "indexes": {
470
+ "health_check_unhealthy_transitions_lookup_idx": {
471
+ "name": "health_check_unhealthy_transitions_lookup_idx",
472
+ "columns": [
473
+ {
474
+ "expression": "configuration_id",
475
+ "isExpression": false,
476
+ "asc": true,
477
+ "nulls": "last"
478
+ },
479
+ {
480
+ "expression": "system_id",
481
+ "isExpression": false,
482
+ "asc": true,
483
+ "nulls": "last"
484
+ },
485
+ {
486
+ "expression": "transitioned_at",
487
+ "isExpression": false,
488
+ "asc": true,
489
+ "nulls": "last"
490
+ }
491
+ ],
492
+ "isUnique": false,
493
+ "concurrently": false,
494
+ "method": "btree",
495
+ "with": {}
496
+ }
497
+ },
498
+ "foreignKeys": {
499
+ "health_check_unhealthy_transitions_configuration_id_health_check_configurations_id_fk": {
500
+ "name": "health_check_unhealthy_transitions_configuration_id_health_check_configurations_id_fk",
501
+ "tableFrom": "health_check_unhealthy_transitions",
502
+ "tableTo": "health_check_configurations",
503
+ "columnsFrom": [
504
+ "configuration_id"
505
+ ],
506
+ "columnsTo": [
507
+ "id"
508
+ ],
509
+ "onDelete": "cascade",
510
+ "onUpdate": "no action"
511
+ }
512
+ },
513
+ "compositePrimaryKeys": {},
514
+ "uniqueConstraints": {},
515
+ "policies": {},
516
+ "checkConstraints": {},
517
+ "isRLSEnabled": false
518
+ },
519
+ "public.system_health_checks": {
520
+ "name": "system_health_checks",
521
+ "schema": "",
522
+ "columns": {
523
+ "system_id": {
524
+ "name": "system_id",
525
+ "type": "text",
526
+ "primaryKey": false,
527
+ "notNull": true
528
+ },
529
+ "configuration_id": {
530
+ "name": "configuration_id",
531
+ "type": "uuid",
532
+ "primaryKey": false,
533
+ "notNull": true
534
+ },
535
+ "enabled": {
536
+ "name": "enabled",
537
+ "type": "boolean",
538
+ "primaryKey": false,
539
+ "notNull": true,
540
+ "default": true
541
+ },
542
+ "state_thresholds": {
543
+ "name": "state_thresholds",
544
+ "type": "jsonb",
545
+ "primaryKey": false,
546
+ "notNull": false
547
+ },
548
+ "retention_config": {
549
+ "name": "retention_config",
550
+ "type": "jsonb",
551
+ "primaryKey": false,
552
+ "notNull": false
553
+ },
554
+ "satellite_ids": {
555
+ "name": "satellite_ids",
556
+ "type": "jsonb",
557
+ "primaryKey": false,
558
+ "notNull": false
559
+ },
560
+ "include_local": {
561
+ "name": "include_local",
562
+ "type": "boolean",
563
+ "primaryKey": false,
564
+ "notNull": true,
565
+ "default": true
566
+ },
567
+ "notification_policy": {
568
+ "name": "notification_policy",
569
+ "type": "jsonb",
570
+ "primaryKey": false,
571
+ "notNull": false
572
+ },
573
+ "created_at": {
574
+ "name": "created_at",
575
+ "type": "timestamp",
576
+ "primaryKey": false,
577
+ "notNull": true,
578
+ "default": "now()"
579
+ },
580
+ "updated_at": {
581
+ "name": "updated_at",
582
+ "type": "timestamp",
583
+ "primaryKey": false,
584
+ "notNull": true,
585
+ "default": "now()"
586
+ }
587
+ },
588
+ "indexes": {},
589
+ "foreignKeys": {
590
+ "system_health_checks_configuration_id_health_check_configurations_id_fk": {
591
+ "name": "system_health_checks_configuration_id_health_check_configurations_id_fk",
592
+ "tableFrom": "system_health_checks",
593
+ "tableTo": "health_check_configurations",
594
+ "columnsFrom": [
595
+ "configuration_id"
596
+ ],
597
+ "columnsTo": [
598
+ "id"
599
+ ],
600
+ "onDelete": "cascade",
601
+ "onUpdate": "no action"
602
+ }
603
+ },
604
+ "compositePrimaryKeys": {
605
+ "system_health_checks_system_id_configuration_id_pk": {
606
+ "name": "system_health_checks_system_id_configuration_id_pk",
607
+ "columns": [
608
+ "system_id",
609
+ "configuration_id"
610
+ ]
611
+ }
612
+ },
613
+ "uniqueConstraints": {},
614
+ "policies": {},
615
+ "checkConstraints": {},
616
+ "isRLSEnabled": false
617
+ }
618
+ },
619
+ "enums": {
620
+ "public.bucket_size": {
621
+ "name": "bucket_size",
622
+ "schema": "public",
623
+ "values": [
624
+ "hourly",
625
+ "daily"
626
+ ]
627
+ },
628
+ "public.health_check_status": {
629
+ "name": "health_check_status",
630
+ "schema": "public",
631
+ "values": [
632
+ "healthy",
633
+ "unhealthy",
634
+ "degraded"
635
+ ]
636
+ }
637
+ },
638
+ "schemas": {},
639
+ "sequences": {},
640
+ "roles": {},
641
+ "policies": {},
642
+ "views": {},
643
+ "_meta": {
644
+ "columns": {},
645
+ "schemas": {},
646
+ "tables": {}
647
+ }
648
+ }
@@ -85,6 +85,27 @@
85
85
  "when": 1777354405576,
86
86
  "tag": "0011_fluffy_sphinx",
87
87
  "breakpoints": true
88
+ },
89
+ {
90
+ "idx": 12,
91
+ "version": "7",
92
+ "when": 1779951411682,
93
+ "tag": "0012_fair_boomer",
94
+ "breakpoints": true
95
+ },
96
+ {
97
+ "idx": 13,
98
+ "version": "7",
99
+ "when": 1780029567800,
100
+ "tag": "0013_clean_fabian_cortez",
101
+ "breakpoints": true
102
+ },
103
+ {
104
+ "idx": 14,
105
+ "version": "7",
106
+ "when": 1780031079242,
107
+ "tag": "0014_chilly_ultragirl",
108
+ "breakpoints": true
88
109
  }
89
110
  ]
90
111
  }