@checkstack/healthcheck-backend 1.19.0 → 1.20.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,661 @@
1
+ {
2
+ "id": "e79e7c00-704b-4cbf-b4fe-203ac00c1f88",
3
+ "prevId": "5a28baf8-e7a8-4ee4-8028-ce6e1f0e1a63",
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
+ "environment_id": {
31
+ "name": "environment_id",
32
+ "type": "text",
33
+ "primaryKey": false,
34
+ "notNull": false
35
+ },
36
+ "bucket_start": {
37
+ "name": "bucket_start",
38
+ "type": "timestamp",
39
+ "primaryKey": false,
40
+ "notNull": true
41
+ },
42
+ "bucket_size": {
43
+ "name": "bucket_size",
44
+ "type": "bucket_size",
45
+ "typeSchema": "public",
46
+ "primaryKey": false,
47
+ "notNull": true
48
+ },
49
+ "run_count": {
50
+ "name": "run_count",
51
+ "type": "integer",
52
+ "primaryKey": false,
53
+ "notNull": true
54
+ },
55
+ "healthy_count": {
56
+ "name": "healthy_count",
57
+ "type": "integer",
58
+ "primaryKey": false,
59
+ "notNull": true
60
+ },
61
+ "degraded_count": {
62
+ "name": "degraded_count",
63
+ "type": "integer",
64
+ "primaryKey": false,
65
+ "notNull": true
66
+ },
67
+ "unhealthy_count": {
68
+ "name": "unhealthy_count",
69
+ "type": "integer",
70
+ "primaryKey": false,
71
+ "notNull": true
72
+ },
73
+ "latency_sum_ms": {
74
+ "name": "latency_sum_ms",
75
+ "type": "integer",
76
+ "primaryKey": false,
77
+ "notNull": false
78
+ },
79
+ "avg_latency_ms": {
80
+ "name": "avg_latency_ms",
81
+ "type": "integer",
82
+ "primaryKey": false,
83
+ "notNull": false
84
+ },
85
+ "min_latency_ms": {
86
+ "name": "min_latency_ms",
87
+ "type": "integer",
88
+ "primaryKey": false,
89
+ "notNull": false
90
+ },
91
+ "max_latency_ms": {
92
+ "name": "max_latency_ms",
93
+ "type": "integer",
94
+ "primaryKey": false,
95
+ "notNull": false
96
+ },
97
+ "p95_latency_ms": {
98
+ "name": "p95_latency_ms",
99
+ "type": "integer",
100
+ "primaryKey": false,
101
+ "notNull": false
102
+ },
103
+ "aggregated_result": {
104
+ "name": "aggregated_result",
105
+ "type": "jsonb",
106
+ "primaryKey": false,
107
+ "notNull": false
108
+ },
109
+ "tdigest_state": {
110
+ "name": "tdigest_state",
111
+ "type": "jsonb",
112
+ "primaryKey": false,
113
+ "notNull": false
114
+ },
115
+ "source_id": {
116
+ "name": "source_id",
117
+ "type": "text",
118
+ "primaryKey": false,
119
+ "notNull": false
120
+ },
121
+ "source_label": {
122
+ "name": "source_label",
123
+ "type": "text",
124
+ "primaryKey": false,
125
+ "notNull": false
126
+ }
127
+ },
128
+ "indexes": {},
129
+ "foreignKeys": {
130
+ "health_check_aggregates_configuration_id_health_check_configurations_id_fk": {
131
+ "name": "health_check_aggregates_configuration_id_health_check_configurations_id_fk",
132
+ "tableFrom": "health_check_aggregates",
133
+ "tableTo": "health_check_configurations",
134
+ "columnsFrom": [
135
+ "configuration_id"
136
+ ],
137
+ "columnsTo": [
138
+ "id"
139
+ ],
140
+ "onDelete": "cascade",
141
+ "onUpdate": "no action"
142
+ }
143
+ },
144
+ "compositePrimaryKeys": {},
145
+ "uniqueConstraints": {
146
+ "health_check_aggregates_bucket_unique": {
147
+ "name": "health_check_aggregates_bucket_unique",
148
+ "nullsNotDistinct": true,
149
+ "columns": [
150
+ "configuration_id",
151
+ "system_id",
152
+ "environment_id",
153
+ "bucket_start",
154
+ "bucket_size",
155
+ "source_id"
156
+ ]
157
+ }
158
+ },
159
+ "policies": {},
160
+ "checkConstraints": {},
161
+ "isRLSEnabled": false
162
+ },
163
+ "public.health_check_configurations": {
164
+ "name": "health_check_configurations",
165
+ "schema": "",
166
+ "columns": {
167
+ "id": {
168
+ "name": "id",
169
+ "type": "uuid",
170
+ "primaryKey": true,
171
+ "notNull": true,
172
+ "default": "gen_random_uuid()"
173
+ },
174
+ "name": {
175
+ "name": "name",
176
+ "type": "text",
177
+ "primaryKey": false,
178
+ "notNull": true
179
+ },
180
+ "strategy_id": {
181
+ "name": "strategy_id",
182
+ "type": "text",
183
+ "primaryKey": false,
184
+ "notNull": true
185
+ },
186
+ "config": {
187
+ "name": "config",
188
+ "type": "jsonb",
189
+ "primaryKey": false,
190
+ "notNull": true
191
+ },
192
+ "collectors": {
193
+ "name": "collectors",
194
+ "type": "jsonb",
195
+ "primaryKey": false,
196
+ "notNull": false
197
+ },
198
+ "interval_seconds": {
199
+ "name": "interval_seconds",
200
+ "type": "integer",
201
+ "primaryKey": false,
202
+ "notNull": true
203
+ },
204
+ "is_template": {
205
+ "name": "is_template",
206
+ "type": "boolean",
207
+ "primaryKey": false,
208
+ "notNull": false,
209
+ "default": false
210
+ },
211
+ "paused": {
212
+ "name": "paused",
213
+ "type": "boolean",
214
+ "primaryKey": false,
215
+ "notNull": true,
216
+ "default": false
217
+ },
218
+ "created_at": {
219
+ "name": "created_at",
220
+ "type": "timestamp",
221
+ "primaryKey": false,
222
+ "notNull": true,
223
+ "default": "now()"
224
+ },
225
+ "updated_at": {
226
+ "name": "updated_at",
227
+ "type": "timestamp",
228
+ "primaryKey": false,
229
+ "notNull": true,
230
+ "default": "now()"
231
+ }
232
+ },
233
+ "indexes": {},
234
+ "foreignKeys": {},
235
+ "compositePrimaryKeys": {},
236
+ "uniqueConstraints": {},
237
+ "policies": {},
238
+ "checkConstraints": {},
239
+ "isRLSEnabled": false
240
+ },
241
+ "public.health_check_runs": {
242
+ "name": "health_check_runs",
243
+ "schema": "",
244
+ "columns": {
245
+ "id": {
246
+ "name": "id",
247
+ "type": "uuid",
248
+ "primaryKey": true,
249
+ "notNull": true,
250
+ "default": "gen_random_uuid()"
251
+ },
252
+ "configuration_id": {
253
+ "name": "configuration_id",
254
+ "type": "uuid",
255
+ "primaryKey": false,
256
+ "notNull": true
257
+ },
258
+ "system_id": {
259
+ "name": "system_id",
260
+ "type": "text",
261
+ "primaryKey": false,
262
+ "notNull": true
263
+ },
264
+ "environment_id": {
265
+ "name": "environment_id",
266
+ "type": "text",
267
+ "primaryKey": false,
268
+ "notNull": false
269
+ },
270
+ "status": {
271
+ "name": "status",
272
+ "type": "health_check_status",
273
+ "typeSchema": "public",
274
+ "primaryKey": false,
275
+ "notNull": true
276
+ },
277
+ "latency_ms": {
278
+ "name": "latency_ms",
279
+ "type": "integer",
280
+ "primaryKey": false,
281
+ "notNull": false
282
+ },
283
+ "result": {
284
+ "name": "result",
285
+ "type": "jsonb",
286
+ "primaryKey": false,
287
+ "notNull": false
288
+ },
289
+ "source_id": {
290
+ "name": "source_id",
291
+ "type": "text",
292
+ "primaryKey": false,
293
+ "notNull": false
294
+ },
295
+ "source_label": {
296
+ "name": "source_label",
297
+ "type": "text",
298
+ "primaryKey": false,
299
+ "notNull": false
300
+ },
301
+ "timestamp": {
302
+ "name": "timestamp",
303
+ "type": "timestamp",
304
+ "primaryKey": false,
305
+ "notNull": true,
306
+ "default": "now()"
307
+ }
308
+ },
309
+ "indexes": {
310
+ "health_check_runs_check_recent_idx": {
311
+ "name": "health_check_runs_check_recent_idx",
312
+ "columns": [
313
+ {
314
+ "expression": "system_id",
315
+ "isExpression": false,
316
+ "asc": true,
317
+ "nulls": "last"
318
+ },
319
+ {
320
+ "expression": "configuration_id",
321
+ "isExpression": false,
322
+ "asc": true,
323
+ "nulls": "last"
324
+ },
325
+ {
326
+ "expression": "timestamp",
327
+ "isExpression": false,
328
+ "asc": true,
329
+ "nulls": "last"
330
+ }
331
+ ],
332
+ "isUnique": false,
333
+ "concurrently": false,
334
+ "method": "btree",
335
+ "with": {}
336
+ },
337
+ "health_check_runs_slice_recent_idx": {
338
+ "name": "health_check_runs_slice_recent_idx",
339
+ "columns": [
340
+ {
341
+ "expression": "system_id",
342
+ "isExpression": false,
343
+ "asc": true,
344
+ "nulls": "last"
345
+ },
346
+ {
347
+ "expression": "configuration_id",
348
+ "isExpression": false,
349
+ "asc": true,
350
+ "nulls": "last"
351
+ },
352
+ {
353
+ "expression": "environment_id",
354
+ "isExpression": false,
355
+ "asc": true,
356
+ "nulls": "last"
357
+ },
358
+ {
359
+ "expression": "timestamp",
360
+ "isExpression": false,
361
+ "asc": true,
362
+ "nulls": "last"
363
+ }
364
+ ],
365
+ "isUnique": false,
366
+ "concurrently": false,
367
+ "method": "btree",
368
+ "with": {}
369
+ }
370
+ },
371
+ "foreignKeys": {
372
+ "health_check_runs_configuration_id_health_check_configurations_id_fk": {
373
+ "name": "health_check_runs_configuration_id_health_check_configurations_id_fk",
374
+ "tableFrom": "health_check_runs",
375
+ "tableTo": "health_check_configurations",
376
+ "columnsFrom": [
377
+ "configuration_id"
378
+ ],
379
+ "columnsTo": [
380
+ "id"
381
+ ],
382
+ "onDelete": "cascade",
383
+ "onUpdate": "no action"
384
+ }
385
+ },
386
+ "compositePrimaryKeys": {},
387
+ "uniqueConstraints": {},
388
+ "policies": {},
389
+ "checkConstraints": {},
390
+ "isRLSEnabled": false
391
+ },
392
+ "public.health_check_state_transitions": {
393
+ "name": "health_check_state_transitions",
394
+ "schema": "",
395
+ "columns": {
396
+ "id": {
397
+ "name": "id",
398
+ "type": "uuid",
399
+ "primaryKey": true,
400
+ "notNull": true,
401
+ "default": "gen_random_uuid()"
402
+ },
403
+ "system_id": {
404
+ "name": "system_id",
405
+ "type": "text",
406
+ "primaryKey": false,
407
+ "notNull": true
408
+ },
409
+ "configuration_id": {
410
+ "name": "configuration_id",
411
+ "type": "uuid",
412
+ "primaryKey": false,
413
+ "notNull": true
414
+ },
415
+ "environment_id": {
416
+ "name": "environment_id",
417
+ "type": "text",
418
+ "primaryKey": false,
419
+ "notNull": false
420
+ },
421
+ "from_status": {
422
+ "name": "from_status",
423
+ "type": "health_check_status",
424
+ "typeSchema": "public",
425
+ "primaryKey": false,
426
+ "notNull": false
427
+ },
428
+ "to_status": {
429
+ "name": "to_status",
430
+ "type": "health_check_status",
431
+ "typeSchema": "public",
432
+ "primaryKey": false,
433
+ "notNull": true
434
+ },
435
+ "transitioned_at": {
436
+ "name": "transitioned_at",
437
+ "type": "timestamp",
438
+ "primaryKey": false,
439
+ "notNull": true,
440
+ "default": "now()"
441
+ }
442
+ },
443
+ "indexes": {
444
+ "health_check_state_transitions_lookup_idx": {
445
+ "name": "health_check_state_transitions_lookup_idx",
446
+ "columns": [
447
+ {
448
+ "expression": "system_id",
449
+ "isExpression": false,
450
+ "asc": true,
451
+ "nulls": "last"
452
+ },
453
+ {
454
+ "expression": "environment_id",
455
+ "isExpression": false,
456
+ "asc": true,
457
+ "nulls": "last"
458
+ },
459
+ {
460
+ "expression": "to_status",
461
+ "isExpression": false,
462
+ "asc": true,
463
+ "nulls": "last"
464
+ },
465
+ {
466
+ "expression": "transitioned_at",
467
+ "isExpression": false,
468
+ "asc": true,
469
+ "nulls": "last"
470
+ }
471
+ ],
472
+ "isUnique": false,
473
+ "concurrently": false,
474
+ "method": "btree",
475
+ "with": {}
476
+ },
477
+ "health_check_state_transitions_system_recent_idx": {
478
+ "name": "health_check_state_transitions_system_recent_idx",
479
+ "columns": [
480
+ {
481
+ "expression": "system_id",
482
+ "isExpression": false,
483
+ "asc": true,
484
+ "nulls": "last"
485
+ },
486
+ {
487
+ "expression": "environment_id",
488
+ "isExpression": false,
489
+ "asc": true,
490
+ "nulls": "last"
491
+ },
492
+ {
493
+ "expression": "transitioned_at",
494
+ "isExpression": false,
495
+ "asc": true,
496
+ "nulls": "last"
497
+ }
498
+ ],
499
+ "isUnique": false,
500
+ "concurrently": false,
501
+ "method": "btree",
502
+ "with": {}
503
+ }
504
+ },
505
+ "foreignKeys": {
506
+ "health_check_state_transitions_configuration_id_health_check_configurations_id_fk": {
507
+ "name": "health_check_state_transitions_configuration_id_health_check_configurations_id_fk",
508
+ "tableFrom": "health_check_state_transitions",
509
+ "tableTo": "health_check_configurations",
510
+ "columnsFrom": [
511
+ "configuration_id"
512
+ ],
513
+ "columnsTo": [
514
+ "id"
515
+ ],
516
+ "onDelete": "cascade",
517
+ "onUpdate": "no action"
518
+ }
519
+ },
520
+ "compositePrimaryKeys": {},
521
+ "uniqueConstraints": {},
522
+ "policies": {},
523
+ "checkConstraints": {},
524
+ "isRLSEnabled": false
525
+ },
526
+ "public.system_health_checks": {
527
+ "name": "system_health_checks",
528
+ "schema": "",
529
+ "columns": {
530
+ "system_id": {
531
+ "name": "system_id",
532
+ "type": "text",
533
+ "primaryKey": false,
534
+ "notNull": true
535
+ },
536
+ "configuration_id": {
537
+ "name": "configuration_id",
538
+ "type": "uuid",
539
+ "primaryKey": false,
540
+ "notNull": true
541
+ },
542
+ "enabled": {
543
+ "name": "enabled",
544
+ "type": "boolean",
545
+ "primaryKey": false,
546
+ "notNull": true,
547
+ "default": true
548
+ },
549
+ "state_thresholds": {
550
+ "name": "state_thresholds",
551
+ "type": "jsonb",
552
+ "primaryKey": false,
553
+ "notNull": false
554
+ },
555
+ "retention_config": {
556
+ "name": "retention_config",
557
+ "type": "jsonb",
558
+ "primaryKey": false,
559
+ "notNull": false
560
+ },
561
+ "satellite_ids": {
562
+ "name": "satellite_ids",
563
+ "type": "jsonb",
564
+ "primaryKey": false,
565
+ "notNull": false
566
+ },
567
+ "environment_ids": {
568
+ "name": "environment_ids",
569
+ "type": "jsonb",
570
+ "primaryKey": false,
571
+ "notNull": false
572
+ },
573
+ "include_local": {
574
+ "name": "include_local",
575
+ "type": "boolean",
576
+ "primaryKey": false,
577
+ "notNull": true,
578
+ "default": true
579
+ },
580
+ "notification_policy": {
581
+ "name": "notification_policy",
582
+ "type": "jsonb",
583
+ "primaryKey": false,
584
+ "notNull": false
585
+ },
586
+ "created_at": {
587
+ "name": "created_at",
588
+ "type": "timestamp",
589
+ "primaryKey": false,
590
+ "notNull": true,
591
+ "default": "now()"
592
+ },
593
+ "updated_at": {
594
+ "name": "updated_at",
595
+ "type": "timestamp",
596
+ "primaryKey": false,
597
+ "notNull": true,
598
+ "default": "now()"
599
+ }
600
+ },
601
+ "indexes": {},
602
+ "foreignKeys": {
603
+ "system_health_checks_configuration_id_health_check_configurations_id_fk": {
604
+ "name": "system_health_checks_configuration_id_health_check_configurations_id_fk",
605
+ "tableFrom": "system_health_checks",
606
+ "tableTo": "health_check_configurations",
607
+ "columnsFrom": [
608
+ "configuration_id"
609
+ ],
610
+ "columnsTo": [
611
+ "id"
612
+ ],
613
+ "onDelete": "cascade",
614
+ "onUpdate": "no action"
615
+ }
616
+ },
617
+ "compositePrimaryKeys": {
618
+ "system_health_checks_system_id_configuration_id_pk": {
619
+ "name": "system_health_checks_system_id_configuration_id_pk",
620
+ "columns": [
621
+ "system_id",
622
+ "configuration_id"
623
+ ]
624
+ }
625
+ },
626
+ "uniqueConstraints": {},
627
+ "policies": {},
628
+ "checkConstraints": {},
629
+ "isRLSEnabled": false
630
+ }
631
+ },
632
+ "enums": {
633
+ "public.bucket_size": {
634
+ "name": "bucket_size",
635
+ "schema": "public",
636
+ "values": [
637
+ "hourly",
638
+ "daily"
639
+ ]
640
+ },
641
+ "public.health_check_status": {
642
+ "name": "health_check_status",
643
+ "schema": "public",
644
+ "values": [
645
+ "healthy",
646
+ "unhealthy",
647
+ "degraded"
648
+ ]
649
+ }
650
+ },
651
+ "schemas": {},
652
+ "sequences": {},
653
+ "roles": {},
654
+ "policies": {},
655
+ "views": {},
656
+ "_meta": {
657
+ "columns": {},
658
+ "schemas": {},
659
+ "tables": {}
660
+ }
661
+ }