@checkstack/healthcheck-backend 1.0.3 → 1.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,72 @@
1
1
  # @checkstack/healthcheck-backend
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7c97b43: Backfill missing package bumps for the `/rest` mount PR — these packages were
8
+ modified in that change but were not declared in its changeset:
9
+
10
+ - `@checkstack/api-docs-frontend`: schema renderer rewrite (`additionalProperties`,
11
+ `$ref` resolution, `oneOf`/`anyOf`/`allOf`, nullable unions, `format`
12
+ qualifiers) and the new path/query/header/cookie parameters table for GET
13
+ endpoints.
14
+ - `@checkstack/frontend`: Vite dev-server proxy for `/rest/*` so external REST
15
+ clients pointing at the Vite port resolve to the backend.
16
+ - `@checkstack/healthcheck-backend`: router handler now unpacks `input.systemId`
17
+ after `getSystemConfigurations` was refactored from `.input(z.string())` to
18
+ `.input(z.object({ systemId: z.string() }))`.
19
+
20
+ No behavior change beyond what the original PR already shipped.
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [9016526]
25
+ - @checkstack/common@0.10.0
26
+ - @checkstack/catalog-common@2.2.0
27
+ - @checkstack/healthcheck-common@1.1.0
28
+ - @checkstack/incident-common@1.2.0
29
+ - @checkstack/maintenance-common@1.2.0
30
+ - @checkstack/notification-common@1.1.0
31
+ - @checkstack/gitops-common@0.4.0
32
+ - @checkstack/satellite-backend@0.3.1
33
+ - @checkstack/backend-api@0.15.2
34
+ - @checkstack/catalog-backend@1.1.1
35
+ - @checkstack/command-backend@0.1.26
36
+ - @checkstack/gitops-backend@0.3.1
37
+ - @checkstack/integration-backend@0.1.26
38
+ - @checkstack/signal-common@0.2.3
39
+ - @checkstack/cache-api@0.3.1
40
+ - @checkstack/queue-api@0.3.1
41
+ - @checkstack/cache-utils@0.2.6
42
+
43
+ ## 1.0.4
44
+
45
+ ### Patch Changes
46
+
47
+ - Updated dependencies [42abfff]
48
+ - Updated dependencies [f6f9a5c]
49
+ - Updated dependencies [f6f9a5c]
50
+ - Updated dependencies [1ef2e79]
51
+ - Updated dependencies [aa89bc5]
52
+ - @checkstack/common@0.9.0
53
+ - @checkstack/satellite-backend@0.3.0
54
+ - @checkstack/gitops-common@0.3.0
55
+ - @checkstack/gitops-backend@0.3.0
56
+ - @checkstack/incident-common@1.1.0
57
+ - @checkstack/maintenance-common@1.1.0
58
+ - @checkstack/catalog-common@2.1.0
59
+ - @checkstack/catalog-backend@1.1.0
60
+ - @checkstack/queue-api@0.3.0
61
+ - @checkstack/cache-api@0.3.0
62
+ - @checkstack/backend-api@0.15.1
63
+ - @checkstack/command-backend@0.1.25
64
+ - @checkstack/healthcheck-common@1.0.2
65
+ - @checkstack/integration-backend@0.1.25
66
+ - @checkstack/notification-common@1.0.2
67
+ - @checkstack/signal-common@0.2.2
68
+ - @checkstack/cache-utils@0.2.5
69
+
3
70
  ## 1.0.3
4
71
 
5
72
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/healthcheck-backend",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "license": "Elastic-2.0",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -14,23 +14,23 @@
14
14
  "lint:code": "eslint . --max-warnings 0"
15
15
  },
