levelfour 1.11.0 → 1.13.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.
@@ -1,6 +1,6 @@
1
1
  export interface JvmReaderNodeHealth {
2
2
  node: string;
3
- /** ok; no_reader when none runs on the node; pending when its pod has not started; unreachable when it did not answer */
3
+ /** ok; no_reader when none runs on the node; pending when its pod has not started; unreachable when it did not answer; blocked when the API server refused its pod, as an admission policy refusing SYS_PTRACE or hostPID does; untolerated when the node carries a taint it does not tolerate; excluded when its node selector or affinity leaves the node out */
4
4
  state: JvmReaderNodeHealth.State;
5
5
  /** The JVMs it saw in its last sample of the window */
6
6
  jvms: number;
@@ -8,14 +8,19 @@ export interface JvmReaderNodeHealth {
8
8
  unmapped: number;
9
9
  /** The JVMs whose counters it could not read, by reason */
10
10
  missed: Record<string, number>;
11
+ /** The processes on the node the kernel would not let it see, in its last sample */
12
+ hidden: number;
11
13
  }
12
14
  export declare namespace JvmReaderNodeHealth {
13
- /** ok; no_reader when none runs on the node; pending when its pod has not started; unreachable when it did not answer */
15
+ /** ok; no_reader when none runs on the node; pending when its pod has not started; unreachable when it did not answer; blocked when the API server refused its pod, as an admission policy refusing SYS_PTRACE or hostPID does; untolerated when the node carries a taint it does not tolerate; excluded when its node selector or affinity leaves the node out */
14
16
  const State: {
15
17
  readonly Ok: "ok";
16
18
  readonly NoReader: "no_reader";
17
19
  readonly Pending: "pending";
18
20
  readonly Unreachable: "unreachable";
21
+ readonly Blocked: "blocked";
22
+ readonly Untolerated: "untolerated";
23
+ readonly Excluded: "excluded";
19
24
  };
20
25
  type State = (typeof State)[keyof typeof State];
21
26
  }
@@ -1,6 +1,6 @@
1
1
  export interface JvmReaderNodeHealth {
2
2
  node: string;
3
- /** ok; no_reader when none runs on the node; pending when its pod has not started; unreachable when it did not answer */
3
+ /** ok; no_reader when none runs on the node; pending when its pod has not started; unreachable when it did not answer; blocked when the API server refused its pod, as an admission policy refusing SYS_PTRACE or hostPID does; untolerated when the node carries a taint it does not tolerate; excluded when its node selector or affinity leaves the node out */
4
4
  state: JvmReaderNodeHealth.State;
5
5
  /** The JVMs it saw in its last sample of the window */
6
6
  jvms: number;
@@ -8,14 +8,19 @@ export interface JvmReaderNodeHealth {
8
8
  unmapped: number;
9
9
  /** The JVMs whose counters it could not read, by reason */
10
10
  missed: Record<string, number>;
11
+ /** The processes on the node the kernel would not let it see, in its last sample */
12
+ hidden: number;
11
13
  }
12
14
  export declare namespace JvmReaderNodeHealth {
13
- /** ok; no_reader when none runs on the node; pending when its pod has not started; unreachable when it did not answer */
15
+ /** ok; no_reader when none runs on the node; pending when its pod has not started; unreachable when it did not answer; blocked when the API server refused its pod, as an admission policy refusing SYS_PTRACE or hostPID does; untolerated when the node carries a taint it does not tolerate; excluded when its node selector or affinity leaves the node out */
14
16
  const State: {
15
17
  readonly Ok: "ok";
16
18
  readonly NoReader: "no_reader";
17
19
  readonly Pending: "pending";
18
20
  readonly Unreachable: "unreachable";
21
+ readonly Blocked: "blocked";
22
+ readonly Untolerated: "untolerated";
23
+ readonly Excluded: "excluded";
19
24
  };
20
25
  type State = (typeof State)[keyof typeof State];
21
26
  }
@@ -27,7 +27,10 @@ var JvmReaderNodeHealth;
27
27
  Ok: "ok",
28
28
  NoReader: "no_reader",
29
29
  Pending: "pending",
30
- Unreachable: "unreachable"
30
+ Unreachable: "unreachable",
31
+ Blocked: "blocked",
32
+ Untolerated: "untolerated",
33
+ Excluded: "excluded"
31
34
  };
32
35
  })(JvmReaderNodeHealth || (JvmReaderNodeHealth = {}));
33
36
  // Annotate the CommonJS export names for ESM import in node:
@@ -4,7 +4,10 @@ var JvmReaderNodeHealth;
4
4
  Ok: "ok",
5
5
  NoReader: "no_reader",
6
6
  Pending: "pending",
7
- Unreachable: "unreachable"
7
+ Unreachable: "unreachable",
8
+ Blocked: "blocked",
9
+ Untolerated: "untolerated",
10
+ Excluded: "excluded"
8
11
  };
9
12
  })(JvmReaderNodeHealth || (JvmReaderNodeHealth = {}));
10
13
  export {
@@ -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";
@@ -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"),
@@ -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";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.11.0";
1
+ export declare const SDK_VERSION = "1.13.0";
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.11.0";
1
+ export declare const SDK_VERSION = "1.13.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.11.0";
24
+ const SDK_VERSION = "1.13.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
@@ -1,4 +1,4 @@
1
- const SDK_VERSION = "1.11.0";
1
+ const SDK_VERSION = "1.13.0";
2
2
  export {
3
3
  SDK_VERSION
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "levelfour",
3
- "version": "1.11.0",
3
+ "version": "1.13.0",
4
4
  "description": "The official TypeScript SDK for the LevelFour cloud cost optimization API",
5
5
  "author": "LevelFour <support@levelfour.ai>",
6
6
  "license": "Apache-2.0",