@checkstack/healthcheck-backend 0.0.2

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,367 @@
1
+ {
2
+ "id": "2f783db3-de1c-4bff-8e7d-1408be721a0e",
3
+ "prevId": "e1764a37-345f-49df-85b1-1232b37864a3",
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
+ "avg_latency_ms": {
68
+ "name": "avg_latency_ms",
69
+ "type": "integer",
70
+ "primaryKey": false,
71
+ "notNull": false
72
+ },
73
+ "min_latency_ms": {
74
+ "name": "min_latency_ms",
75
+ "type": "integer",
76
+ "primaryKey": false,
77
+ "notNull": false
78
+ },
79
+ "max_latency_ms": {
80
+ "name": "max_latency_ms",
81
+ "type": "integer",
82
+ "primaryKey": false,
83
+ "notNull": false
84
+ },
85
+ "p95_latency_ms": {
86
+ "name": "p95_latency_ms",
87
+ "type": "integer",
88
+ "primaryKey": false,
89
+ "notNull": false
90
+ },
91
+ "aggregated_metadata": {
92
+ "name": "aggregated_metadata",
93
+ "type": "jsonb",
94
+ "primaryKey": false,
95
+ "notNull": false
96
+ }
97
+ },
98
+ "indexes": {},
99
+ "foreignKeys": {
100
+ "health_check_aggregates_configuration_id_health_check_configurations_id_fk": {
101
+ "name": "health_check_aggregates_configuration_id_health_check_configurations_id_fk",
102
+ "tableFrom": "health_check_aggregates",
103
+ "tableTo": "health_check_configurations",
104
+ "columnsFrom": [
105
+ "configuration_id"
106
+ ],
107
+ "columnsTo": [
108
+ "id"
109
+ ],
110
+ "onDelete": "cascade",
111
+ "onUpdate": "no action"
112
+ }
113
+ },
114
+ "compositePrimaryKeys": {},
115
+ "uniqueConstraints": {},
116
+ "policies": {},
117
+ "checkConstraints": {},
118
+ "isRLSEnabled": false
119
+ },
120
+ "public.health_check_configurations": {
121
+ "name": "health_check_configurations",
122
+ "schema": "",
123
+ "columns": {
124
+ "id": {
125
+ "name": "id",
126
+ "type": "uuid",
127
+ "primaryKey": true,
128
+ "notNull": true,
129
+ "default": "gen_random_uuid()"
130
+ },
131
+ "name": {
132
+ "name": "name",
133
+ "type": "text",
134
+ "primaryKey": false,
135
+ "notNull": true
136
+ },
137
+ "strategy_id": {
138
+ "name": "strategy_id",
139
+ "type": "text",
140
+ "primaryKey": false,
141
+ "notNull": true
142
+ },
143
+ "config": {
144
+ "name": "config",
145
+ "type": "jsonb",
146
+ "primaryKey": false,
147
+ "notNull": true
148
+ },
149
+ "interval_seconds": {
150
+ "name": "interval_seconds",
151
+ "type": "integer",
152
+ "primaryKey": false,
153
+ "notNull": true
154
+ },
155
+ "is_template": {
156
+ "name": "is_template",
157
+ "type": "boolean",
158
+ "primaryKey": false,
159
+ "notNull": false,
160
+ "default": false
161
+ },
162
+ "created_at": {
163
+ "name": "created_at",
164
+ "type": "timestamp",
165
+ "primaryKey": false,
166
+ "notNull": true,
167
+ "default": "now()"
168
+ },
169
+ "updated_at": {
170
+ "name": "updated_at",
171
+ "type": "timestamp",
172
+ "primaryKey": false,
173
+ "notNull": true,
174
+ "default": "now()"
175
+ }
176
+ },
177
+ "indexes": {},
178
+ "foreignKeys": {},
179
+ "compositePrimaryKeys": {},
180
+ "uniqueConstraints": {},
181
+ "policies": {},
182
+ "checkConstraints": {},
183
+ "isRLSEnabled": false
184
+ },
185
+ "public.health_check_runs": {
186
+ "name": "health_check_runs",
187
+ "schema": "",
188
+ "columns": {
189
+ "id": {
190
+ "name": "id",
191
+ "type": "uuid",
192
+ "primaryKey": true,
193
+ "notNull": true,
194
+ "default": "gen_random_uuid()"
195
+ },
196
+ "configuration_id": {
197
+ "name": "configuration_id",
198
+ "type": "uuid",
199
+ "primaryKey": false,
200
+ "notNull": true
201
+ },
202
+ "system_id": {
203
+ "name": "system_id",
204
+ "type": "text",
205
+ "primaryKey": false,
206
+ "notNull": true
207
+ },
208
+ "status": {
209
+ "name": "status",
210
+ "type": "health_check_status",
211
+ "typeSchema": "public",
212
+ "primaryKey": false,
213
+ "notNull": true
214
+ },
215
+ "latency_ms": {
216
+ "name": "latency_ms",
217
+ "type": "integer",
218
+ "primaryKey": false,
219
+ "notNull": false
220
+ },
221
+ "result": {
222
+ "name": "result",
223
+ "type": "jsonb",
224
+ "primaryKey": false,
225
+ "notNull": false
226
+ },
227
+ "timestamp": {
228
+ "name": "timestamp",
229
+ "type": "timestamp",
230
+ "primaryKey": false,
231
+ "notNull": true,
232
+ "default": "now()"
233
+ }
234
+ },
235
+ "indexes": {},
236
+ "foreignKeys": {
237
+ "health_check_runs_configuration_id_health_check_configurations_id_fk": {
238
+ "name": "health_check_runs_configuration_id_health_check_configurations_id_fk",
239
+ "tableFrom": "health_check_runs",
240
+ "tableTo": "health_check_configurations",
241
+ "columnsFrom": [
242
+ "configuration_id"
243
+ ],
244
+ "columnsTo": [
245
+ "id"
246
+ ],
247
+ "onDelete": "cascade",
248
+ "onUpdate": "no action"
249
+ }
250
+ },
251
+ "compositePrimaryKeys": {},
252
+ "uniqueConstraints": {},
253
+ "policies": {},
254
+ "checkConstraints": {},
255
+ "isRLSEnabled": false
256
+ },
257
+ "public.system_health_checks": {
258
+ "name": "system_health_checks",
259
+ "schema": "",
260
+ "columns": {
261
+ "system_id": {
262
+ "name": "system_id",
263
+ "type": "text",
264
+ "primaryKey": false,
265
+ "notNull": true
266
+ },
267
+ "configuration_id": {
268
+ "name": "configuration_id",
269
+ "type": "uuid",
270
+ "primaryKey": false,
271
+ "notNull": true
272
+ },
273
+ "enabled": {
274
+ "name": "enabled",
275
+ "type": "boolean",
276
+ "primaryKey": false,
277
+ "notNull": true,
278
+ "default": true
279
+ },
280
+ "state_thresholds": {
281
+ "name": "state_thresholds",
282
+ "type": "jsonb",
283
+ "primaryKey": false,
284
+ "notNull": false
285
+ },
286
+ "retention_config": {
287
+ "name": "retention_config",
288
+ "type": "jsonb",
289
+ "primaryKey": false,
290
+ "notNull": false
291
+ },
292
+ "created_at": {
293
+ "name": "created_at",
294
+ "type": "timestamp",
295
+ "primaryKey": false,
296
+ "notNull": true,
297
+ "default": "now()"
298
+ },
299
+ "updated_at": {
300
+ "name": "updated_at",
301
+ "type": "timestamp",
302
+ "primaryKey": false,
303
+ "notNull": true,
304
+ "default": "now()"
305
+ }
306
+ },
307
+ "indexes": {},
308
+ "foreignKeys": {
309
+ "system_health_checks_configuration_id_health_check_configurations_id_fk": {
310
+ "name": "system_health_checks_configuration_id_health_check_configurations_id_fk",
311
+ "tableFrom": "system_health_checks",
312
+ "tableTo": "health_check_configurations",
313
+ "columnsFrom": [
314
+ "configuration_id"
315
+ ],
316
+ "columnsTo": [
317
+ "id"
318
+ ],
319
+ "onDelete": "cascade",
320
+ "onUpdate": "no action"
321
+ }
322
+ },
323
+ "compositePrimaryKeys": {
324
+ "system_health_checks_system_id_configuration_id_pk": {
325
+ "name": "system_health_checks_system_id_configuration_id_pk",
326
+ "columns": [
327
+ "system_id",
328
+ "configuration_id"
329
+ ]
330
+ }
331
+ },
332
+ "uniqueConstraints": {},
333
+ "policies": {},
334
+ "checkConstraints": {},
335
+ "isRLSEnabled": false
336
+ }
337
+ },
338
+ "enums": {
339
+ "public.bucket_size": {
340
+ "name": "bucket_size",
341
+ "schema": "public",
342
+ "values": [
343
+ "hourly",
344
+ "daily"
345
+ ]
346
+ },
347
+ "public.health_check_status": {
348
+ "name": "health_check_status",
349
+ "schema": "public",
350
+ "values": [
351
+ "healthy",
352
+ "unhealthy",
353
+ "degraded"
354
+ ]
355
+ }
356
+ },
357
+ "schemas": {},
358
+ "sequences": {},
359
+ "roles": {},
360
+ "policies": {},
361
+ "views": {},
362
+ "_meta": {
363
+ "columns": {},
364
+ "schemas": {},
365
+ "tables": {}
366
+ }
367
+ }