levelfour 1.14.0 → 1.15.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.
Files changed (67) hide show
  1. package/dist/api/resources/kubernetes/client/Client.d.mts +19 -0
  2. package/dist/api/resources/kubernetes/client/Client.d.ts +19 -0
  3. package/dist/api/resources/kubernetes/client/Client.js +96 -0
  4. package/dist/api/resources/kubernetes/client/Client.mjs +96 -0
  5. package/dist/api/types/AutomationEvent.d.mts +3 -3
  6. package/dist/api/types/AutomationEvent.d.ts +3 -3
  7. package/dist/api/types/InvoiceDetail.d.mts +2 -0
  8. package/dist/api/types/InvoiceDetail.d.ts +2 -0
  9. package/dist/api/types/InvoiceLinesPage.d.mts +7 -0
  10. package/dist/api/types/InvoiceLinesPage.d.ts +7 -0
  11. package/dist/api/types/InvoiceLinesPage.js +17 -0
  12. package/dist/api/types/InvoiceLinesPage.mjs +1 -0
  13. package/dist/api/types/InvoiceLinesResponse.d.mts +6 -0
  14. package/dist/api/types/InvoiceLinesResponse.d.ts +6 -0
  15. package/dist/api/types/InvoiceLinesResponse.js +17 -0
  16. package/dist/api/types/InvoiceLinesResponse.mjs +1 -0
  17. package/dist/api/types/KubernetesUsage.d.mts +9 -0
  18. package/dist/api/types/KubernetesUsage.d.ts +9 -0
  19. package/dist/api/types/KubernetesUsage.js +17 -0
  20. package/dist/api/types/KubernetesUsage.mjs +1 -0
  21. package/dist/api/types/KubernetesUsageResponse.d.mts +6 -0
  22. package/dist/api/types/KubernetesUsageResponse.d.ts +6 -0
  23. package/dist/api/types/KubernetesUsageResponse.js +17 -0
  24. package/dist/api/types/KubernetesUsageResponse.mjs +1 -0
  25. package/dist/api/types/KubernetesUsageSource.d.mts +29 -0
  26. package/dist/api/types/KubernetesUsageSource.d.ts +29 -0
  27. package/dist/api/types/KubernetesUsageSource.js +41 -0
  28. package/dist/api/types/KubernetesUsageSource.mjs +17 -0
  29. package/dist/api/types/NodeHealthDay.d.mts +2 -0
  30. package/dist/api/types/NodeHealthDay.d.ts +2 -0
  31. package/dist/api/types/PodsOnNode.d.mts +4 -0
  32. package/dist/api/types/PodsOnNode.d.ts +4 -0
  33. package/dist/api/types/ReliabilityEventDay.d.mts +2 -0
  34. package/dist/api/types/ReliabilityEventDay.d.ts +2 -0
  35. package/dist/api/types/ReliabilityFacetCount.d.mts +1 -0
  36. package/dist/api/types/ReliabilityFacetCount.d.ts +1 -0
  37. package/dist/api/types/ReliabilityFacetCount.js +1 -0
  38. package/dist/api/types/ReliabilityFacetCount.mjs +1 -0
  39. package/dist/api/types/ReliabilityLens.d.mts +1 -1
  40. package/dist/api/types/ReliabilityLens.d.ts +1 -1
  41. package/dist/api/types/SetSizingPolicyRequest.d.mts +23 -4
  42. package/dist/api/types/SetSizingPolicyRequest.d.ts +23 -4
  43. package/dist/api/types/SetSizingPolicyRequest.js +14 -1
  44. package/dist/api/types/SetSizingPolicyRequest.mjs +14 -1
  45. package/dist/api/types/SizingPolicies.d.mts +6 -3
  46. package/dist/api/types/SizingPolicies.d.ts +6 -3
  47. package/dist/api/types/SizingPolicies.js +2 -1
  48. package/dist/api/types/SizingPolicies.mjs +2 -1
  49. package/dist/api/types/SizingPolicy.d.mts +24 -3
  50. package/dist/api/types/SizingPolicy.d.ts +24 -3
  51. package/dist/api/types/SizingPolicy.js +14 -1
  52. package/dist/api/types/SizingPolicy.mjs +14 -1
  53. package/dist/api/types/UnmonitoredCluster.d.mts +2 -0
  54. package/dist/api/types/UnmonitoredCluster.d.ts +2 -0
  55. package/dist/api/types/WorkloadItem.d.mts +4 -0
  56. package/dist/api/types/WorkloadItem.d.ts +4 -0
  57. package/dist/api/types/WorkloadListItem.d.mts +4 -0
  58. package/dist/api/types/WorkloadListItem.d.ts +4 -0
  59. package/dist/api/types/index.d.mts +5 -0
  60. package/dist/api/types/index.d.ts +5 -0
  61. package/dist/api/types/index.js +10 -0
  62. package/dist/api/types/index.mjs +5 -0
  63. package/dist/version.d.mts +1 -1
  64. package/dist/version.d.ts +1 -1
  65. package/dist/version.js +1 -1
  66. package/dist/version.mjs +1 -1
  67. package/package.json +1 -1
