@serve.zone/interfaces 7.22.0 → 7.22.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-06-12 - 7.22.1
4
+
5
+ ### Fixes
6
+
7
+ - document the unit of deployment CPU usage (deployment)
8
+ - resourceUsage.cpuUsagePercent is percent of the whole node's CPU capacity (0-100), not the per-core docker stats convention; pins the scale that node-level metrics already use so producers and views stay consistent.
9
+
3
10
  ## 2026-06-11 - 7.22.0
4
11
 
5
12
  ### Features
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/interfaces',
6
- version: '7.22.0',
6
+ version: '7.22.1',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHVGQUF1RjtDQUNyRyxDQUFBIn0=
@@ -58,6 +58,12 @@ export interface IDeployment {
58
58
  * Resource usage for this deployment
59
59
  */
60
60
  resourceUsage?: {
61
+ /**
62
+ * Percent of the whole node's CPU capacity (0-100), NOT per-core:
63
+ * a deployment saturating one core of an 8-core node reports 12.5.
64
+ * Matches the scale of node-level metrics (IClusterNodeMetrics,
65
+ * INodeMetricsSample), not the docker stats CLI convention.
66
+ */
61
67
  cpuUsagePercent: number;
62
68
  memoryUsedMB: number;
63
69
  lastUpdated: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serve.zone/interfaces",
3
- "version": "7.22.0",
3
+ "version": "7.22.1",
4
4
  "private": false,
5
5
  "description": "Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.",
6
6
  "exports": {
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/interfaces',
6
- version: '7.22.0',
6
+ version: '7.22.1',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.'
8
8
  }
@@ -77,6 +77,12 @@ export interface IDeployment {
77
77
  * Resource usage for this deployment
78
78
  */
79
79
  resourceUsage?: {
80
+ /**
81
+ * Percent of the whole node's CPU capacity (0-100), NOT per-core:
82
+ * a deployment saturating one core of an 8-core node reports 12.5.
83
+ * Matches the scale of node-level metrics (IClusterNodeMetrics,
84
+ * INodeMetricsSample), not the docker stats CLI convention.
85
+ */
80
86
  cpuUsagePercent: number;
81
87
  memoryUsedMB: number;
82
88
  lastUpdated: number;