@checkstack/healthcheck-redis-backend 0.2.8 → 0.2.10

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,34 @@
1
1
  # @checkstack/healthcheck-redis-backend
2
2
 
3
+ ## 0.2.10
4
+
5
+ ### Patch Changes
6
+
7
+ - 8d1ef12: ## Downstream consumer bumps for the anomaly detection + cache system rollout
8
+
9
+ Packages on this branch were updated as part of the anomaly detection feature (schema annotations on result fields, plugin metadata for the modular cache system) but were not listed in the upstream changesets.
10
+
11
+ - **`@checkstack/healthcheck-common`** (minor) — new RPC contract additions and schema changes supporting per-field anomaly metadata.
12
+ - **`@checkstack/cache-memory-common`** (minor) — new package providing access rules + plugin metadata for the in-memory cache backend.
13
+ - **healthcheck plugins** (patch) — adopt the new `x-anomaly-*` schema annotations on their result fields so anomaly detection works automatically against their checks. No public API changes.
14
+ - **integration / notification / auth / queue / collector plugins** (patch) — minor internal updates as consumers of upstream API changes (cache plugin registry, schema additions). No public API changes.
15
+
16
+ - Updated dependencies [8d1ef12]
17
+ - Updated dependencies [8d1ef12]
18
+ - Updated dependencies [8d1ef12]
19
+ - @checkstack/healthcheck-common@0.12.0
20
+ - @checkstack/common@0.7.0
21
+ - @checkstack/backend-api@0.13.0
22
+
23
+ ## 0.2.9
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [26d8bae]
28
+ - Updated dependencies [26d8bae]
29
+ - @checkstack/healthcheck-common@0.11.0
30
+ - @checkstack/backend-api@0.12.0
31
+
3
32
  ## 0.2.8
4
33
 
5
34
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/healthcheck-redis-backend",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "checkstack": {
@@ -12,9 +12,9 @@
12
12
  "lint:code": "eslint . --max-warnings 0"
13
13
  },
14
14
  "dependencies": {
15
- "@checkstack/backend-api": "0.11.0",
16
- "@checkstack/common": "0.6.4",
17
- "@checkstack/healthcheck-common": "0.10.0",
15
+ "@checkstack/backend-api": "0.12.0",
16
+ "@checkstack/common": "0.6.5",
17
+ "@checkstack/healthcheck-common": "0.11.0",
18
18
  "ioredis": "^5.3.0"
19
19
  },
20
20
  "devDependencies": {
@@ -7,13 +7,13 @@ describe("CommandCollector", () => {
7
7
  response: {
8
8
  value?: string;
9
9
  error?: string;
10
- } = {}
10
+ } = {},
11
11
  ): RedisTransportClient => ({
12
12
  exec: mock(() =>
13
13
  Promise.resolve({
14
14
  value: response.value ?? "PONG",
15
15
  error: response.error,
16
- })
16
+ }),
17
17
  ),
18
18
  });
19
19
 
@@ -45,15 +45,22 @@ const commandResultSchema = healthResultSchema({
45
45
  response: healthResultString({
46
46
  "x-chart-type": "text",
47
47
  "x-chart-label": "Response",
48
+ "x-anomaly-enabled": false,
48
49
  }).optional(),
49
50
  responseTimeMs: healthResultNumber({
50
51
  "x-chart-type": "line",
51
52
  "x-chart-label": "Response Time",
52
53
  "x-chart-unit": "ms",
54
+ "x-anomaly-enabled": true,
55
+ "x-anomaly-direction": "lower-is-better",
56
+ "x-anomaly-sensitivity": 2,
57
+ "x-anomaly-confirmation-window": 3,
53
58
  }),
54
59
  success: healthResultBoolean({
55
60
  "x-chart-type": "boolean",
56
61
  "x-chart-label": "Success",
62
+ "x-anomaly-enabled": true,
63
+ "x-anomaly-direction": "dominance",
57
64
  }),
58
65
  });
59
66
 
@@ -65,11 +72,15 @@ const commandAggregatedFields = {
65
72
  "x-chart-type": "line",
66
73
  "x-chart-label": "Avg Response Time",
67
74
  "x-chart-unit": "ms",
75
+ "x-anomaly-enabled": true,
76
+ "x-anomaly-direction": "lower-is-better",
68
77
  }),
69
78
  successRate: aggregatedRate({
70
79
  "x-chart-type": "gauge",
71
80
  "x-chart-label": "Success Rate",
72
81
  "x-chart-unit": "%",
82
+ "x-anomaly-enabled": true,
83
+ "x-anomaly-direction": "higher-is-better",
73
84
  }),
74
85
  };
75
86
 
package/src/strategy.ts CHANGED
@@ -70,15 +70,22 @@ const redisResultSchema = healthResultSchema({
70
70
  connected: healthResultBoolean({
71
71
  "x-chart-type": "boolean",
72
72
  "x-chart-label": "Connected",
73
+ "x-anomaly-enabled": true,
74
+ "x-anomaly-direction": "dominance",
73
75
  }),
74
76
  connectionTimeMs: healthResultNumber({
75
77
  "x-chart-type": "line",
76
78
  "x-chart-label": "Connection Time",
77
79
  "x-chart-unit": "ms",
80
+ "x-anomaly-enabled": true,
81
+ "x-anomaly-direction": "lower-is-better",
82
+ "x-anomaly-sensitivity": 2,
83
+ "x-anomaly-confirmation-window": 3,
78
84
  }),
79
85
  error: healthResultString({
80
86
  "x-chart-type": "status",
81
87
  "x-chart-label": "Error",
88
+ "x-anomaly-enabled": false,
82
89
  }).optional(),
83
90
  });
84
91
 
@@ -90,20 +97,28 @@ const redisAggregatedFields = {
90
97
  "x-chart-type": "line",
91
98
  "x-chart-label": "Avg Connection Time",
92
99
  "x-chart-unit": "ms",
100
+ "x-anomaly-enabled": true,
101
+ "x-anomaly-direction": "lower-is-better",
93
102
  }),
94
103
  maxConnectionTime: aggregatedMinMax({
95
104
  "x-chart-type": "line",
96
105
  "x-chart-label": "Max Connection Time",
97
106
  "x-chart-unit": "ms",
107
+ "x-anomaly-enabled": true,
108
+ "x-anomaly-direction": "lower-is-better",
98
109
  }),
99
110
  successRate: aggregatedRate({
100
111
  "x-chart-type": "gauge",
101
112
  "x-chart-label": "Success Rate",
102
113
  "x-chart-unit": "%",
114
+ "x-anomaly-enabled": true,
115
+ "x-anomaly-direction": "higher-is-better",
103
116
  }),
104
117
  errorCount: aggregatedCounter({
105
118
  "x-chart-type": "counter",
106
119
  "x-chart-label": "Errors",
120
+ "x-anomaly-enabled": true,
121
+ "x-anomaly-direction": "lower-is-better",
107
122
  }),
108
123
  };
109
124