@@ -7,6 +7,10 @@ export interface PodsOnNode {
7
7
  capacity_type?: (string | null) | undefined;
8
8
  /** From the bill, else the node's label */
9
9
  purchase_type?: (PodsOnNode.PurchaseType | null) | undefined;
10
+ /** Its pods run on the node in the newest hour the cluster reported, whatever the window */
11
+ running_now?: boolean | undefined;
12
+ /** The last hour in the window its pods ran on the node */
13
+ last_seen?: (string | null) | undefined;
10
14
  }
11
15
  export declare namespace PodsOnNode {
12
16
  const PurchaseType: {
@@ -7,6 +7,10 @@ export interface PodsOnNode {
7
7
  capacity_type?: (string | null) | undefined;
8
8
  /** From the bill, else the node's label */
9
9
  purchase_type?: (PodsOnNode.PurchaseType | null) | undefined;
10
+ /** Its pods run on the node in the newest hour the cluster reported, whatever the window */
11
+ running_now?: boolean | undefined;
12
+ /** The last hour in the window its pods ran on the node */
13
+ last_seen?: (string | null) | undefined;
10
14
  }
11
15
  export declare namespace PodsOnNode {
12
16
  const PurchaseType: {
@@ -4,4 +4,6 @@ export interface ReliabilityEventDay {
4
4
  oom_kills: number | null;
5
5
  restarts: number | null;
6
6
  evictions: number | null;
7
+ /** At most the pods moved off a node that a Spot interruption, an instance event or a Karpenter disruption (consolidation, drift, expiry) removed. They leave through the Eviction API, so evictions does not count them. Per removal, each workload counts the most of its pods that ran on the node at once in the hour the removal began, a pod that left the node earlier in that hour included. DaemonSet and static pods go with their node and are not counted, nor is a removal that began while the agent was not watching. A day is measured from agent 0.6.2 on, when every watched hour a removal's pods are read from carries the pods' peaks. Null on a day the cluster did not measure it, and for a namespace on a day any cluster in scope did not */
8
+ drained_pods: number | null;
7
9
  }
@@ -4,4 +4,6 @@ export interface ReliabilityEventDay {
4
4
  oom_kills: number | null;
5
5
  restarts: number | null;
6
6
  evictions: number | null;
7
+ /** At most the pods moved off a node that a Spot interruption, an instance event or a Karpenter disruption (consolidation, drift, expiry) removed. They leave through the Eviction API, so evictions does not count them. Per removal, each workload counts the most of its pods that ran on the node at once in the hour the removal began, a pod that left the node earlier in that hour included. DaemonSet and static pods go with their node and are not counted, nor is a removal that began while the agent was not watching. A day is measured from agent 0.6.2 on, when every watched hour a removal's pods are read from carries the pods' peaks. Null on a day the cluster did not measure it, and for a namespace on a day any cluster in scope did not */
8
+ drained_pods: number | null;
7
9
  }
@@ -8,6 +8,7 @@ export declare namespace ReliabilityFacetCount {
8
8
  readonly Restarts: "restarts";
9
9
  readonly Throttled: "throttled";
10
10
  readonly Evictions: "evictions";
11
+ readonly Drained: "drained";
11
12
  readonly AtRisk: "at_risk";
12
13
  readonly NoRequests: "no_requests";
13
14
  readonly NoMemoryLimit: "no_memory_limit";
@@ -8,6 +8,7 @@ export declare namespace ReliabilityFacetCount {
8
8
  readonly Restarts: "restarts";
9
9
  readonly Throttled: "throttled";
10
10
  readonly Evictions: "evictions";
11
+ readonly Drained: "drained";
11
12
  readonly AtRisk: "at_risk";
12
13
  readonly NoRequests: "no_requests";
13
14
  readonly NoMemoryLimit: "no_memory_limit";
@@ -28,6 +28,7 @@ var ReliabilityFacetCount;
28
28
  Restarts: "restarts",
29
29
  Throttled: "throttled",
30
30
  Evictions: "evictions",
31
+ Drained: "drained",
31
32
  AtRisk: "at_risk",
32
33
  NoRequests: "no_requests",
33
34
  NoMemoryLimit: "no_memory_limit",
@@ -5,6 +5,7 @@ var ReliabilityFacetCount;
5
5
  Restarts: "restarts",
6
6
  Throttled: "throttled",
7
7
  Evictions: "evictions",
8
+ Drained: "drained",
8
9
  AtRisk: "at_risk",
9
10
  NoRequests: "no_requests",
10
11
  NoMemoryLimit: "no_memory_limit",
@@ -4,6 +4,6 @@ export interface ReliabilityLens {
4
4
  totals: LevelFour.ReliabilityTotals;
5
5
  indicators: LevelFour.IndicatorCount[];
6
6
  days: LevelFour.ReliabilityDay[];
7
- /** With group_by, each cluster or namespace with an event in the window, most restarts and evictions first, then most OOM kills; a namespace sums across the clusters in scope. Their days add up to days */
7
+ /** With group_by, each cluster or namespace with an event shown in the window, most restarts, evictions and drained pods first as its days show them, then most OOM kills; a namespace sums across the clusters in scope. Their OOM kills, restarts and evictions add up to days. Their drained pods do too on a day days counts them; on a day days reads null, a namespace reads null as well, and a cluster that measured the day shows its own count */
8
8
  groups?: (LevelFour.ReliabilityGroup[] | null) | undefined;
9
9
  }
@@ -4,6 +4,6 @@ export interface ReliabilityLens {
4
4
  totals: LevelFour.ReliabilityTotals;
5
5
  indicators: LevelFour.IndicatorCount[];
6
6
  days: LevelFour.ReliabilityDay[];
7
- /** With group_by, each cluster or namespace with an event in the window, most restarts and evictions first, then most OOM kills; a namespace sums across the clusters in scope. Their days add up to days */
7
+ /** With group_by, each cluster or namespace with an event shown in the window, most restarts, evictions and drained pods first as its days show them, then most OOM kills; a namespace sums across the clusters in scope. Their OOM kills, restarts and evictions add up to days. Their drained pods do too on a day days counts them; on a day days reads null, a namespace reads null as well, and a cluster that measured the day shows its own count */
8
8
  groups?: (LevelFour.ReliabilityGroup[] | null) | undefined;
9
9
  }
@@ -1,16 +1,35 @@
1
1
  export interface SetSizingPolicyRequest {
2
- namespace: string;
2
+ /** Left out for the cluster's default */
3
+ namespace?: (string | null) | undefined;
3
4
  workload_kind?: (string | null) | undefined;
4
5
  workload_name?: (string | null) | undefined;
5
- /** max_savings sizes CPU from p95 with the least headroom; balanced, the default, sizes CPU from p99 and memory from the peak with headroom from the usage spread; extra_headroom adds 15 points to balanced */
6
- policy: SetSizingPolicyRequest.Policy;
6
+ /** CPU's and memory's policy together. max_savings sizes CPU from p95 with the least headroom; balanced, the default, sizes CPU from p99 and memory from the peak with headroom from the usage spread; extra_headroom adds 15 points to balanced and max_headroom 30 */
7
+ policy?: (SetSizingPolicyRequest.Policy | null) | undefined;
8
+ /** CPU's own policy, in place of policy. Left out, CPU follows the wider scope */
9
+ cpu_policy?: (SetSizingPolicyRequest.CpuPolicy | null) | undefined;
10
+ /** Memory's own policy, in place of policy. Left out, memory follows the wider scope */
11
+ memory_policy?: (SetSizingPolicyRequest.MemoryPolicy | null) | undefined;
7
12
  }
8
13
  export declare namespace SetSizingPolicyRequest {
9
- /** max_savings sizes CPU from p95 with the least headroom; balanced, the default, sizes CPU from p99 and memory from the peak with headroom from the usage spread; extra_headroom adds 15 points to balanced */
10
14
  const Policy: {
11
15
  readonly MaxSavings: "max_savings";
12
16
  readonly Balanced: "balanced";
13
17
  readonly ExtraHeadroom: "extra_headroom";
18
+ readonly MaxHeadroom: "max_headroom";
14
19
  };
15
20
  type Policy = (typeof Policy)[keyof typeof Policy];
21
+ const CpuPolicy: {
22
+ readonly MaxSavings: "max_savings";
23
+ readonly Balanced: "balanced";
24
+ readonly ExtraHeadroom: "extra_headroom";
25
+ readonly MaxHeadroom: "max_headroom";
26
+ };
27
+ type CpuPolicy = (typeof CpuPolicy)[keyof typeof CpuPolicy];
28
+ const MemoryPolicy: {
29
+ readonly MaxSavings: "max_savings";
30
+ readonly Balanced: "balanced";
31
+ readonly ExtraHeadroom: "extra_headroom";
32
+ readonly MaxHeadroom: "max_headroom";
33
+ };
34
+ type MemoryPolicy = (typeof MemoryPolicy)[keyof typeof MemoryPolicy];
16
35
  }
@@ -1,16 +1,35 @@
1
1
  export interface SetSizingPolicyRequest {
2
- namespace: string;
2
+ /** Left out for the cluster's default */
3
+ namespace?: (string | null) | undefined;
3
4
  workload_kind?: (string | null) | undefined;
4
5
  workload_name?: (string | null) | undefined;
5
- /** max_savings sizes CPU from p95 with the least headroom; balanced, the default, sizes CPU from p99 and memory from the peak with headroom from the usage spread; extra_headroom adds 15 points to balanced */
6
- policy: SetSizingPolicyRequest.Policy;
6
+ /** CPU's and memory's policy together. max_savings sizes CPU from p95 with the least headroom; balanced, the default, sizes CPU from p99 and memory from the peak with headroom from the usage spread; extra_headroom adds 15 points to balanced and max_headroom 30 */
7
+ policy?: (SetSizingPolicyRequest.Policy | null) | undefined;
8
+ /** CPU's own policy, in place of policy. Left out, CPU follows the wider scope */
9
+ cpu_policy?: (SetSizingPolicyRequest.CpuPolicy | null) | undefined;
10
+ /** Memory's own policy, in place of policy. Left out, memory follows the wider scope */
11
+ memory_policy?: (SetSizingPolicyRequest.MemoryPolicy | null) | undefined;
7
12
  }
8
13
  export declare namespace SetSizingPolicyRequest {
9
- /** max_savings sizes CPU from p95 with the least headroom; balanced, the default, sizes CPU from p99 and memory from the peak with headroom from the usage spread; extra_headroom adds 15 points to balanced */
10
14
  const Policy: {
11
15
  readonly MaxSavings: "max_savings";
12
16
  readonly Balanced: "balanced";
13
17
  readonly ExtraHeadroom: "extra_headroom";
18
+ readonly MaxHeadroom: "max_headroom";
14
19
  };
15
20
  type Policy = (typeof Policy)[keyof typeof Policy];
21
+ const CpuPolicy: {
22
+ readonly MaxSavings: "max_savings";
23
+ readonly Balanced: "balanced";
24
+ readonly ExtraHeadroom: "extra_headroom";
25
+ readonly MaxHeadroom: "max_headroom";
26
+ };
27
+ type CpuPolicy = (typeof CpuPolicy)[keyof typeof CpuPolicy];
28
+ const MemoryPolicy: {
29
+ readonly MaxSavings: "max_savings";
30
+ readonly Balanced: "balanced";
31
+ readonly ExtraHeadroom: "extra_headroom";
32
+ readonly MaxHeadroom: "max_headroom";
33
+ };
34
+ type MemoryPolicy = (typeof MemoryPolicy)[keyof typeof MemoryPolicy];
16
35
  }
@@ -26,7 +26,20 @@ var SetSizingPolicyRequest;
26
26
  SetSizingPolicyRequest2.Policy = {
27
27
  MaxSavings: "max_savings",
28
28
  Balanced: "balanced",
29
- ExtraHeadroom: "extra_headroom"
29
+ ExtraHeadroom: "extra_headroom",
30
+ MaxHeadroom: "max_headroom"
31
+ };
32
+ SetSizingPolicyRequest2.CpuPolicy = {
33
+ MaxSavings: "max_savings",
34
+ Balanced: "balanced",
35
+ ExtraHeadroom: "extra_headroom",
36
+ MaxHeadroom: "max_headroom"
37
+ };
38
+ SetSizingPolicyRequest2.MemoryPolicy = {
39
+ MaxSavings: "max_savings",
40
+ Balanced: "balanced",
41
+ ExtraHeadroom: "extra_headroom",
42
+ MaxHeadroom: "max_headroom"
30
43
  };
31
44
  })(SetSizingPolicyRequest || (SetSizingPolicyRequest = {}));
32
45
  // Annotate the CommonJS export names for ESM import in node:
@@ -3,7 +3,20 @@ var SetSizingPolicyRequest;
3
3
  SetSizingPolicyRequest2.Policy = {
4
4
  MaxSavings: "max_savings",
5
5
  Balanced: "balanced",
6
- ExtraHeadroom: "extra_headroom"
6
+ ExtraHeadroom: "extra_headroom",
7
+ MaxHeadroom: "max_headroom"
8
+ };
9
+ SetSizingPolicyRequest2.CpuPolicy = {
10
+ MaxSavings: "max_savings",
11
+ Balanced: "balanced",
12
+ ExtraHeadroom: "extra_headroom",
13
+ MaxHeadroom: "max_headroom"
14
+ };
15
+ SetSizingPolicyRequest2.MemoryPolicy = {
16
+ MaxSavings: "max_savings",
17
+ Balanced: "balanced",
18
+ ExtraHeadroom: "extra_headroom",
19
+ MaxHeadroom: "max_headroom"
7
20
  };
8
21
  })(SetSizingPolicyRequest || (SetSizingPolicyRequest = {}));
9
22
  export {
@@ -1,16 +1,19 @@
1
1
  import type * as LevelFour from "../index.mjs";
2
2
  export interface SizingPolicies {
3
- /** What a namespace or workload without a policy of its own uses */
3
+ /** What CPU and memory use where no scope sets a policy */
4
4
  default: SizingPolicies.Default;
5
- /** A workload's policy wins over its namespace's */
5
+ /** The cluster's default, under every namespace and workload policy */
6
+ cluster: LevelFour.SizingPolicy | null;
7
+ /** Namespace and workload policies; a workload's wins over its namespace's, resource by resource */
6
8
  policies: LevelFour.SizingPolicy[];
7
9
  }
8
10
  export declare namespace SizingPolicies {
9
- /** What a namespace or workload without a policy of its own uses */
11
+ /** What CPU and memory use where no scope sets a policy */
10
12
  const Default: {
11
13
  readonly MaxSavings: "max_savings";
12
14
  readonly Balanced: "balanced";
13
15
  readonly ExtraHeadroom: "extra_headroom";
16
+ readonly MaxHeadroom: "max_headroom";
14
17
  };
15
18
  type Default = (typeof Default)[keyof typeof Default];
16
19
  }
@@ -1,16 +1,19 @@
1
1
  import type * as LevelFour from "../index.js";
2
2
  export interface SizingPolicies {
3
- /** What a namespace or workload without a policy of its own uses */
3
+ /** What CPU and memory use where no scope sets a policy */
4
4
  default: SizingPolicies.Default;
5
- /** A workload's policy wins over its namespace's */
5
+ /** The cluster's default, under every namespace and workload policy */
6
+ cluster: LevelFour.SizingPolicy | null;
7
+ /** Namespace and workload policies; a workload's wins over its namespace's, resource by resource */
6
8
  policies: LevelFour.SizingPolicy[];
7
9
  }
8
10
  export declare namespace SizingPolicies {
9
- /** What a namespace or workload without a policy of its own uses */
11
+ /** What CPU and memory use where no scope sets a policy */
10
12
  const Default: {
11
13
  readonly MaxSavings: "max_savings";
12
14
  readonly Balanced: "balanced";
13
15
  readonly ExtraHeadroom: "extra_headroom";
16
+ readonly MaxHeadroom: "max_headroom";
14
17
  };
15
18
  type Default = (typeof Default)[keyof typeof Default];
16
19
  }
@@ -26,7 +26,8 @@ var SizingPolicies;
26
26
  SizingPolicies2.Default = {
27
27
  MaxSavings: "max_savings",
28
28
  Balanced: "balanced",
29
- ExtraHeadroom: "extra_headroom"
29
+ ExtraHeadroom: "extra_headroom",
30
+ MaxHeadroom: "max_headroom"
30
31
  };
31
32
  })(SizingPolicies || (SizingPolicies = {}));
32
33
  // Annotate the CommonJS export names for ESM import in node:
@@ -3,7 +3,8 @@ var SizingPolicies;
3
3
  SizingPolicies2.Default = {
4
4
  MaxSavings: "max_savings",
5
5
  Balanced: "balanced",
6
- ExtraHeadroom: "extra_headroom"
6
+ ExtraHeadroom: "extra_headroom",
7
+ MaxHeadroom: "max_headroom"
7
8
  };
8
9
  })(SizingPolicies || (SizingPolicies = {}));
