levelfour 1.11.0 → 1.12.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/dist/api/types/NodeItem.d.mts +2 -0
- package/dist/api/types/NodeItem.d.ts +2 -0
- package/dist/api/types/WorkloadDetail.d.mts +4 -0
- package/dist/api/types/WorkloadDetail.d.ts +4 -0
- package/dist/api/types/WorkloadPodEvent.d.mts +23 -0
- package/dist/api/types/WorkloadPodEvent.d.ts +23 -0
- package/dist/api/types/WorkloadPodEvent.js +35 -0
- package/dist/api/types/WorkloadPodEvent.mjs +11 -0
- package/dist/api/types/WorkloadTermination.d.mts +10 -0
- package/dist/api/types/WorkloadTermination.d.ts +10 -0
- package/dist/api/types/WorkloadTermination.js +17 -0
- package/dist/api/types/WorkloadTermination.mjs +1 -0
- package/dist/api/types/index.d.mts +2 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +4 -0
- package/dist/api/types/index.mjs +2 -0
- package/dist/version.d.mts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +1 -1
|
@@ -40,6 +40,8 @@ export interface NodeItem {
|
|
|
40
40
|
overhead_memory_bytes?: (number | null) | undefined;
|
|
41
41
|
hourly_cost?: (number | null) | undefined;
|
|
42
42
|
period_cost?: (number | null) | undefined;
|
|
43
|
+
/** The hours the agent watched it in the window on days the bill has not priced yet, which period_cost leaves out: 0 when the bill priced every one, null when the agent watched it no hour */
|
|
44
|
+
unpriced_hours?: (number | null) | undefined;
|
|
43
45
|
cpu_cost?: (number | null) | undefined;
|
|
44
46
|
memory_cost?: (number | null) | undefined;
|
|
45
47
|
gpu_cost?: (number | null) | undefined;
|
|
@@ -40,6 +40,8 @@ export interface NodeItem {
|
|
|
40
40
|
overhead_memory_bytes?: (number | null) | undefined;
|
|
41
41
|
hourly_cost?: (number | null) | undefined;
|
|
42
42
|
period_cost?: (number | null) | undefined;
|
|
43
|
+
/** The hours the agent watched it in the window on days the bill has not priced yet, which period_cost leaves out: 0 when the bill priced every one, null when the agent watched it no hour */
|
|
44
|
+
unpriced_hours?: (number | null) | undefined;
|
|
43
45
|
cpu_cost?: (number | null) | undefined;
|
|
44
46
|
memory_cost?: (number | null) | undefined;
|
|
45
47
|
gpu_cost?: (number | null) | undefined;
|
|
@@ -35,6 +35,10 @@ export interface WorkloadDetail {
|
|
|
35
35
|
/** Its share of each node's traffic out */
|
|
36
36
|
network_by_node: LevelFour.SentFromNode[];
|
|
37
37
|
events: LevelFour.WorkloadEvent[];
|
|
38
|
+
/** The Kubernetes events on the workload's pods seen in the window, newest last_at first, at most 500. Null when the cluster's agent never sent pod events, an empty list when it does and none fell in the window */
|
|
39
|
+
pod_events: LevelFour.WorkloadPodEvent[] | null;
|
|
40
|
+
/** Each container's latest termination the agent reported in the window, or that finished in it, per pod when the agent names it, newest finished_at first, at most 500. It can have finished before the window began: the agent reports the latest across the pods that ran in its window. Null when the cluster's agent never sent pod events, an empty list when it does and reported none */
|
|
41
|
+
last_terminations: LevelFour.WorkloadTermination[] | null;
|
|
38
42
|
/** Every recommendation published for this workload, newest first; never an unreviewed candidate */
|
|
39
43
|
recommendations: LevelFour.PublishedRecommendation[];
|
|
40
44
|
/** What shows each tool in workload.sized_by sizes it, per container and request */
|
|
@@ -35,6 +35,10 @@ export interface WorkloadDetail {
|
|
|
35
35
|
/** Its share of each node's traffic out */
|
|
36
36
|
network_by_node: LevelFour.SentFromNode[];
|
|
37
37
|
events: LevelFour.WorkloadEvent[];
|
|
38
|
+
/** The Kubernetes events on the workload's pods seen in the window, newest last_at first, at most 500. Null when the cluster's agent never sent pod events, an empty list when it does and none fell in the window */
|
|
39
|
+
pod_events: LevelFour.WorkloadPodEvent[] | null;
|
|
40
|
+
/** Each container's latest termination the agent reported in the window, or that finished in it, per pod when the agent names it, newest finished_at first, at most 500. It can have finished before the window began: the agent reports the latest across the pods that ran in its window. Null when the cluster's agent never sent pod events, an empty list when it does and reported none */
|
|
41
|
+
last_terminations: LevelFour.WorkloadTermination[] | null;
|
|
38
42
|
/** Every recommendation published for this workload, newest first; never an unreviewed candidate */
|
|
39
43
|
recommendations: LevelFour.PublishedRecommendation[];
|
|
40
44
|
/** What shows each tool in workload.sized_by sizes it, per container and request */
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface WorkloadPodEvent {
|
|
2
|
+
/** When Kubernetes first saw the event */
|
|
3
|
+
first_at: string;
|
|
4
|
+
/** When it last saw it */
|
|
5
|
+
last_at: string;
|
|
6
|
+
type: WorkloadPodEvent.Type;
|
|
7
|
+
/** BackOff, Unhealthy, Killing, FailedScheduling and the like */
|
|
8
|
+
reason: string;
|
|
9
|
+
pod: string;
|
|
10
|
+
/** Null for an event on the whole pod */
|
|
11
|
+
container?: (string | null) | undefined;
|
|
12
|
+
/** As Kubernetes wrote it, at most 512 characters */
|
|
13
|
+
message: string;
|
|
14
|
+
/** How many times Kubernetes counted it between first_at and last_at */
|
|
15
|
+
count: number;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace WorkloadPodEvent {
|
|
18
|
+
const Type: {
|
|
19
|
+
readonly Warning: "Warning";
|
|
20
|
+
readonly Normal: "Normal";
|
|
21
|
+
};
|
|
22
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface WorkloadPodEvent {
|
|
2
|
+
/** When Kubernetes first saw the event */
|
|
3
|
+
first_at: string;
|
|
4
|
+
/** When it last saw it */
|
|
5
|
+
last_at: string;
|
|
6
|
+
type: WorkloadPodEvent.Type;
|
|
7
|
+
/** BackOff, Unhealthy, Killing, FailedScheduling and the like */
|
|
8
|
+
reason: string;
|
|
9
|
+
pod: string;
|
|
10
|
+
/** Null for an event on the whole pod */
|
|
11
|
+
container?: (string | null) | undefined;
|
|
12
|
+
/** As Kubernetes wrote it, at most 512 characters */
|
|
13
|
+
message: string;
|
|
14
|
+
/** How many times Kubernetes counted it between first_at and last_at */
|
|
15
|
+
count: number;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace WorkloadPodEvent {
|
|
18
|
+
const Type: {
|
|
19
|
+
readonly Warning: "Warning";
|
|
20
|
+
readonly Normal: "Normal";
|
|
21
|
+
};
|
|
22
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
23
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var WorkloadPodEvent_exports = {};
|
|
20
|
+
__export(WorkloadPodEvent_exports, {
|
|
21
|
+
WorkloadPodEvent: () => WorkloadPodEvent
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(WorkloadPodEvent_exports);
|
|
24
|
+
var WorkloadPodEvent;
|
|
25
|
+
((WorkloadPodEvent2) => {
|
|
26
|
+
WorkloadPodEvent2.Type = {
|
|
27
|
+
Warning: "Warning",
|
|
28
|
+
Normal: "Normal"
|
|
29
|
+
};
|
|
30
|
+
})(WorkloadPodEvent || (WorkloadPodEvent = {}));
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
WorkloadPodEvent
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=WorkloadPodEvent.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var WorkloadPodEvent;
|
|
2
|
+
((WorkloadPodEvent2) => {
|
|
3
|
+
WorkloadPodEvent2.Type = {
|
|
4
|
+
Warning: "Warning",
|
|
5
|
+
Normal: "Normal"
|
|
6
|
+
};
|
|
7
|
+
})(WorkloadPodEvent || (WorkloadPodEvent = {}));
|
|
8
|
+
export {
|
|
9
|
+
WorkloadPodEvent
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=WorkloadPodEvent.mjs.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface WorkloadTermination {
|
|
2
|
+
container: string;
|
|
3
|
+
/** Null when the agent did not name the pod */
|
|
4
|
+
pod?: (string | null) | undefined;
|
|
5
|
+
/** OOMKilled, Error, Completed and the like; empty when Kubernetes set none */
|
|
6
|
+
reason: string;
|
|
7
|
+
exit_code: number;
|
|
8
|
+
signal?: (number | null) | undefined;
|
|
9
|
+
finished_at: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface WorkloadTermination {
|
|
2
|
+
container: string;
|
|
3
|
+
/** Null when the agent did not name the pod */
|
|
4
|
+
pod?: (string | null) | undefined;
|
|
5
|
+
/** OOMKilled, Error, Completed and the like; empty when Kubernetes set none */
|
|
6
|
+
reason: string;
|
|
7
|
+
exit_code: number;
|
|
8
|
+
signal?: (number | null) | undefined;
|
|
9
|
+
finished_at: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var WorkloadTermination_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(WorkloadTermination_exports);
|
|
17
|
+
//# sourceMappingURL=WorkloadTermination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=WorkloadTermination.mjs.map
|
|
@@ -1335,8 +1335,10 @@ export * from "./WorkloadListItem.mjs";
|
|
|
1335
1335
|
export * from "./WorkloadListResponse.mjs";
|
|
1336
1336
|
export * from "./WorkloadPair.mjs";
|
|
1337
1337
|
export * from "./WorkloadPairEnd.mjs";
|
|
1338
|
+
export * from "./WorkloadPodEvent.mjs";
|
|
1338
1339
|
export * from "./WorkloadRef.mjs";
|
|
1339
1340
|
export * from "./WorkloadSource.mjs";
|
|
1341
|
+
export * from "./WorkloadTermination.mjs";
|
|
1340
1342
|
export * from "./WorkloadVolume.mjs";
|
|
1341
1343
|
export * from "./Workspace.mjs";
|
|
1342
1344
|
export * from "./WorkspaceResponse.mjs";
|
|
@@ -1335,8 +1335,10 @@ export * from "./WorkloadListItem.js";
|
|
|
1335
1335
|
export * from "./WorkloadListResponse.js";
|
|
1336
1336
|
export * from "./WorkloadPair.js";
|
|
1337
1337
|
export * from "./WorkloadPairEnd.js";
|
|
1338
|
+
export * from "./WorkloadPodEvent.js";
|
|
1338
1339
|
export * from "./WorkloadRef.js";
|
|
1339
1340
|
export * from "./WorkloadSource.js";
|
|
1341
|
+
export * from "./WorkloadTermination.js";
|
|
1340
1342
|
export * from "./WorkloadVolume.js";
|
|
1341
1343
|
export * from "./Workspace.js";
|
|
1342
1344
|
export * from "./WorkspaceResponse.js";
|
package/dist/api/types/index.js
CHANGED
|
@@ -1352,8 +1352,10 @@ __reExport(types_exports, require("./WorkloadListItem.js"), module.exports);
|
|
|
1352
1352
|
__reExport(types_exports, require("./WorkloadListResponse.js"), module.exports);
|
|
1353
1353
|
__reExport(types_exports, require("./WorkloadPair.js"), module.exports);
|
|
1354
1354
|
__reExport(types_exports, require("./WorkloadPairEnd.js"), module.exports);
|
|
1355
|
+
__reExport(types_exports, require("./WorkloadPodEvent.js"), module.exports);
|
|
1355
1356
|
__reExport(types_exports, require("./WorkloadRef.js"), module.exports);
|
|
1356
1357
|
__reExport(types_exports, require("./WorkloadSource.js"), module.exports);
|
|
1358
|
+
__reExport(types_exports, require("./WorkloadTermination.js"), module.exports);
|
|
1357
1359
|
__reExport(types_exports, require("./WorkloadVolume.js"), module.exports);
|
|
1358
1360
|
__reExport(types_exports, require("./Workspace.js"), module.exports);
|
|
1359
1361
|
__reExport(types_exports, require("./WorkspaceResponse.js"), module.exports);
|
|
@@ -2697,8 +2699,10 @@ __reExport(types_exports, require("./ZonePair.js"), module.exports);
|
|
|
2697
2699
|
...require("./WorkloadListResponse.js"),
|
|
2698
2700
|
...require("./WorkloadPair.js"),
|
|
2699
2701
|
...require("./WorkloadPairEnd.js"),
|
|
2702
|
+
...require("./WorkloadPodEvent.js"),
|
|
2700
2703
|
...require("./WorkloadRef.js"),
|
|
2701
2704
|
...require("./WorkloadSource.js"),
|
|
2705
|
+
...require("./WorkloadTermination.js"),
|
|
2702
2706
|
...require("./WorkloadVolume.js"),
|
|
2703
2707
|
...require("./Workspace.js"),
|
|
2704
2708
|
...require("./WorkspaceResponse.js"),
|
package/dist/api/types/index.mjs
CHANGED
|
@@ -1335,8 +1335,10 @@ export * from "./WorkloadListItem.mjs";
|
|
|
1335
1335
|
export * from "./WorkloadListResponse.mjs";
|
|
1336
1336
|
export * from "./WorkloadPair.mjs";
|
|
1337
1337
|
export * from "./WorkloadPairEnd.mjs";
|
|
1338
|
+
export * from "./WorkloadPodEvent.mjs";
|
|
1338
1339
|
export * from "./WorkloadRef.mjs";
|
|
1339
1340
|
export * from "./WorkloadSource.mjs";
|
|
1341
|
+
export * from "./WorkloadTermination.mjs";
|
|
1340
1342
|
export * from "./WorkloadVolume.mjs";
|
|
1341
1343
|
export * from "./Workspace.mjs";
|
|
1342
1344
|
export * from "./WorkspaceResponse.mjs";
|
package/dist/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.12.0";
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.12.0";
|
package/dist/version.js
CHANGED
|
@@ -21,7 +21,7 @@ __export(version_exports, {
|
|
|
21
21
|
SDK_VERSION: () => SDK_VERSION
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(version_exports);
|
|
24
|
-
const SDK_VERSION = "1.
|
|
24
|
+
const SDK_VERSION = "1.12.0";
|
|
25
25
|
// Annotate the CommonJS export names for ESM import in node:
|
|
26
26
|
0 && (module.exports = {
|
|
27
27
|
SDK_VERSION
|
package/dist/version.mjs
CHANGED
package/package.json
CHANGED