16
16
  "dependencies": {
17
- "@checkstack/backend-api": "0.14.1",
18
- "@checkstack/cache-api": "0.2.3",
19
- "@checkstack/cache-utils": "0.2.3",
20
- "@checkstack/catalog-backend": "1.0.1",
21
- "@checkstack/catalog-common": "2.0.0",
22
- "@checkstack/command-backend": "0.1.23",
23
- "@checkstack/common": "0.7.0",
24
- "@checkstack/gitops-backend": "0.2.7",
25
- "@checkstack/gitops-common": "0.2.1",
26
- "@checkstack/healthcheck-common": "1.0.0",
27
- "@checkstack/incident-common": "1.0.0",
28
- "@checkstack/integration-backend": "0.1.23",
29
- "@checkstack/maintenance-common": "1.0.0",
30
- "@checkstack/notification-common": "1.0.0",
31
- "@checkstack/queue-api": "0.2.17",
32
- "@checkstack/satellite-backend": "0.2.20",
33
- "@checkstack/signal-common": "0.2.0",
17
+ "@checkstack/backend-api": "0.15.1",
18
+ "@checkstack/cache-api": "0.3.0",
19
+ "@checkstack/cache-utils": "0.2.5",
20
+ "@checkstack/catalog-backend": "1.1.0",
21
+ "@checkstack/catalog-common": "2.1.0",
22
+ "@checkstack/command-backend": "0.1.25",
23
+ "@checkstack/common": "0.9.0",
24
+ "@checkstack/gitops-backend": "0.3.0",
25
+ "@checkstack/gitops-common": "0.3.0",
26
+ "@checkstack/healthcheck-common": "1.0.2",
27
+ "@checkstack/incident-common": "1.1.0",
28
+ "@checkstack/integration-backend": "0.1.25",
29
+ "@checkstack/maintenance-common": "1.1.0",
30
+ "@checkstack/notification-common": "1.0.2",
31
+ "@checkstack/queue-api": "0.3.0",
32
+ "@checkstack/satellite-backend": "0.3.0",
33
+ "@checkstack/signal-common": "0.2.2",
34
34
  "@hono/zod-validator": "^0.7.6",
35
35
  "drizzle-orm": "^0.45.0",
36
36
  "hono": "^4.12.14",
@@ -39,10 +39,10 @@
39
39
  "@orpc/server": "^1.13.2"
40
40
  },
41
41
  "devDependencies": {
42
- "@checkstack/drizzle-helper": "0.0.4",
43
- "@checkstack/scripts": "0.1.2",
44
- "@checkstack/test-utils-backend": "0.1.23",
45
- "@checkstack/tsconfig": "0.0.6",
42
+ "@checkstack/drizzle-helper": "0.0.5",
43
+ "@checkstack/scripts": "0.3.1",
44
+ "@checkstack/test-utils-backend": "0.1.25",
45
+ "@checkstack/tsconfig": "0.0.7",
46
46
  "@types/bun": "^1.0.0",
47
47
  "@types/tdigest": "^0.1.5",
48
48
  "date-fns": "^4.1.0",
package/src/router.ts CHANGED
@@ -155,7 +155,7 @@ export const createHealthCheckRouter = (opts: {
155
155
 
156
156
  getSystemConfigurations: os.getSystemConfigurations.handler(
157
157
  async ({ input }) => {
158
- return service.getSystemConfigurations(input);
158
+ return service.getSystemConfigurations(input.systemId);
159
159
  },
160
160
  ),
161
161
 
@@ -68,6 +68,14 @@ function addHealthResultMeta(
68
68
  jsonField["x-anomaly-sensitivity"] = healthMeta["x-anomaly-sensitivity"];
69
69
  if (healthMeta["x-anomaly-confirmation-window"] !== undefined)
70
70
  jsonField["x-anomaly-confirmation-window"] = healthMeta["x-anomaly-confirmation-window"];
71
+ if (healthMeta["x-anomaly-drift-enabled"] !== undefined)
72
+ jsonField["x-anomaly-drift-enabled"] = healthMeta["x-anomaly-drift-enabled"];
73
+ if (healthMeta["x-anomaly-drift-threshold"] !== undefined)
74
+ jsonField["x-anomaly-drift-threshold"] = healthMeta["x-anomaly-drift-threshold"];
75
+ if (healthMeta["x-anomaly-min-absolute-delta"] !== undefined)
76
+ jsonField["x-anomaly-min-absolute-delta"] = healthMeta["x-anomaly-min-absolute-delta"];
77
+ if (healthMeta["x-anomaly-min-relative-delta"] !== undefined)
78
+ jsonField["x-anomaly-min-relative-delta"] = healthMeta["x-anomaly-min-relative-delta"];
71
79
  }
72
80
 
73
81
  // Recurse into nested objects and arrays