9
10
  export {
@@ -1,9 +1,15 @@
1
1
  export interface SizingPolicy {
2
- namespace: string;
3
- /** Null for a policy on the whole namespace */
2
+ /** Null for the cluster's default */
3
+ namespace?: (string | null) | undefined;
4
+ /** Null for a policy on a whole namespace or the cluster */
4
5
  workload_kind?: (string | null) | undefined;
5
6
  workload_name?: (string | null) | undefined;
6
- policy: SizingPolicy.Policy;
7
+ /** CPU's and memory's when they share one, otherwise null */
8
+ policy: SizingPolicy.Policy | null;
9
+ /** Null where CPU follows the wider scope */
10
+ cpu_policy: SizingPolicy.CpuPolicy | null;
11
+ /** Null where memory follows the wider scope */
12
+ memory_policy: SizingPolicy.MemoryPolicy | null;
7
13
  /** Email of the person who set it */
8
14
  updated_by: string;
9
15
  updated_at: string;
@@ -13,6 +19,21 @@ export declare namespace SizingPolicy {
13
19
  readonly MaxSavings: "max_savings";
14
20
  readonly Balanced: "balanced";
15
21
  readonly ExtraHeadroom: "extra_headroom";
22
+ readonly MaxHeadroom: "max_headroom";
16
23
  };
17
24
  type Policy = (typeof Policy)[keyof typeof Policy];
25
+ const CpuPolicy: {
26
+ readonly MaxSavings: "max_savings";
27
+ readonly Balanced: "balanced";
28
+ readonly ExtraHeadroom: "extra_headroom";
29
+ readonly MaxHeadroom: "max_headroom";
30
+ };
31
+ type CpuPolicy = (typeof CpuPolicy)[keyof typeof CpuPolicy];
32
+ const MemoryPolicy: {
33
+ readonly MaxSavings: "max_savings";
34
+ readonly Balanced: "balanced";
35
+ readonly ExtraHeadroom: "extra_headroom";
36
+ readonly MaxHeadroom: "max_headroom";
37
+ };
38
+ type MemoryPolicy = (typeof MemoryPolicy)[keyof typeof MemoryPolicy];
18
39
  }
@@ -1,9 +1,15 @@
1
1
  export interface SizingPolicy {
2
- namespace: string;
3
- /** Null for a policy on the whole namespace */
2
+ /** Null for the cluster's default */
3
+ namespace?: (string | null) | undefined;
4
+ /** Null for a policy on a whole namespace or the cluster */
4
5
  workload_kind?: (string | null) | undefined;
5
6
  workload_name?: (string | null) | undefined;
6
- policy: SizingPolicy.Policy;
7
+ /** CPU's and memory's when they share one, otherwise null */
8
+ policy: SizingPolicy.Policy | null;
9
+ /** Null where CPU follows the wider scope */
10
+ cpu_policy: SizingPolicy.CpuPolicy | null;
11
+ /** Null where memory follows the wider scope */
12
+ memory_policy: SizingPolicy.MemoryPolicy | null;
7
13
  /** Email of the person who set it */
8
14
  updated_by: string;
9
15
  updated_at: string;
@@ -13,6 +19,21 @@ export declare namespace SizingPolicy {
13
19
  readonly MaxSavings: "max_savings";
14
20
  readonly Balanced: "balanced";
15
21
  readonly ExtraHeadroom: "extra_headroom";
22
+ readonly MaxHeadroom: "max_headroom";
16
23
  };
17
24
  type Policy = (typeof Policy)[keyof typeof Policy];
25
+ const CpuPolicy: {
26
+ readonly MaxSavings: "max_savings";
27
+ readonly Balanced: "balanced";
28
+ readonly ExtraHeadroom: "extra_headroom";
29
+ readonly MaxHeadroom: "max_headroom";
30
+ };
31
+ type CpuPolicy = (typeof CpuPolicy)[keyof typeof CpuPolicy];
32
+ const MemoryPolicy: {
33
+ readonly MaxSavings: "max_savings";
34
+ readonly Balanced: "balanced";
35
+ readonly ExtraHeadroom: "extra_headroom";
36
+ readonly MaxHeadroom: "max_headroom";
37
+ };
38
+ type MemoryPolicy = (typeof MemoryPolicy)[keyof typeof MemoryPolicy];
18
39
  }
@@ -26,7 +26,20 @@ var SizingPolicy;
26
26
  SizingPolicy2.Policy = {
27
27
  MaxSavings: "max_savings",
28
28
  Balanced: "balanced",
29
- ExtraHeadroom: "extra_headroom"
29
+ ExtraHeadroom: "extra_headroom",
30
+ MaxHeadroom: "max_headroom"
31
+ };
32
+ SizingPolicy2.CpuPolicy = {
33
+ MaxSavings: "max_savings",
34
+ Balanced: "balanced",
35
+ ExtraHeadroom: "extra_headroom",
36
+ MaxHeadroom: "max_headroom"
37
+ };
38
+ SizingPolicy2.MemoryPolicy = {
39
+ MaxSavings: "max_savings",
40
+ Balanced: "balanced",
41
+ ExtraHeadroom: "extra_headroom",
42
+ MaxHeadroom: "max_headroom"
30
43
  };
31
44
  })(SizingPolicy || (SizingPolicy = {}));
