@checkstack/healthcheck-backend 0.16.5 → 0.17.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,24 @@
1
1
  # @checkstack/healthcheck-backend
2
2
 
3
+ ## 0.17.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 298bf42: ### Notification System Optimizations
8
+
9
+ **System context in notifications**: All notification senders (healthcheck, incident, maintenance, dependency) now include the affected system name in the notification title and body. Users can immediately identify which system is affected without clicking through to the detail page.
10
+
11
+ **Upstream notification deduplication**: When an upstream dependency goes down affecting multiple downstream systems, the dependency notification sidecar now sends **one personalized notification per user** instead of one notification per affected system. Each user's notification lists only the systems they are subscribed to, with a link to the upstream root cause system. This prevents notification floods for users subscribed to groups containing many dependent systems.
12
+
13
+ **New catalog endpoint**: Added `getSystemGroupIds` S2S RPC endpoint on the catalog to resolve which catalog groups contain a given system, used by the dependency plugin for efficient subscriber resolution during batched notification dispatch.
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [298bf42]
18
+ - @checkstack/catalog-common@1.5.0
19
+ - @checkstack/catalog-backend@0.6.0
20
+ - @checkstack/satellite-backend@0.2.14
21
+
3
22
  ## 0.16.5
4
23
 
5
24
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/healthcheck-backend",
3
- "version": "0.16.5",
3
+ "version": "0.17.0",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "checkstack": {
@@ -14,18 +14,18 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@checkstack/backend-api": "0.12.0",
17
- "@checkstack/catalog-backend": "0.5.1",
17
+ "@checkstack/catalog-backend": "0.5.4",
18
18
  "@checkstack/catalog-common": "1.4.1",
19
19
  "@checkstack/command-backend": "0.1.19",
20
20
  "@checkstack/common": "0.6.5",
21
- "@checkstack/gitops-backend": "0.2.0",
21
+ "@checkstack/gitops-backend": "0.2.3",
22
22
  "@checkstack/gitops-common": "0.2.0",
23
23
  "@checkstack/healthcheck-common": "0.11.0",
24
24
  "@checkstack/incident-common": "0.4.7",
25
25
  "@checkstack/integration-backend": "0.1.19",
26
26
  "@checkstack/maintenance-common": "0.4.9",
27
27
  "@checkstack/queue-api": "0.2.13",
28
- "@checkstack/satellite-backend": "0.2.9",
28
+ "@checkstack/satellite-backend": "0.2.13",
29
29
  "@checkstack/signal-common": "0.1.9",
30
30
  "@hono/zod-validator": "^0.7.6",
31
31
  "drizzle-orm": "^0.45.0",
@@ -101,6 +101,7 @@ export async function scheduleHealthCheck(props: {
101
101
  */
102
102
  async function notifyStateChange(props: {
103
103
  systemId: string;
104
+ systemName: string;
104
105
  previousStatus: HealthCheckStatus;
105
106
  newStatus: HealthCheckStatus;
106
107
  catalogClient: CatalogClient;
@@ -110,6 +111,7 @@ async function notifyStateChange(props: {
110
111
  }): Promise<void> {
111
112
  const {
112
113
  systemId,
114
+ systemName,
113
115
  previousStatus,
114
116
  newStatus,
115
117
  catalogClient,
@@ -168,18 +170,18 @@ async function notifyStateChange(props: {
168
170
  let importance: "info" | "warning" | "critical";
169
171
 
170
172
  if (isRecovery) {
171
- title = "System health restored";
173
+ title = `System health restored: ${systemName}`;
172
174
  body =
173
- "All health checks are now passing. The system has returned to normal operation.";
175
+ `All health checks for **${systemName}** are now passing. The system has returned to normal operation.`;
174
176
  importance = "info";
175
177
  } else if (isUnhealthy) {
176
- title = "System health critical";
177
- body = "Health checks indicate the system is unhealthy and may be down.";
178
+ title = `System health critical: ${systemName}`;
179
+ body = `Health checks indicate **${systemName}** is unhealthy and may be down.`;
178
180
  importance = "critical";
179
181
  } else if (isDegraded) {
180
- title = "System health degraded";
182
+ title = `System health degraded: ${systemName}`;
181
183
  body =
182
- "Some health checks are failing. The system may be experiencing issues.";
184
+ `Some health checks for **${systemName}** are failing. The system may be experiencing issues.`;
183
185
  importance = "warning";
184
186
  } else {
185
187
  // No notification for healthy → healthy (if somehow missed above)
@@ -535,6 +537,7 @@ async function executeHealthCheckJob(props: {
535
537
  if (newState.status !== previousStatus) {
536
538
  await notifyStateChange({
537
539
  systemId,
540
+ systemName,
538
541
  previousStatus,
539
542
  newStatus: newState.status,
540
543
  catalogClient,
@@ -615,6 +618,7 @@ async function executeHealthCheckJob(props: {
615
618
  if (newState.status !== previousStatus) {
616
619
  await notifyStateChange({
617
620
  systemId,
621
+ systemName,
618
622
  previousStatus,
619
623
  newStatus: newState.status,
620
624
  catalogClient,
@@ -732,6 +736,7 @@ async function executeHealthCheckJob(props: {
732
736
  if (newState.status !== previousStatus) {
733
737
  await notifyStateChange({
734
738
  systemId,
739
+ systemName,
735
740
  previousStatus,
736
741
  newStatus: newState.status,
737
742
  catalogClient,