@checkstack/healthcheck-common 0.7.0 → 0.8.1
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 +24 -0
- package/package.json +5 -5
- package/src/rpc-contract.ts +20 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @checkstack/healthcheck-common
|
|
2
2
|
|
|
3
|
+
## 0.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0b9fc58: Fix workspace:\* protocol resolution in published packages
|
|
8
|
+
|
|
9
|
+
Published packages now correctly have resolved dependency versions instead of `workspace:*` references. This is achieved by using `bun publish` which properly resolves workspace protocol references.
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [0b9fc58]
|
|
12
|
+
- @checkstack/common@0.6.1
|
|
13
|
+
- @checkstack/signal-common@0.1.5
|
|
14
|
+
|
|
15
|
+
## 0.8.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- d6f7449: Add availability statistics display to HealthCheckSystemOverview
|
|
20
|
+
|
|
21
|
+
- New `getAvailabilityStats` RPC endpoint that calculates availability percentages for 31-day and 365-day periods
|
|
22
|
+
- Availability is calculated as `(healthyRuns / totalRuns) * 100`
|
|
23
|
+
- Data is sourced from both daily aggregates and recent raw runs to include the most up-to-date information
|
|
24
|
+
- Frontend displays availability stats with color-coded badges (green ≥99.9%, yellow ≥99%, red <99%)
|
|
25
|
+
- Shows total run counts for each period
|
|
26
|
+
|
|
3
27
|
## 0.7.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@checkstack/healthcheck-common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@checkstack/common": "
|
|
12
|
-
"@checkstack/signal-common": "
|
|
11
|
+
"@checkstack/common": "0.6.0",
|
|
12
|
+
"@checkstack/signal-common": "0.1.4",
|
|
13
13
|
"zod": "^4.2.1"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"typescript": "^5.7.2",
|
|
17
|
-
"@checkstack/tsconfig": "
|
|
18
|
-
"@checkstack/scripts": "
|
|
17
|
+
"@checkstack/tsconfig": "0.0.2",
|
|
18
|
+
"@checkstack/scripts": "0.1.0"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"typecheck": "tsc --noEmit",
|
package/src/rpc-contract.ts
CHANGED
|
@@ -363,8 +363,27 @@ export const healthCheckContract = {
|
|
|
363
363
|
),
|
|
364
364
|
}),
|
|
365
365
|
),
|
|
366
|
-
};
|
|
367
366
|
|
|
367
|
+
getAvailabilityStats: proc({
|
|
368
|
+
operationType: "query",
|
|
369
|
+
userType: "public",
|
|
370
|
+
access: [healthCheckAccess.status],
|
|
371
|
+
})
|
|
372
|
+
.input(
|
|
373
|
+
z.object({
|
|
374
|
+
systemId: z.string(),
|
|
375
|
+
configurationId: z.string(),
|
|
376
|
+
}),
|
|
377
|
+
)
|
|
378
|
+
.output(
|
|
379
|
+
z.object({
|
|
380
|
+
availability31Days: z.number().nullable(),
|
|
381
|
+
availability365Days: z.number().nullable(),
|
|
382
|
+
totalRuns31Days: z.number(),
|
|
383
|
+
totalRuns365Days: z.number(),
|
|
384
|
+
}),
|
|
385
|
+
),
|
|
386
|
+
};
|
|
368
387
|
// Export contract type
|
|
369
388
|
export type HealthCheckContract = typeof healthCheckContract;
|
|
370
389
|
|