32
45
  // Annotate the CommonJS export names for ESM import in node:
@@ -3,7 +3,20 @@ var SizingPolicy;
3
3
  SizingPolicy2.Policy = {
4
4
  MaxSavings: "max_savings",
5
5
  Balanced: "balanced",
6
- ExtraHeadroom: "extra_headroom"
6
+ ExtraHeadroom: "extra_headroom",
7
+ MaxHeadroom: "max_headroom"
8
+ };
9
+ SizingPolicy2.CpuPolicy = {
10
+ MaxSavings: "max_savings",
11
+ Balanced: "balanced",
12
+ ExtraHeadroom: "extra_headroom",
13
+ MaxHeadroom: "max_headroom"
14
+ };
15
+ SizingPolicy2.MemoryPolicy = {
16
+ MaxSavings: "max_savings",
17
+ Balanced: "balanced",
18
+ ExtraHeadroom: "extra_headroom",
19
+ MaxHeadroom: "max_headroom"
7
20
  };
8
21
  })(SizingPolicy || (SizingPolicy = {}));
9
22
  export {
@@ -4,6 +4,8 @@ export interface UnmonitoredCluster {
4
4
  name: string;
5
5
  /** The AWS account or GCP project the cluster runs in */
6
6
  account_id?: (string | null) | undefined;
7
+ /** The name the organization's connected account or project carries, so clusters of one name in several accounts read apart; null when the account is not connected or has no name */
8
+ account_name?: (string | null) | undefined;
7
9
  region?: (string | null) | undefined;
8
10
  /** bill when the bill names the cluster (its EKS control plane, or a cost split by pod), inventory when only the GCP inventory does */
9
11
  source: UnmonitoredCluster.Source;
@@ -4,6 +4,8 @@ export interface UnmonitoredCluster {
4
4
  name: string;
5
5
  /** The AWS account or GCP project the cluster runs in */
6
6
  account_id?: (string | null) | undefined;
7
+ /** The name the organization's connected account or project carries, so clusters of one name in several accounts read apart; null when the account is not connected or has no name */
8
+ account_name?: (string | null) | undefined;
7
9
  region?: (string | null) | undefined;
8
10
  /** bill when the bill names the cluster (its EKS control plane, or a cost split by pod), inventory when only the GCP inventory does */
9
11
  source: UnmonitoredCluster.Source;
@@ -87,6 +87,10 @@ export interface WorkloadItem {
87
87
  revision_count?: (number | null) | undefined;
88
88
  /** Who sizes its containers besides its template: vpa, a VPA that writes their requests; addon_resizer, an addon-resizer container beside them; admission, another tool that set what its pods hold as they were admitted or in place (a container's cpu_set_by or memory_set_by admission that neither a VPA nor LevelFour's own automation explains). Empty when only the template does, and for a workload gone from the cluster. Automation never acts in a namespace addon-resizer or another tool at admission sizes */
89
89
  sized_by?: WorkloadItem.SizedBy.Item[] | undefined;
90
+ /** The CPU another tool cut from its requests at admission, in millicores over its pods, as the sized-elsewhere card sums it (a raise left out); null before the daily scan measures it, and in a system-scoped namespace */
91
+ cpu_cut_milli?: (number | null) | undefined;
92
+ /** The memory another tool cut from its requests at admission, in bytes over its pods, as cpu_cut_milli */
93
+ memory_cut_bytes?: (number | null) | undefined;
90
94
  }
91
95
  export declare namespace WorkloadItem {
92
96
  const CpuSetBy: {
@@ -87,6 +87,10 @@ export interface WorkloadItem {
87
87
  revision_count?: (number | null) | undefined;
88
88
  /** Who sizes its containers besides its template: vpa, a VPA that writes their requests; addon_resizer, an addon-resizer container beside them; admission, another tool that set what its pods hold as they were admitted or in place (a container's cpu_set_by or memory_set_by admission that neither a VPA nor LevelFour's own automation explains). Empty when only the template does, and for a workload gone from the cluster. Automation never acts in a namespace addon-resizer or another tool at admission sizes */
89
89
  sized_by?: WorkloadItem.SizedBy.Item[] | undefined;
90
+ /** The CPU another tool cut from its requests at admission, in millicores over its pods, as the sized-elsewhere card sums it (a raise left out); null before the daily scan measures it, and in a system-scoped namespace */
91
+ cpu_cut_milli?: (number | null) | undefined;
92
+ /** The memory another tool cut from its requests at admission, in bytes over its pods, as cpu_cut_milli */
93
+ memory_cut_bytes?: (number | null) | undefined;
90
94
  }
91
95
  export declare namespace WorkloadItem {
92
96
  const CpuSetBy: {
@@ -87,6 +87,10 @@ export interface WorkloadListItem {
87
87
  revision_count?: (number | null) | undefined;
88
88
  /** Who sizes its containers besides its template: vpa, a VPA that writes their requests; addon_resizer, an addon-resizer container beside them; admission, another tool that set what its pods hold as they were admitted or in place (a container's cpu_set_by or memory_set_by admission that neither a VPA nor LevelFour's own automation explains). Empty when only the template does, and for a workload gone from the cluster. Automation never acts in a namespace addon-resizer or another tool at admission sizes */
89
89
  sized_by?: WorkloadListItem.SizedBy.Item[] | undefined;
90
+ /** The CPU another tool cut from its requests at admission, in millicores over its pods, as the sized-elsewhere card sums it (a raise left out); null before the daily scan measures it, and in a system-scoped namespace */
91
+ cpu_cut_milli?: (number | null) | undefined;
92
+ /** The memory another tool cut from its requests at admission, in bytes over its pods, as cpu_cut_milli */
93
+ memory_cut_bytes?: (number | null) | undefined;
90
94
  /** Null when none of its containers runs a JVM */
91
95
  jvm?: (LevelFour.WorkloadJvm | null) | undefined;
92
96
  }
@@ -87,6 +87,10 @@ export interface WorkloadListItem {
87
87
  revision_count?: (number | null) | undefined;
88
88
  /** Who sizes its containers besides its template: vpa, a VPA that writes their requests; addon_resizer, an addon-resizer container beside them; admission, another tool that set what its pods hold as they were admitted or in place (a container's cpu_set_by or memory_set_by admission that neither a VPA nor LevelFour's own automation explains). Empty when only the template does, and for a workload gone from the cluster. Automation never acts in a namespace addon-resizer or another tool at admission sizes */
89
89
  sized_by?: WorkloadListItem.SizedBy.Item[] | undefined;
90
+ /** The CPU another tool cut from its requests at admission, in millicores over its pods, as the sized-elsewhere card sums it (a raise left out); null before the daily scan measures it, and in a system-scoped namespace */
91
+ cpu_cut_milli?: (number | null) | undefined;
92
+ /** The memory another tool cut from its requests at admission, in bytes over its pods, as cpu_cut_milli */
93
+ memory_cut_bytes?: (number | null) | undefined;
90
94
  /** Null when none of its containers runs a JVM */
91
95
  jvm?: (LevelFour.WorkloadJvm | null) | undefined;
92
96
  }
@@ -732,6 +732,8 @@ export * from "./InvoiceCostTypes.mjs";
732
732
  export * from "./InvoiceDetail.mjs";
733
733
  export * from "./InvoiceDetailResponse.mjs";
734
734
  export * from "./InvoiceLine.mjs";
735
+ export * from "./InvoiceLinesPage.mjs";
736
+ export * from "./InvoiceLinesResponse.mjs";
735
737
  export * from "./InvoiceListResponse.mjs";
736
738
  export * from "./InvoiceMonth.mjs";
737
739
  export * from "./InvoiceSummary.mjs";
@@ -768,6 +770,9 @@ export * from "./KubernetesDataAvailability.mjs";
768
770
  export * from "./KubernetesDataAvailabilityResponse.mjs";
769
771
  export * from "./KubernetesRequestInput.mjs";
770
772
  export * from "./KubernetesRequestOutput.mjs";
773
+ export * from "./KubernetesUsage.mjs";
774
+ export * from "./KubernetesUsageResponse.mjs";
775
+ export * from "./KubernetesUsageSource.mjs";
771
776
  export * from "./LabelCoverageItem.mjs";
772
777
  export * from "./LabelHierarchyItem.mjs";
773
778
  export * from "./LabelHygieneData.mjs";
@@ -732,6 +732,8 @@ export * from "./InvoiceCostTypes.js";
732
732
  export * from "./InvoiceDetail.js";
733
733
  export * from "./InvoiceDetailResponse.js";
734
734
  export * from "./InvoiceLine.js";
735
+ export * from "./InvoiceLinesPage.js";
736
+ export * from "./InvoiceLinesResponse.js";
735
737
  export * from "./InvoiceListResponse.js";
736
738
  export * from "./InvoiceMonth.js";
737
739
  export * from "./InvoiceSummary.js";
@@ -768,6 +770,9 @@ export * from "./KubernetesDataAvailability.js";
768
770
  export * from "./KubernetesDataAvailabilityResponse.js";
769
771
  export * from "./KubernetesRequestInput.js";
770
772
  export * from "./KubernetesRequestOutput.js";
773
+ export * from "./KubernetesUsage.js";
774
+ export * from "./KubernetesUsageResponse.js";
775
+ export * from "./KubernetesUsageSource.js";
771
776
  export * from "./LabelCoverageItem.js";
772
777
  export * from "./LabelHierarchyItem.js";
773
778
  export * from "./LabelHygieneData.js";
@@ -749,6 +749,8 @@ __reExport(types_exports, require("./InvoiceCostTypes.js"), module.exports);
749
749
  __reExport(types_exports, require("./InvoiceDetail.js"), module.exports);
750
750
  __reExport(types_exports, require("./InvoiceDetailResponse.js"), module.exports);
751
751
  __reExport(types_exports, require("./InvoiceLine.js"), module.exports);
752
+ __reExport(types_exports, require("./InvoiceLinesPage.js"), module.exports);
753
+ __reExport(types_exports, require("./InvoiceLinesResponse.js"), module.exports);
752
754
  __reExport(types_exports, require("./InvoiceListResponse.js"), module.exports);
753
755
  __reExport(types_exports, require("./InvoiceMonth.js"), module.exports);
754
756
  __reExport(types_exports, require("./InvoiceSummary.js"), module.exports);
@@ -785,6 +787,9 @@ __reExport(types_exports, require("./KubernetesDataAvailability.js"), module.exp
785
787
  __reExport(types_exports, require("./KubernetesDataAvailabilityResponse.js"), module.exports);
786
788
  __reExport(types_exports, require("./KubernetesRequestInput.js"), module.exports);
787
789
  __reExport(types_exports, require("./KubernetesRequestOutput.js"), module.exports);
790
+ __reExport(types_exports, require("./KubernetesUsage.js"), module.exports);
791
+ __reExport(types_exports, require("./KubernetesUsageResponse.js"), module.exports);
792
+ __reExport(types_exports, require("./KubernetesUsageSource.js"), module.exports);
788
793
  __reExport(types_exports, require("./LabelCoverageItem.js"), module.exports);
789
794
  __reExport(types_exports, require("./LabelHierarchyItem.js"), module.exports);
790
795
  __reExport(types_exports, require("./LabelHygieneData.js"), module.exports);
@@ -2119,6 +2124,8 @@ __reExport(types_exports, require("./ZonePair.js"), module.exports);
2119
2124
  ...require("./InvoiceDetail.js"),
2120
2125
  ...require("./InvoiceDetailResponse.js"),
2121
2126
  ...require("./InvoiceLine.js"),
2127
+ ...require("./InvoiceLinesPage.js"),
2128
+ ...require("./InvoiceLinesResponse.js"),
2122
2129
  ...require("./InvoiceListResponse.js"),
2123
2130
  ...require("./InvoiceMonth.js"),
2124
2131
  ...require("./InvoiceSummary.js"),
@@ -2155,6 +2162,9 @@ __reExport(types_exports, require("./ZonePair.js"), module.exports);
2155
2162
  ...require("./KubernetesDataAvailabilityResponse.js"),
2156
2163
  ...require("./KubernetesRequestInput.js"),
2157
2164
  ...require("./KubernetesRequestOutput.js"),
2165
+ ...require("./KubernetesUsage.js"),
2166
+ ...require("./KubernetesUsageResponse.js"),
2167
+ ...require("./KubernetesUsageSource.js"),
2158
2168
  ...require("./LabelCoverageItem.js"),
2159
2169
  ...require("./LabelHierarchyItem.js"),
2160
2170
  ...require("./LabelHygieneData.js"),
@@ -732,6 +732,8 @@ export * from "./InvoiceCostTypes.mjs";
732
732
  export * from "./InvoiceDetail.mjs";
733
733
  export * from "./InvoiceDetailResponse.mjs";
734
734
  export * from "./InvoiceLine.mjs";
735
+ export * from "./InvoiceLinesPage.mjs";
736
+ export * from "./InvoiceLinesResponse.mjs";
735
737
  export * from "./InvoiceListResponse.mjs";
736
738
  export * from "./InvoiceMonth.mjs";
737
739
  export * from "./InvoiceSummary.mjs";
@@ -768,6 +770,9 @@ export * from "./KubernetesDataAvailability.mjs";
768
770
  export * from "./KubernetesDataAvailabilityResponse.mjs";
769
771
  export * from "./KubernetesRequestInput.mjs";
770
772
  export * from "./KubernetesRequestOutput.mjs";
773
+ export * from "./KubernetesUsage.mjs";
774
+ export * from "./KubernetesUsageResponse.mjs";
775
+ export * from "./KubernetesUsageSource.mjs";
771
776
  export * from "./LabelCoverageItem.mjs";
772
777
  export * from "./LabelHierarchyItem.mjs";
773
778
  export * from "./LabelHygieneData.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.14.0";
1
+ export declare const SDK_VERSION = "1.15.0";
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.14.0";
1
+ export declare const SDK_VERSION = "1.15.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.14.0";
24
+ const SDK_VERSION = "1.15.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.14.0";
1
+ const SDK_VERSION = "1.15.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.14.0",
3
+ "version": "1.15.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",