@checkstack/healthcheck-common 0.5.0 → 0.6.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 +6 -0
- package/package.json +1 -1
- package/src/index.ts +2 -1
- package/src/rpc-contract.ts +16 -0
- package/src/schemas.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @checkstack/healthcheck-common
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 11d2679: Add ability to pause health check configurations globally. When paused, health checks continue to be scheduled but execution is skipped for all systems using that configuration. Users with manage access can pause/resume from the Health Checks config page.
|
|
8
|
+
|
|
3
9
|
## 0.5.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -28,6 +28,7 @@ export interface HealthCheckConfiguration {
|
|
|
28
28
|
config: Record<string, unknown>;
|
|
29
29
|
intervalSeconds: number;
|
|
30
30
|
collectors?: CollectorConfigEntry[];
|
|
31
|
+
paused: boolean;
|
|
31
32
|
createdAt: Date;
|
|
32
33
|
updatedAt: Date;
|
|
33
34
|
}
|
|
@@ -58,5 +59,5 @@ export const HEALTH_CHECK_RUN_COMPLETED = createSignal(
|
|
|
58
59
|
configurationName: z.string(),
|
|
59
60
|
status: z.enum(["healthy", "degraded", "unhealthy"]),
|
|
60
61
|
latencyMs: z.number().optional(),
|
|
61
|
-
})
|
|
62
|
+
}),
|
|
62
63
|
);
|
package/src/rpc-contract.ts
CHANGED
|
@@ -99,6 +99,22 @@ export const healthCheckContract = {
|
|
|
99
99
|
.input(z.string())
|
|
100
100
|
.output(z.void()),
|
|
101
101
|
|
|
102
|
+
pauseConfiguration: proc({
|
|
103
|
+
operationType: "mutation",
|
|
104
|
+
userType: "authenticated",
|
|
105
|
+
access: [healthCheckAccess.configuration.manage],
|
|
106
|
+
})
|
|
107
|
+
.input(z.string())
|
|
108
|
+
.output(z.void()),
|
|
109
|
+
|
|
110
|
+
resumeConfiguration: proc({
|
|
111
|
+
operationType: "mutation",
|
|
112
|
+
userType: "authenticated",
|
|
113
|
+
access: [healthCheckAccess.configuration.manage],
|
|
114
|
+
})
|
|
115
|
+
.input(z.string())
|
|
116
|
+
.output(z.void()),
|
|
117
|
+
|
|
102
118
|
// ==========================================================================
|
|
103
119
|
// SYSTEM ASSOCIATION (userType: "authenticated")
|
|
104
120
|
// ==========================================================================
|
package/src/schemas.ts
CHANGED
|
@@ -81,6 +81,8 @@ export const HealthCheckConfigurationSchema = z.object({
|
|
|
81
81
|
intervalSeconds: z.number(),
|
|
82
82
|
/** Optional collector configurations */
|
|
83
83
|
collectors: z.array(CollectorConfigEntrySchema).optional(),
|
|
84
|
+
/** Whether this configuration is paused (execution skipped for all systems) */
|
|
85
|
+
paused: z.boolean(),
|
|
84
86
|
createdAt: z.date(),
|
|
85
87
|
updatedAt: z.date(),
|
|
86
88
|
});
|