@serve.zone/interfaces 7.22.1 → 7.24.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 +15 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/requests/node.d.ts +39 -0
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/requests/node.ts +48 -0
package/changelog.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-06-12 - 7.24.0
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- add live health status to node resource usage entries (node)
|
|
8
|
+
- INodeDeploymentResourceUsage gains an optional healthStatus reported by coreflow's in-process health prober.
|
|
9
|
+
|
|
10
|
+
## 2026-06-12 - 7.23.0
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- add live node resource usage request contracts (node)
|
|
15
|
+
- getNodeResourceUsage lets the admin UI fetch live per-deployment CPU/memory for one node via Cloudly; coreflowGetNodeResourceUsage is the relayed coreflow request.
|
|
16
|
+
- INodeDeploymentResourceUsage is keyed by the swarm task id (= IDeployment.id) and reports CPU as percent of the whole node (0-100).
|
|
17
|
+
|
|
3
18
|
## 2026-06-12 - 7.22.1
|
|
4
19
|
|
|
5
20
|
### Fixes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@serve.zone/interfaces',
|
|
6
|
-
version: '7.
|
|
6
|
+
version: '7.24.0',
|
|
7
7
|
description: 'Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHVGQUF1RjtDQUNyRyxDQUFBIn0=
|
|
@@ -144,6 +144,45 @@ export interface IReq_Any_Cloudly_GetNodeTrafficStats extends plugins.typedreque
|
|
|
144
144
|
timestamp: number;
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* Live resource usage of one deployment on a node. deploymentId is the swarm
|
|
149
|
+
* task id, which is also IDeployment.id — the join key for UI rows.
|
|
150
|
+
* cpuUsagePercent is percent of the whole node's CPU capacity (0-100).
|
|
151
|
+
*/
|
|
152
|
+
export interface INodeDeploymentResourceUsage {
|
|
153
|
+
deploymentId: string;
|
|
154
|
+
cpuUsagePercent: number;
|
|
155
|
+
memoryUsedMB: number;
|
|
156
|
+
/** Live verdict from coreflow's in-process health prober, when available. */
|
|
157
|
+
healthStatus?: 'healthy' | 'unhealthy' | 'unknown';
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Admin UI asks Cloudly for a node's live per-deployment resource usage;
|
|
161
|
+
* Cloudly relays to the node's coreflow which samples docker stats.
|
|
162
|
+
* Polled only while a node detail view is open; not persisted.
|
|
163
|
+
*/
|
|
164
|
+
export interface IReq_Any_Cloudly_GetNodeResourceUsage extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_GetNodeResourceUsage> {
|
|
165
|
+
method: 'getNodeResourceUsage';
|
|
166
|
+
request: {
|
|
167
|
+
identity: IIdentity;
|
|
168
|
+
nodeId: string;
|
|
169
|
+
};
|
|
170
|
+
response: {
|
|
171
|
+
deployments: INodeDeploymentResourceUsage[];
|
|
172
|
+
timestamp: number;
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Cloudly asks a node's coreflow for live per-deployment resource usage.
|
|
177
|
+
*/
|
|
178
|
+
export interface IReq_Cloudly_Coreflow_GetNodeResourceUsage extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Cloudly_Coreflow_GetNodeResourceUsage> {
|
|
179
|
+
method: 'coreflowGetNodeResourceUsage';
|
|
180
|
+
request: {};
|
|
181
|
+
response: {
|
|
182
|
+
deployments: INodeDeploymentResourceUsage[];
|
|
183
|
+
timestamp: number;
|
|
184
|
+
};
|
|
185
|
+
}
|
|
147
186
|
/**
|
|
148
187
|
* Cloudly -> admin UIs: live node metrics relay (1s cadence, not persisted).
|
|
149
188
|
*/
|
package/package.json
CHANGED
package/ts/00_commitinfo_data.ts
CHANGED
package/ts/requests/node.ts
CHANGED
|
@@ -184,6 +184,54 @@ export interface IReq_Any_Cloudly_GetNodeTrafficStats extends plugins.typedreque
|
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
+
/**
|
|
188
|
+
* Live resource usage of one deployment on a node. deploymentId is the swarm
|
|
189
|
+
* task id, which is also IDeployment.id — the join key for UI rows.
|
|
190
|
+
* cpuUsagePercent is percent of the whole node's CPU capacity (0-100).
|
|
191
|
+
*/
|
|
192
|
+
export interface INodeDeploymentResourceUsage {
|
|
193
|
+
deploymentId: string;
|
|
194
|
+
cpuUsagePercent: number;
|
|
195
|
+
memoryUsedMB: number;
|
|
196
|
+
/** Live verdict from coreflow's in-process health prober, when available. */
|
|
197
|
+
healthStatus?: 'healthy' | 'unhealthy' | 'unknown';
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Admin UI asks Cloudly for a node's live per-deployment resource usage;
|
|
202
|
+
* Cloudly relays to the node's coreflow which samples docker stats.
|
|
203
|
+
* Polled only while a node detail view is open; not persisted.
|
|
204
|
+
*/
|
|
205
|
+
export interface IReq_Any_Cloudly_GetNodeResourceUsage extends plugins.typedrequestInterfaces.implementsTR<
|
|
206
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
207
|
+
IReq_Any_Cloudly_GetNodeResourceUsage
|
|
208
|
+
> {
|
|
209
|
+
method: 'getNodeResourceUsage';
|
|
210
|
+
request: {
|
|
211
|
+
identity: IIdentity;
|
|
212
|
+
nodeId: string;
|
|
213
|
+
};
|
|
214
|
+
response: {
|
|
215
|
+
deployments: INodeDeploymentResourceUsage[];
|
|
216
|
+
timestamp: number;
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Cloudly asks a node's coreflow for live per-deployment resource usage.
|
|
222
|
+
*/
|
|
223
|
+
export interface IReq_Cloudly_Coreflow_GetNodeResourceUsage extends plugins.typedrequestInterfaces.implementsTR<
|
|
224
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
225
|
+
IReq_Cloudly_Coreflow_GetNodeResourceUsage
|
|
226
|
+
> {
|
|
227
|
+
method: 'coreflowGetNodeResourceUsage';
|
|
228
|
+
request: {};
|
|
229
|
+
response: {
|
|
230
|
+
deployments: INodeDeploymentResourceUsage[];
|
|
231
|
+
timestamp: number;
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
|
|
187
235
|
/**
|
|
188
236
|
* Cloudly -> admin UIs: live node metrics relay (1s cadence, not persisted).
|
|
189
237
|
*/
|