levelfour 1.9.0 → 1.10.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 (221) hide show
  1. package/dist/api/types/AutomationAction.d.mts +1 -0
  2. package/dist/api/types/AutomationAction.d.ts +1 -0
  3. package/dist/api/types/AutomationAction.js +2 -1
  4. package/dist/api/types/AutomationAction.mjs +2 -1
  5. package/dist/api/types/BlockerTotals.d.mts +19 -1
  6. package/dist/api/types/BlockerTotals.d.ts +19 -1
  7. package/dist/api/types/ClaimBillRate.d.mts +15 -0
  8. package/dist/api/types/ClaimBillRate.d.ts +15 -0
  9. package/dist/api/types/ClaimBillRate.js +17 -0
  10. package/dist/api/types/ClaimBillRate.mjs +1 -0
  11. package/dist/api/types/ClusterFilterOptions.d.mts +1 -0
  12. package/dist/api/types/ClusterFilterOptions.d.ts +1 -0
  13. package/dist/api/types/ClusterFilterOptions.js +1 -0
  14. package/dist/api/types/ClusterFilterOptions.mjs +1 -0
  15. package/dist/api/types/ClusterHealth.d.mts +1 -1
  16. package/dist/api/types/ClusterHealth.d.ts +1 -1
  17. package/dist/api/types/ClusterItem.d.mts +18 -5
  18. package/dist/api/types/ClusterItem.d.ts +18 -5
  19. package/dist/api/types/ClusterItem.js +6 -0
  20. package/dist/api/types/ClusterItem.mjs +6 -0
  21. package/dist/api/types/ClusterSummary.d.mts +17 -1
  22. package/dist/api/types/ClusterSummary.d.ts +17 -1
  23. package/dist/api/types/ClusterSummary.js +5 -0
  24. package/dist/api/types/ClusterSummary.mjs +5 -0
  25. package/dist/api/types/ClusterUsageDay.d.mts +1 -1
  26. package/dist/api/types/ClusterUsageDay.d.ts +1 -1
  27. package/dist/api/types/ComputeMonth.d.mts +3 -2
  28. package/dist/api/types/ComputeMonth.d.ts +3 -2
  29. package/dist/api/types/ConsolidationBlocker.d.mts +19 -0
  30. package/dist/api/types/ConsolidationBlocker.d.ts +19 -0
  31. package/dist/api/types/ConsolidationBlocker.js +11 -0
  32. package/dist/api/types/ConsolidationBlocker.mjs +11 -0
  33. package/dist/api/types/ContainerDetail.d.mts +2 -0
  34. package/dist/api/types/ContainerDetail.d.ts +2 -0
  35. package/dist/api/types/CostSeries.d.mts +3 -2
  36. package/dist/api/types/CostSeries.d.ts +3 -2
  37. package/dist/api/types/CostSeries.js +2 -1
  38. package/dist/api/types/CostSeries.mjs +2 -1
  39. package/dist/api/types/DestinationTraffic.d.mts +17 -0
  40. package/dist/api/types/DestinationTraffic.d.ts +17 -0
  41. package/dist/api/types/DestinationTraffic.js +38 -0
  42. package/dist/api/types/DestinationTraffic.mjs +14 -0
  43. package/dist/api/types/Efficiency.d.mts +6 -0
  44. package/dist/api/types/Efficiency.d.ts +6 -0
  45. package/dist/api/types/EfficiencyPoint.d.mts +1 -0
  46. package/dist/api/types/EfficiencyPoint.d.ts +1 -0
  47. package/dist/api/types/FleetNamespace.d.mts +7 -0
  48. package/dist/api/types/FleetNamespace.d.ts +7 -0
  49. package/dist/api/types/FleetNamespace.js +4 -0
  50. package/dist/api/types/FleetNamespace.mjs +4 -0
  51. package/dist/api/types/FleetNodePool.d.mts +11 -5
  52. package/dist/api/types/FleetNodePool.d.ts +11 -5
  53. package/dist/api/types/FleetStorage.d.mts +3 -0
  54. package/dist/api/types/FleetStorage.d.ts +3 -0
  55. package/dist/api/types/FleetSummary.d.mts +13 -1
  56. package/dist/api/types/FleetSummary.d.ts +13 -1
  57. package/dist/api/types/FleetSummary.js +5 -0
  58. package/dist/api/types/FleetSummary.mjs +5 -0
  59. package/dist/api/types/FleetVolume.d.mts +23 -1
  60. package/dist/api/types/FleetVolume.d.ts +23 -1
  61. package/dist/api/types/FleetVolume.js +22 -0
  62. package/dist/api/types/FleetVolume.mjs +14 -0
  63. package/dist/api/types/FleetWorkload.d.mts +9 -0
  64. package/dist/api/types/FleetWorkload.d.ts +9 -0
  65. package/dist/api/types/FleetWorkload.js +4 -0
  66. package/dist/api/types/FleetWorkload.mjs +4 -0
  67. package/dist/api/types/HeldResources.d.mts +23 -0
  68. package/dist/api/types/HeldResources.d.ts +23 -0
  69. package/dist/api/types/HeldResources.js +39 -0
  70. package/dist/api/types/HeldResources.mjs +15 -0
  71. package/dist/api/types/Indicator.d.mts +3 -0
  72. package/dist/api/types/Indicator.d.ts +3 -0
  73. package/dist/api/types/Indicator.js +3 -0
  74. package/dist/api/types/Indicator.mjs +3 -0
  75. package/dist/api/types/IndicatorCount.d.mts +3 -0
  76. package/dist/api/types/IndicatorCount.d.ts +3 -0
  77. package/dist/api/types/IndicatorCount.js +3 -0
  78. package/dist/api/types/IndicatorCount.mjs +3 -0
  79. package/dist/api/types/KubernetesDataAvailability.d.mts +4 -0
  80. package/dist/api/types/KubernetesDataAvailability.d.ts +4 -0
  81. package/dist/api/types/NamespaceAutomation.d.mts +3 -0
  82. package/dist/api/types/NamespaceAutomation.d.ts +3 -0
  83. package/dist/api/types/NamespaceItem.d.mts +7 -0
  84. package/dist/api/types/NamespaceItem.d.ts +7 -0
  85. package/dist/api/types/NamespaceItem.js +4 -0
  86. package/dist/api/types/NamespaceItem.mjs +4 -0
  87. package/dist/api/types/NamespaceReliability.d.mts +4 -1
  88. package/dist/api/types/NamespaceReliability.d.ts +4 -1
  89. package/dist/api/types/NetworkLens.d.mts +2 -0
  90. package/dist/api/types/NetworkLens.d.ts +2 -0
  91. package/dist/api/types/NetworkTotals.d.mts +5 -1
  92. package/dist/api/types/NetworkTotals.d.ts +5 -1
  93. package/dist/api/types/NoReadyShare.d.mts +12 -0
  94. package/dist/api/types/NoReadyShare.d.ts +12 -0
  95. package/dist/api/types/NoReadyShare.js +17 -0
  96. package/dist/api/types/NoReadyShare.mjs +1 -0
  97. package/dist/api/types/NodeDetail.d.mts +2 -0
  98. package/dist/api/types/NodeDetail.d.ts +2 -0
  99. package/dist/api/types/NodeFacets.d.mts +2 -0
  100. package/dist/api/types/NodeFacets.d.ts +2 -0
  101. package/dist/api/types/NodeItem.d.mts +3 -1
  102. package/dist/api/types/NodeItem.d.ts +3 -1
  103. package/dist/api/types/NodeMonthlyPrice.d.mts +24 -0
  104. package/dist/api/types/NodeMonthlyPrice.d.ts +24 -0
  105. package/dist/api/types/NodeMonthlyPrice.js +35 -0
  106. package/dist/api/types/NodeMonthlyPrice.mjs +11 -0
  107. package/dist/api/types/NodePoolDay.d.mts +1 -1
  108. package/dist/api/types/NodePoolDay.d.ts +1 -1
  109. package/dist/api/types/NodePoolUsage.d.mts +11 -5
  110. package/dist/api/types/NodePoolUsage.d.ts +11 -5
  111. package/dist/api/types/OtherRightsizer.d.mts +14 -0
  112. package/dist/api/types/OtherRightsizer.d.ts +14 -0
  113. package/dist/api/types/OtherRightsizer.js +35 -0
  114. package/dist/api/types/OtherRightsizer.mjs +11 -0
  115. package/dist/api/types/PendingShare.d.mts +6 -0
  116. package/dist/api/types/PendingShare.d.ts +6 -0
  117. package/dist/api/types/PendingShare.js +17 -0
  118. package/dist/api/types/PendingShare.mjs +1 -0
  119. package/dist/api/types/PodCounts.d.mts +2 -2
  120. package/dist/api/types/PodCounts.d.ts +2 -2
  121. package/dist/api/types/PodsHour.d.mts +3 -1
  122. package/dist/api/types/PodsHour.d.ts +3 -1
  123. package/dist/api/types/PurchaseTypeShare.d.mts +1 -1
  124. package/dist/api/types/PurchaseTypeShare.d.ts +1 -1
  125. package/dist/api/types/ReliabilityCounts.d.mts +3 -0
  126. package/dist/api/types/ReliabilityCounts.d.ts +3 -0
  127. package/dist/api/types/ReliabilityDay.d.mts +8 -5
  128. package/dist/api/types/ReliabilityDay.d.ts +8 -5
  129. package/dist/api/types/ReliabilityEventDay.d.mts +4 -3
  130. package/dist/api/types/ReliabilityEventDay.d.ts +4 -3
  131. package/dist/api/types/ReliabilityLens.d.mts +2 -1
  132. package/dist/api/types/ReliabilityLens.d.ts +2 -1
  133. package/dist/api/types/ReliabilityTotals.d.mts +10 -1
  134. package/dist/api/types/ReliabilityTotals.d.ts +10 -1
  135. package/dist/api/types/RequestsAverage.d.mts +3 -1
  136. package/dist/api/types/RequestsAverage.d.ts +3 -1
  137. package/dist/api/types/ResourceEfficiency.d.mts +7 -1
  138. package/dist/api/types/ResourceEfficiency.d.ts +7 -1
  139. package/dist/api/types/RightsizedContainer.d.mts +19 -5
  140. package/dist/api/types/RightsizedContainer.d.ts +19 -5
  141. package/dist/api/types/RightsizedContainer.js +10 -1
  142. package/dist/api/types/RightsizedContainer.mjs +10 -1
  143. package/dist/api/types/SizingEvidence.d.mts +30 -0
  144. package/dist/api/types/SizingEvidence.d.ts +30 -0
  145. package/dist/api/types/SizingEvidence.js +40 -0
  146. package/dist/api/types/SizingEvidence.mjs +16 -0
  147. package/dist/api/types/SpendDay.d.mts +17 -2
  148. package/dist/api/types/SpendDay.d.ts +17 -2
  149. package/dist/api/types/SpendDay.js +18 -0
  150. package/dist/api/types/SpendDay.mjs +10 -0
  151. package/dist/api/types/SpendKpis.d.mts +13 -2
  152. package/dist/api/types/SpendKpis.d.ts +13 -2
  153. package/dist/api/types/SpendKpis.js +18 -0
  154. package/dist/api/types/SpendKpis.mjs +10 -0
  155. package/dist/api/types/SpendUnitCost.d.mts +1 -0
  156. package/dist/api/types/SpendUnitCost.d.ts +1 -0
  157. package/dist/api/types/SpotBalance.d.mts +4 -0
  158. package/dist/api/types/SpotBalance.d.ts +4 -0
  159. package/dist/api/types/StatusCount.d.mts +1 -0
  160. package/dist/api/types/StatusCount.d.ts +1 -0
  161. package/dist/api/types/StatusCount.js +1 -0
  162. package/dist/api/types/StatusCount.mjs +1 -0
  163. package/dist/api/types/StorageClassTotals.d.mts +2 -0
  164. package/dist/api/types/StorageClassTotals.d.ts +2 -0
  165. package/dist/api/types/StorageClassUsage.d.mts +4 -1
  166. package/dist/api/types/StorageClassUsage.d.ts +4 -1
  167. package/dist/api/types/UnitCosts.d.mts +1 -1
  168. package/dist/api/types/UnitCosts.d.ts +1 -1
  169. package/dist/api/types/UsageCoverage.d.mts +10 -0
  170. package/dist/api/types/UsageCoverage.d.ts +10 -0
  171. package/dist/api/types/UsageCoverage.js +17 -0
  172. package/dist/api/types/UsageCoverage.mjs +1 -0
  173. package/dist/api/types/UsageCoverageResponse.d.mts +6 -0
  174. package/dist/api/types/UsageCoverageResponse.d.ts +6 -0
  175. package/dist/api/types/UsageCoverageResponse.js +17 -0
  176. package/dist/api/types/UsageCoverageResponse.mjs +1 -0
  177. package/dist/api/types/UsageCoverageWindow.d.mts +8 -0
  178. package/dist/api/types/UsageCoverageWindow.d.ts +8 -0
  179. package/dist/api/types/UsageCoverageWindow.js +17 -0
  180. package/dist/api/types/UsageCoverageWindow.mjs +1 -0
  181. package/dist/api/types/UseMeasured.d.mts +9 -0
  182. package/dist/api/types/UseMeasured.d.ts +9 -0
  183. package/dist/api/types/UseMeasured.js +17 -0
  184. package/dist/api/types/UseMeasured.mjs +1 -0
  185. package/dist/api/types/UtilizationTarget.d.mts +34 -4
  186. package/dist/api/types/UtilizationTarget.d.ts +34 -4
  187. package/dist/api/types/UtilizationTarget.js +14 -1
  188. package/dist/api/types/UtilizationTarget.mjs +14 -1
  189. package/dist/api/types/VolumeItem.d.mts +23 -1
  190. package/dist/api/types/VolumeItem.d.ts +23 -1
  191. package/dist/api/types/VolumeItem.js +22 -0
  192. package/dist/api/types/VolumeItem.mjs +14 -0
  193. package/dist/api/types/Waste.d.mts +6 -2
  194. package/dist/api/types/Waste.d.ts +6 -2
  195. package/dist/api/types/WasteDay.d.mts +2 -0
  196. package/dist/api/types/WasteDay.d.ts +2 -0
  197. package/dist/api/types/WasteTotal.d.mts +4 -2
  198. package/dist/api/types/WasteTotal.d.ts +4 -2
  199. package/dist/api/types/WorkloadDay.d.mts +7 -0
  200. package/dist/api/types/WorkloadDay.d.ts +7 -0
  201. package/dist/api/types/WorkloadDetail.d.mts +8 -0
  202. package/dist/api/types/WorkloadDetail.d.ts +8 -0
  203. package/dist/api/types/WorkloadFacets.d.mts +4 -0
  204. package/dist/api/types/WorkloadFacets.d.ts +4 -0
  205. package/dist/api/types/WorkloadItem.d.mts +38 -0
  206. package/dist/api/types/WorkloadItem.d.ts +38 -0
  207. package/dist/api/types/WorkloadItem.js +20 -0
  208. package/dist/api/types/WorkloadItem.mjs +20 -0
  209. package/dist/api/types/WorkloadListItem.d.mts +38 -0
  210. package/dist/api/types/WorkloadListItem.d.ts +38 -0
  211. package/dist/api/types/WorkloadListItem.js +20 -0
  212. package/dist/api/types/WorkloadListItem.mjs +20 -0
  213. package/dist/api/types/index.d.mts +12 -0
  214. package/dist/api/types/index.d.ts +12 -0
  215. package/dist/api/types/index.js +24 -0
  216. package/dist/api/types/index.mjs +12 -0
  217. package/dist/version.d.mts +1 -1
  218. package/dist/version.d.ts +1 -1
  219. package/dist/version.js +1 -1
  220. package/dist/version.mjs +1 -1
  221. package/package.json +1 -1
@@ -80,6 +80,7 @@ export declare namespace AutomationAction {
80
80
  readonly WeeklyCap: "weekly_cap";
81
81
  readonly TooSoon: "too_soon";
82
82
  readonly RolloutInProgress: "rollout_in_progress";
83
+ readonly OtherRightsizer: "other_rightsizer";
83
84
  };
84
85
  type RefusalReason = (typeof RefusalReason)[keyof typeof RefusalReason];
85
86
  }
@@ -80,6 +80,7 @@ export declare namespace AutomationAction {
80
80
  readonly WeeklyCap: "weekly_cap";
81
81
  readonly TooSoon: "too_soon";
82
82
  readonly RolloutInProgress: "rollout_in_progress";
83
+ readonly OtherRightsizer: "other_rightsizer";
83
84
  };
84
85
  type RefusalReason = (typeof RefusalReason)[keyof typeof RefusalReason];
85
86
  }
@@ -82,7 +82,8 @@ var AutomationAction;
82
82
  DailyCap: "daily_cap",
83
83
  WeeklyCap: "weekly_cap",
84
84
  TooSoon: "too_soon",
85
- RolloutInProgress: "rollout_in_progress"
85
+ RolloutInProgress: "rollout_in_progress",
86
+ OtherRightsizer: "other_rightsizer"
86
87
  };
87
88
  })(AutomationAction || (AutomationAction = {}));
88
89
  // Annotate the CommonJS export names for ESM import in node:
@@ -59,7 +59,8 @@ var AutomationAction;
59
59
  DailyCap: "daily_cap",
60
60
  WeeklyCap: "weekly_cap",
61
61
  TooSoon: "too_soon",
62
- RolloutInProgress: "rollout_in_progress"
62
+ RolloutInProgress: "rollout_in_progress",
63
+ OtherRightsizer: "other_rightsizer"
63
64
  };
64
65
  })(AutomationAction || (AutomationAction = {}));
65
66
  export {
@@ -1,5 +1,5 @@
1
1
  export interface BlockerTotals {
2
- /** Nodes at least one pod holds */
2
+ /** Nodes at least one pod holds, of those an autoscaler that consolidates removes: a NodePool's node, or a node group's while Cluster Autoscaler runs */
3
3
  nodes_held: number;
4
4
  /** Pods that hold their node; static pods do not */
5
5
  pods_held: number;
@@ -15,4 +15,22 @@ export interface BlockerTotals {
15
15
  unhealthy_monthly_cost?: (number | null) | undefined;
16
16
  /** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
17
17
  unhealthy_monthly_cost_net?: (number | null) | undefined;
18
+ /** Held nodes that would go once every pod holding them is freed (node_would_free true) */
19
+ nodes_would_free?: number | undefined;
20
+ /** Of those, the ones neither their own bill nor a rate prices */
21
+ nodes_would_free_unpriced?: number | undefined;
22
+ /** What the nodes that would go cost a month, the priced ones; null when none is priced */
23
+ would_free_monthly_cost?: (number | null) | undefined;
24
+ /** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
25
+ would_free_monthly_cost_net?: (number | null) | undefined;
26
+ /** Held nodes that would stay once their blockers clear, each with its node_kept_reason */
27
+ nodes_kept?: number | undefined;
28
+ /** Of those, the ones neither their own bill nor a rate prices */
29
+ nodes_kept_unpriced?: number | undefined;
30
+ /** What the nodes that would stay cost a month, the priced ones; null when none is priced */
31
+ kept_monthly_cost?: (number | null) | undefined;
32
+ /** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
33
+ kept_monthly_cost_net?: (number | null) | undefined;
34
+ /** Held nodes whose answer is not known, each with its node_not_known_reason; with nodes_would_free and nodes_kept they make nodes_held */
35
+ nodes_not_known?: number | undefined;
18
36
  }
@@ -1,5 +1,5 @@
1
1
  export interface BlockerTotals {
2
- /** Nodes at least one pod holds */
2
+ /** Nodes at least one pod holds, of those an autoscaler that consolidates removes: a NodePool's node, or a node group's while Cluster Autoscaler runs */
3
3
  nodes_held: number;
4
4
  /** Pods that hold their node; static pods do not */
5
5
  pods_held: number;
@@ -15,4 +15,22 @@ export interface BlockerTotals {
15
15
  unhealthy_monthly_cost?: (number | null) | undefined;
16
16
  /** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
17
17
  unhealthy_monthly_cost_net?: (number | null) | undefined;
18
+ /** Held nodes that would go once every pod holding them is freed (node_would_free true) */
19
+ nodes_would_free?: number | undefined;
20
+ /** Of those, the ones neither their own bill nor a rate prices */
21
+ nodes_would_free_unpriced?: number | undefined;
22
+ /** What the nodes that would go cost a month, the priced ones; null when none is priced */
23
+ would_free_monthly_cost?: (number | null) | undefined;
24
+ /** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
25
+ would_free_monthly_cost_net?: (number | null) | undefined;
26
+ /** Held nodes that would stay once their blockers clear, each with its node_kept_reason */
27
+ nodes_kept?: number | undefined;
28
+ /** Of those, the ones neither their own bill nor a rate prices */
29
+ nodes_kept_unpriced?: number | undefined;
30
+ /** What the nodes that would stay cost a month, the priced ones; null when none is priced */
31
+ kept_monthly_cost?: (number | null) | undefined;
32
+ /** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
33
+ kept_monthly_cost_net?: (number | null) | undefined;
34
+ /** Held nodes whose answer is not known, each with its node_not_known_reason; with nodes_would_free and nodes_kept they make nodes_held */
35
+ nodes_not_known?: number | undefined;
18
36
  }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The rate the tenant's bill charged for a volume type's storage, which AWS bills by the GiB-month (it writes
3
+ * GB-Mo), and what a claim's capacity comes to a month at it.
4
+ */
5
+ export interface ClaimBillRate {
6
+ /** The type the claim's StorageClass provisions, such as gp3 */
7
+ volume_type: string;
8
+ /** Before the enterprise discount */
9
+ per_gib_month: number;
10
+ /** After the discount lines of the same usage type */
11
+ per_gib_month_net: number;
12
+ /** The claim's capacity at per_gib_month */
13
+ monthly_cost: number;
14
+ monthly_cost_net: number;
15
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The rate the tenant's bill charged for a volume type's storage, which AWS bills by the GiB-month (it writes
3
+ * GB-Mo), and what a claim's capacity comes to a month at it.
4
+ */
5
+ export interface ClaimBillRate {
6
+ /** The type the claim's StorageClass provisions, such as gp3 */
7
+ volume_type: string;
8
+ /** Before the enterprise discount */
9
+ per_gib_month: number;
10
+ /** After the discount lines of the same usage type */
11
+ per_gib_month_net: number;
12
+ /** The claim's capacity at per_gib_month */
13
+ monthly_cost: number;
14
+ monthly_cost_net: number;
15
+ }
@@ -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 ClaimBillRate_exports = {};
16
+ module.exports = __toCommonJS(ClaimBillRate_exports);
17
+ //# sourceMappingURL=ClaimBillRate.js.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=ClaimBillRate.mjs.map
@@ -14,6 +14,7 @@ export declare namespace ClusterFilterOptions {
14
14
  const Item: {
15
15
  readonly Pending: "pending";
16
16
  readonly Active: "active";
17
+ readonly Degraded: "degraded";
17
18
  readonly Stale: "stale";
18
19
  readonly Agentless: "agentless";
19
20
  };
@@ -14,6 +14,7 @@ export declare namespace ClusterFilterOptions {
14
14
  const Item: {
15
15
  readonly Pending: "pending";
16
16
  readonly Active: "active";
17
+ readonly Degraded: "degraded";
17
18
  readonly Stale: "stale";
18
19
  readonly Agentless: "agentless";
19
20
  };
@@ -28,6 +28,7 @@ var ClusterFilterOptions;
28
28
  Statuses2.Item = {
29
29
  Pending: "pending",
30
30
  Active: "active",
31
+ Degraded: "degraded",
31
32
  Stale: "stale",
32
33
  Agentless: "agentless"
33
34
  };
@@ -5,6 +5,7 @@ var ClusterFilterOptions;
5
5
  Statuses2.Item = {
6
6
  Pending: "pending",
7
7
  Active: "active",
8
+ Degraded: "degraded",
8
9
  Stale: "stale",
9
10
  Agentless: "agentless"
10
11
  };
@@ -5,7 +5,7 @@ export interface ClusterHealth {
5
5
  score: number;
6
6
  /** 1 less the share of container cost wasted, 0 to 1 */
7
7
  efficiency?: (number | null) | undefined;
8
- /** 1 less the share of workloads at risk, a medium risk counting half a high one, 0 to 1 */
8
+ /** 1 less the share of workloads at high or medium risk, a medium one counting half, 0 to 1 */
9
9
  reliability?: (number | null) | undefined;
10
10
  /** Share of current containers with CPU and memory requests and a memory limit, 0 to 1 */
11
11
  hygiene?: (number | null) | undefined;
@@ -5,7 +5,7 @@ export interface ClusterHealth {
5
5
  score: number;
6
6
  /** 1 less the share of container cost wasted, 0 to 1 */
7
7
  efficiency?: (number | null) | undefined;
8
- /** 1 less the share of workloads at risk, a medium risk counting half a high one, 0 to 1 */
8
+ /** 1 less the share of workloads at high or medium risk, a medium one counting half, 0 to 1 */
9
9
  reliability?: (number | null) | undefined;
10
10
  /** Share of current containers with CPU and memory requests and a memory limit, 0 to 1 */
11
11
  hygiene?: (number | null) | undefined;
@@ -13,7 +13,7 @@ export interface ClusterItem {
13
13
  k8s_version?: (string | null) | undefined;
14
14
  agent_version?: (string | null) | undefined;
15
15
  metrics_source?: (string | null) | undefined;
16
- /** stale when the agent has not sent a heartbeat for 15 minutes; agentless for a cluster only the bill names, priced per namespace without the agent */
16
+ /** stale when the agent has not sent a heartbeat for 15 minutes; degraded when it reports, and at its last heartbeat its kubelet collector could not read usage from some nodes; agentless for a cluster only the bill names, priced per namespace without the agent */
17
17
  status: ClusterItem.Status;
18
18
  /** agent, or the bill that found it: EKS split cost allocation or GKE cost allocation */
19
19
  source?: ClusterItem.Source | undefined;
@@ -34,12 +34,13 @@ export interface ClusterItem {
34
34
  cpu: LevelFour.ResourceCapacity;
35
35
  /** Bytes, as of the latest batch */
36
36
  memory: LevelFour.ResourceCapacity;
37
+ /** What the cluster cost: its nodes, idle included, plus its volume claims and data transfer on a day the bill priced one of its nodes, as /spend adds its days up */
37
38
  cost?: (number | null) | undefined;
38
39
  /** What the containers' CPU cost over the window, idle not included, as category cpu splits it */
39
40
  cpu_cost?: (number | null) | undefined;
40
41
  /** The same for memory, as category memory splits it */
41
42
  memory_cost?: (number | null) | undefined;
42
- /** What its volume claims cost over the window */
43
+ /** What its volume claims cost over the window, on a day the bill priced one of its nodes */
43
44
  storage_cost?: (number | null) | undefined;
44
45
  /** What its open published recommendations would save a month; null with none open */
45
46
  potential_savings_monthly?: (number | null) | undefined;
@@ -55,13 +56,17 @@ export interface ClusterItem {
55
56
  efficiency?: (number | null) | undefined;
56
57
  cost_basis: ClusterItem.CostBasis;
57
58
  priced_through?: (string | null) | undefined;
59
+ /** priced when a day of the window is priced from the bill. awaiting_bill when none is yet but the bill of the cluster's cloud (AWS, GCP or Azure) holds a day from the last 3 days, so its days are on the way; a cluster no bill has priced yet stops waiting once that bill holds the second day after it connected. no_account when no bill of its cloud is arriving, or that bill has passed the cluster's first days without naming its nodes */
60
+ bill_status: ClusterItem.BillStatus;
61
+ /** While awaiting_bill, the day the first priced day should show: 2 days after the later of the bill's last day and the day the cluster connected, since a bill runs a day or two behind. Null otherwise */
62
+ bill_expected_by?: (string | null) | undefined;
58
63
  /** Its node cost against the previous window of equal length */
59
64
  cost_change_pct?: (number | null) | undefined;
60
65
  waste: LevelFour.Waste;
61
- /** The nodes' own traffic, and the data transfer billed to the cluster */
66
+ /** The pods' traffic, as the Network lens counts it, and the data transfer billed to the cluster */
62
67
  network: LevelFour.Traffic;
63
68
  reliability: LevelFour.NamespaceReliability;
64
- /** Current workloads whose indicators put them at risk */
69
+ /** Current workloads at high risk: an OOM kill, an eviction or no ready replica. Medium and low never count. An ephemeral one, a pull-request environment, counts only with include_ephemeral */
65
70
  workloads_at_risk: number;
66
71
  /** Null until the cluster has workloads or a priced day */
67
72
  health?: (LevelFour.ClusterHealth | null) | undefined;
@@ -72,10 +77,11 @@ export interface ClusterItem {
72
77
  co2e_method?: (LevelFour.Co2EMethod | null) | undefined;
73
78
  }
74
79
  export declare namespace ClusterItem {
75
- /** stale when the agent has not sent a heartbeat for 15 minutes; agentless for a cluster only the bill names, priced per namespace without the agent */
80
+ /** stale when the agent has not sent a heartbeat for 15 minutes; degraded when it reports, and at its last heartbeat its kubelet collector could not read usage from some nodes; agentless for a cluster only the bill names, priced per namespace without the agent */
76
81
  const Status: {
77
82
  readonly Pending: "pending";
78
83
  readonly Active: "active";
84
+ readonly Degraded: "degraded";
79
85
  readonly Stale: "stale";
80
86
  readonly Agentless: "agentless";
81
87
  };
@@ -97,4 +103,11 @@ export declare namespace ClusterItem {
97
103
  readonly None: "none";
98
104
  };
99
105
  type CostBasis = (typeof CostBasis)[keyof typeof CostBasis];
106
+ /** priced when a day of the window is priced from the bill. awaiting_bill when none is yet but the bill of the cluster's cloud (AWS, GCP or Azure) holds a day from the last 3 days, so its days are on the way; a cluster no bill has priced yet stops waiting once that bill holds the second day after it connected. no_account when no bill of its cloud is arriving, or that bill has passed the cluster's first days without naming its nodes */
107
+ const BillStatus: {
108
+ readonly Priced: "priced";
109
+ readonly AwaitingBill: "awaiting_bill";
110
+ readonly NoAccount: "no_account";
111
+ };
112
+ type BillStatus = (typeof BillStatus)[keyof typeof BillStatus];
100
113
  }
@@ -13,7 +13,7 @@ export interface ClusterItem {
13
13
  k8s_version?: (string | null) | undefined;
14
14
  agent_version?: (string | null) | undefined;
15
15
  metrics_source?: (string | null) | undefined;
16
- /** stale when the agent has not sent a heartbeat for 15 minutes; agentless for a cluster only the bill names, priced per namespace without the agent */
16
+ /** stale when the agent has not sent a heartbeat for 15 minutes; degraded when it reports, and at its last heartbeat its kubelet collector could not read usage from some nodes; agentless for a cluster only the bill names, priced per namespace without the agent */
17
17
  status: ClusterItem.Status;
18
18
  /** agent, or the bill that found it: EKS split cost allocation or GKE cost allocation */
19
19
  source?: ClusterItem.Source | undefined;
@@ -34,12 +34,13 @@ export interface ClusterItem {
34
34
  cpu: LevelFour.ResourceCapacity;
35
35
  /** Bytes, as of the latest batch */
36
36
  memory: LevelFour.ResourceCapacity;
37
+ /** What the cluster cost: its nodes, idle included, plus its volume claims and data transfer on a day the bill priced one of its nodes, as /spend adds its days up */
37
38
  cost?: (number | null) | undefined;
38
39
  /** What the containers' CPU cost over the window, idle not included, as category cpu splits it */
39
40
  cpu_cost?: (number | null) | undefined;
40
41
  /** The same for memory, as category memory splits it */
41
42
  memory_cost?: (number | null) | undefined;
42
- /** What its volume claims cost over the window */
43
+ /** What its volume claims cost over the window, on a day the bill priced one of its nodes */
43
44
  storage_cost?: (number | null) | undefined;
44
45
  /** What its open published recommendations would save a month; null with none open */
45
46
  potential_savings_monthly?: (number | null) | undefined;
@@ -55,13 +56,17 @@ export interface ClusterItem {
55
56
  efficiency?: (number | null) | undefined;
56
57
  cost_basis: ClusterItem.CostBasis;
57
58
  priced_through?: (string | null) | undefined;
59
+ /** priced when a day of the window is priced from the bill. awaiting_bill when none is yet but the bill of the cluster's cloud (AWS, GCP or Azure) holds a day from the last 3 days, so its days are on the way; a cluster no bill has priced yet stops waiting once that bill holds the second day after it connected. no_account when no bill of its cloud is arriving, or that bill has passed the cluster's first days without naming its nodes */
60
+ bill_status: ClusterItem.BillStatus;
61
+ /** While awaiting_bill, the day the first priced day should show: 2 days after the later of the bill's last day and the day the cluster connected, since a bill runs a day or two behind. Null otherwise */
62
+ bill_expected_by?: (string | null) | undefined;
58
63
  /** Its node cost against the previous window of equal length */
59
64
  cost_change_pct?: (number | null) | undefined;
60
65
  waste: LevelFour.Waste;
61
- /** The nodes' own traffic, and the data transfer billed to the cluster */
66
+ /** The pods' traffic, as the Network lens counts it, and the data transfer billed to the cluster */
62
67
  network: LevelFour.Traffic;
63
68
  reliability: LevelFour.NamespaceReliability;
64
- /** Current workloads whose indicators put them at risk */
69
+ /** Current workloads at high risk: an OOM kill, an eviction or no ready replica. Medium and low never count. An ephemeral one, a pull-request environment, counts only with include_ephemeral */
65
70
  workloads_at_risk: number;
66
71
  /** Null until the cluster has workloads or a priced day */
67
72
  health?: (LevelFour.ClusterHealth | null) | undefined;
@@ -72,10 +77,11 @@ export interface ClusterItem {
72
77
  co2e_method?: (LevelFour.Co2EMethod | null) | undefined;
73
78
  }
74
79
  export declare namespace ClusterItem {
75
- /** stale when the agent has not sent a heartbeat for 15 minutes; agentless for a cluster only the bill names, priced per namespace without the agent */
80
+ /** stale when the agent has not sent a heartbeat for 15 minutes; degraded when it reports, and at its last heartbeat its kubelet collector could not read usage from some nodes; agentless for a cluster only the bill names, priced per namespace without the agent */
76
81
  const Status: {
77
82
  readonly Pending: "pending";
78
83
  readonly Active: "active";
84
+ readonly Degraded: "degraded";
79
85
  readonly Stale: "stale";
80
86
  readonly Agentless: "agentless";
81
87
  };
@@ -97,4 +103,11 @@ export declare namespace ClusterItem {
97
103
  readonly None: "none";
98
104
  };
99
105
  type CostBasis = (typeof CostBasis)[keyof typeof CostBasis];
106
+ /** priced when a day of the window is priced from the bill. awaiting_bill when none is yet but the bill of the cluster's cloud (AWS, GCP or Azure) holds a day from the last 3 days, so its days are on the way; a cluster no bill has priced yet stops waiting once that bill holds the second day after it connected. no_account when no bill of its cloud is arriving, or that bill has passed the cluster's first days without naming its nodes */
107
+ const BillStatus: {
108
+ readonly Priced: "priced";
109
+ readonly AwaitingBill: "awaiting_bill";
110
+ readonly NoAccount: "no_account";
111
+ };
112
+ type BillStatus = (typeof BillStatus)[keyof typeof BillStatus];
100
113
  }
@@ -26,6 +26,7 @@ var ClusterItem;
26
26
  ClusterItem2.Status = {
27
27
  Pending: "pending",
28
28
  Active: "active",
29
+ Degraded: "degraded",
29
30
  Stale: "stale",
30
31
  Agentless: "agentless"
31
32
  };
@@ -43,6 +44,11 @@ var ClusterItem;
43
44
  Pending: "pending",
44
45
  None: "none"
45
46
  };
47
+ ClusterItem2.BillStatus = {
48
+ Priced: "priced",
49
+ AwaitingBill: "awaiting_bill",
50
+ NoAccount: "no_account"
51
+ };
46
52
  })(ClusterItem || (ClusterItem = {}));
47
53
  // Annotate the CommonJS export names for ESM import in node:
48
54
  0 && (module.exports = {
@@ -3,6 +3,7 @@ var ClusterItem;
3
3
  ClusterItem2.Status = {
4
4
  Pending: "pending",
5
5
  Active: "active",
6
+ Degraded: "degraded",
6
7
  Stale: "stale",
7
8
  Agentless: "agentless"
8
9
  };
@@ -20,6 +21,11 @@ var ClusterItem;
20
21
  Pending: "pending",
21
22
  None: "none"
22
23
  };
24
+ ClusterItem2.BillStatus = {
25
+ Priced: "priced",
26
+ AwaitingBill: "awaiting_bill",
27
+ NoAccount: "no_account"
28
+ };
23
29
  })(ClusterItem || (ClusterItem = {}));
24
30
  export {
25
31
  ClusterItem
@@ -1,5 +1,6 @@
1
1
  import type * as LevelFour from "../index.mjs";
2
2
  export interface ClusterSummary {
3
+ /** The cluster's cost, as the clusters list reads it */
3
4
  total_cost?: (number | null) | undefined;
4
5
  idle_cost?: (number | null) | undefined;
5
6
  idle_share?: (number | null) | undefined;
@@ -17,8 +18,12 @@ export interface ClusterSummary {
17
18
  cost_basis: ClusterSummary.CostBasis;
18
19
  /** The last day the customer's bill priced */
19
20
  priced_through?: (string | null) | undefined;
21
+ /** priced when a day of the window is priced from the bill. awaiting_bill when none is yet but the bill of the cluster's cloud (AWS, GCP or Azure) holds a day from the last 3 days, so its days are on the way; a cluster no bill has priced yet stops waiting once that bill holds the second day after it connected. no_account when no bill of its cloud is arriving, or that bill has passed the cluster's first days without naming its nodes */
22
+ bill_status: ClusterSummary.BillStatus;
23
+ /** While awaiting_bill, the day the first priced day should show: 2 days after the later of the bill's last day and the day the cluster connected, since a bill runs a day or two behind. Null otherwise */
24
+ bill_expected_by?: (string | null) | undefined;
20
25
  nodes_by_purchase_type: LevelFour.PurchaseTypeShare[];
21
- /** Current workloads whose risk is not none: an OOM kill, a restart or a throttled hour in the window, or a container without a CPU or memory request */
26
+ /** Current workloads at high risk: an OOM kill, an eviction or no ready replica. Medium and low never count. An ephemeral one, a pull-request environment, counts only with include_ephemeral */
22
27
  workloads_at_risk: number;
23
28
  /** Pods Pending on average in the latest hour the agent reported */
24
29
  pods_pending?: (number | null) | undefined;
@@ -34,7 +39,11 @@ export interface ClusterSummary {
34
39
  pods: LevelFour.PodPhases;
35
40
  /** Current workloads by kind: Deployment, StatefulSet, DaemonSet and so on */
36
41
  workloads_by_kind?: Record<string, number> | undefined;
42
+ /** The namespaces the current workloads run in */
43
+ workload_namespace_count?: number | undefined;
37
44
  autoscalers: LevelFour.AutoscalerCounts;
45
+ /** Current Deployments and StatefulSets no HPA and no KEDA scales, which run a fixed replica count, as the workloads list's autoscaling=fixed keeps them; a VPA alone leaves the count fixed */
46
+ fixed_replica_count?: number | undefined;
38
47
  compute: LevelFour.ComputeMonth;
39
48
  /** The 95th percentile of the cluster's hourly CPU use over the window: each hour, what its nodes used on average, weighed by the part of the hour each was up */
40
49
  cpu_used_p95_milli?: (number | null) | undefined;
@@ -52,4 +61,11 @@ export declare namespace ClusterSummary {
52
61
  readonly None: "none";
53
62
  };
54
63
  type CostBasis = (typeof CostBasis)[keyof typeof CostBasis];
64
+ /** priced when a day of the window is priced from the bill. awaiting_bill when none is yet but the bill of the cluster's cloud (AWS, GCP or Azure) holds a day from the last 3 days, so its days are on the way; a cluster no bill has priced yet stops waiting once that bill holds the second day after it connected. no_account when no bill of its cloud is arriving, or that bill has passed the cluster's first days without naming its nodes */
65
+ const BillStatus: {
66
+ readonly Priced: "priced";
67
+ readonly AwaitingBill: "awaiting_bill";
68
+ readonly NoAccount: "no_account";
69
+ };
70
+ type BillStatus = (typeof BillStatus)[keyof typeof BillStatus];
55
71
  }
@@ -1,5 +1,6 @@
1
1
  import type * as LevelFour from "../index.js";
2
2
  export interface ClusterSummary {
3
+ /** The cluster's cost, as the clusters list reads it */
3
4
  total_cost?: (number | null) | undefined;
4
5
  idle_cost?: (number | null) | undefined;
5
6
  idle_share?: (number | null) | undefined;
@@ -17,8 +18,12 @@ export interface ClusterSummary {
17
18
  cost_basis: ClusterSummary.CostBasis;
18
19
  /** The last day the customer's bill priced */
19
20
  priced_through?: (string | null) | undefined;
21
+ /** priced when a day of the window is priced from the bill. awaiting_bill when none is yet but the bill of the cluster's cloud (AWS, GCP or Azure) holds a day from the last 3 days, so its days are on the way; a cluster no bill has priced yet stops waiting once that bill holds the second day after it connected. no_account when no bill of its cloud is arriving, or that bill has passed the cluster's first days without naming its nodes */
22
+ bill_status: ClusterSummary.BillStatus;
23
+ /** While awaiting_bill, the day the first priced day should show: 2 days after the later of the bill's last day and the day the cluster connected, since a bill runs a day or two behind. Null otherwise */
24
+ bill_expected_by?: (string | null) | undefined;
20
25
  nodes_by_purchase_type: LevelFour.PurchaseTypeShare[];
21
- /** Current workloads whose risk is not none: an OOM kill, a restart or a throttled hour in the window, or a container without a CPU or memory request */
26
+ /** Current workloads at high risk: an OOM kill, an eviction or no ready replica. Medium and low never count. An ephemeral one, a pull-request environment, counts only with include_ephemeral */
22
27
  workloads_at_risk: number;
23
28
  /** Pods Pending on average in the latest hour the agent reported */
24
29
  pods_pending?: (number | null) | undefined;
@@ -34,7 +39,11 @@ export interface ClusterSummary {
34
39
  pods: LevelFour.PodPhases;
35
40
  /** Current workloads by kind: Deployment, StatefulSet, DaemonSet and so on */
36
41
  workloads_by_kind?: Record<string, number> | undefined;
42
+ /** The namespaces the current workloads run in */
43
+ workload_namespace_count?: number | undefined;
37
44
  autoscalers: LevelFour.AutoscalerCounts;
45
+ /** Current Deployments and StatefulSets no HPA and no KEDA scales, which run a fixed replica count, as the workloads list's autoscaling=fixed keeps them; a VPA alone leaves the count fixed */
46
+ fixed_replica_count?: number | undefined;
38
47
  compute: LevelFour.ComputeMonth;
39
48
  /** The 95th percentile of the cluster's hourly CPU use over the window: each hour, what its nodes used on average, weighed by the part of the hour each was up */
40
49
  cpu_used_p95_milli?: (number | null) | undefined;
@@ -52,4 +61,11 @@ export declare namespace ClusterSummary {
52
61
  readonly None: "none";
53
62
  };
54
63
  type CostBasis = (typeof CostBasis)[keyof typeof CostBasis];
64
+ /** priced when a day of the window is priced from the bill. awaiting_bill when none is yet but the bill of the cluster's cloud (AWS, GCP or Azure) holds a day from the last 3 days, so its days are on the way; a cluster no bill has priced yet stops waiting once that bill holds the second day after it connected. no_account when no bill of its cloud is arriving, or that bill has passed the cluster's first days without naming its nodes */
65
+ const BillStatus: {
66
+ readonly Priced: "priced";
67
+ readonly AwaitingBill: "awaiting_bill";
68
+ readonly NoAccount: "no_account";
69
+ };
70
+ type BillStatus = (typeof BillStatus)[keyof typeof BillStatus];
55
71
  }
@@ -32,6 +32,11 @@ var ClusterSummary;
32
32
  Pending: "pending",
33
33
  None: "none"
34
34
  };
35
+ ClusterSummary2.BillStatus = {
36
+ Priced: "priced",
37
+ AwaitingBill: "awaiting_bill",
38
+ NoAccount: "no_account"
39
+ };
35
40
  })(ClusterSummary || (ClusterSummary = {}));
36
41
  // Annotate the CommonJS export names for ESM import in node:
37
42
  0 && (module.exports = {
@@ -9,6 +9,11 @@ var ClusterSummary;
9
9
  Pending: "pending",
10
10
  None: "none"
11
11
  };
12
+ ClusterSummary2.BillStatus = {
13
+ Priced: "priced",
14
+ AwaitingBill: "awaiting_bill",
15
+ NoAccount: "no_account"
16
+ };
12
17
  })(ClusterSummary || (ClusterSummary = {}));
13
18
  export {
14
19
  ClusterSummary
@@ -1,6 +1,6 @@
1
1
  export interface ClusterUsageDay {
2
2
  day: string;
3
- /** Hours the cluster reported that day; the figures average over them */
3
+ /** Hours the agent watched the cluster that day; the figures average over them */
4
4
  hours: number;
5
5
  cpu_allocatable_milli?: (number | null) | undefined;
6
6
  cpu_requested_milli?: (number | null) | undefined;
@@ -1,6 +1,6 @@
1
1
  export interface ClusterUsageDay {
2
2
  day: string;
3
- /** Hours the cluster reported that day; the figures average over them */
3
+ /** Hours the agent watched the cluster that day; the figures average over them */
4
4
  hours: number;
5
5
  cpu_allocatable_milli?: (number | null) | undefined;
6
6
  cpu_requested_milli?: (number | null) | undefined;
@@ -1,10 +1,11 @@
1
1
  /**
2
- * What the nodes cost alone, without storage or data transfer, by the purchase types /spend stacks.
2
+ * Compute alone, without storage or data transfer, by the purchase types /spend stacks: a fleet's or a cluster's
3
+ * nodes, a namespace's or a workload's containers.
3
4
  */
4
5
  export interface ComputeMonth {
5
6
  /** This month through yesterday */
6
7
  mtd?: (number | null) | undefined;
7
8
  last_month?: (number | null) | undefined;
8
- /** Month to date plus the average of the last seven complete days for each day left */
9
+ /** Month to date plus, for each cluster, its pace for every day after the last one the bill priced: the average of the last seven complete days the bill priced and its agent watched in every hour. Null while a cluster the bill priced in the last week has fewer than three such days */
9
10
  forecast_month?: (number | null) | undefined;
10
11
  }
@@ -1,10 +1,11 @@
1
1
  /**
2
- * What the nodes cost alone, without storage or data transfer, by the purchase types /spend stacks.
2
+ * Compute alone, without storage or data transfer, by the purchase types /spend stacks: a fleet's or a cluster's
3
+ * nodes, a namespace's or a workload's containers.
3
4
  */
4
5
  export interface ComputeMonth {
5
6
  /** This month through yesterday */
6
7
  mtd?: (number | null) | undefined;
7
8
  last_month?: (number | null) | undefined;
8
- /** Month to date plus the average of the last seven complete days for each day left */
9
+ /** Month to date plus, for each cluster, its pace for every day after the last one the bill priced: the average of the last seven complete days the bill priced and its agent watched in every hour. Null while a cluster the bill priced in the last week has fewer than three such days */
9
10
  forecast_month?: (number | null) | undefined;
10
11
  }
@@ -25,6 +25,12 @@ export interface ConsolidationBlocker {
25
25
  node_monthly_cost_net?: (number | null) | undefined;
26
26
  /** node_bill: the node's own bill. bill_rate: the bill's rate for its instance type */
27
27
  node_priced_by?: (ConsolidationBlocker.NodePricedBy | null) | undefined;
28
+ /** Whether its node would go once every pod holding it is freed: every pod that would have to move finds a node that takes it, and its NodePool lets Karpenter remove a node that is not empty, or Cluster Autoscaler's threshold lets it remove a node group's node. Worked out at ingest from the batch's snapshot. Null for a node no pod holds, and for one whose answer is not known (node_not_known_reason) */
29
+ node_would_free?: (boolean | null) | undefined;
30
+ /** Why its node would stay once its blockers clear, set only when node_would_free is false. pods_need_room: a pod that would have to move finds no node to take it, placed largest first by CPU and memory requests on a ready, schedulable node with a pod slot free whose selector, affinity, taints, anti-affinity and spread let it run there, within its own zone when its workload mounts a claim, after the pending pods and those of nodes being deleted. pool_removes_only_empty: its NodePool's consolidationPolicy is WhenEmpty. pool_never_consolidates: its NodePool's consolidateAfter is Never. autoscaler_threshold: a node group's node whose pods request half its CPU or memory or more, which Cluster Autoscaler's default scale-down threshold keeps */
31
+ node_kept_reason?: (ConsolidationBlocker.NodeKeptReason | null) | undefined;
32
+ /** Why it is not known whether its held node would go, set only when node_would_free is null on a held node. pool_not_reported: the agent did not report its NodePool. budget_not_reported: a disruption budget of its NodePool allows 0 nodes, and Karpenter applies the most restrictive budget active while the agent does not send the reasons or schedule a budget applies to. not_worked_out: no batch since the node was held worked it out, or working it out ran past the work budget or failed */
33
+ node_not_known_reason?: (ConsolidationBlocker.NodeNotKnownReason | null) | undefined;
28
34
  }
29
35
  export declare namespace ConsolidationBlocker {
30
36
  /** karpenter when the node belongs to a NodePool */
@@ -38,4 +44,17 @@ export declare namespace ConsolidationBlocker {
38
44
  readonly BillRate: "bill_rate";
39
45
  };
40
46
  type NodePricedBy = (typeof NodePricedBy)[keyof typeof NodePricedBy];
47
+ const NodeKeptReason: {
48
+ readonly PodsNeedRoom: "pods_need_room";
49
+ readonly PoolRemovesOnlyEmpty: "pool_removes_only_empty";
50
+ readonly PoolNeverConsolidates: "pool_never_consolidates";
51
+ readonly AutoscalerThreshold: "autoscaler_threshold";
52
+ };
53
+ type NodeKeptReason = (typeof NodeKeptReason)[keyof typeof NodeKeptReason];
54
+ const NodeNotKnownReason: {
55
+ readonly PoolNotReported: "pool_not_reported";
56
+ readonly BudgetNotReported: "budget_not_reported";
57
+ readonly NotWorkedOut: "not_worked_out";
58
+ };
59
+ type NodeNotKnownReason = (typeof NodeNotKnownReason)[keyof typeof NodeNotKnownReason];
41
60
  }
@@ -25,6 +25,12 @@ export interface ConsolidationBlocker {
25
25
  node_monthly_cost_net?: (number | null) | undefined;
26
26
  /** node_bill: the node's own bill. bill_rate: the bill's rate for its instance type */
27
27
  node_priced_by?: (ConsolidationBlocker.NodePricedBy | null) | undefined;
28
+ /** Whether its node would go once every pod holding it is freed: every pod that would have to move finds a node that takes it, and its NodePool lets Karpenter remove a node that is not empty, or Cluster Autoscaler's threshold lets it remove a node group's node. Worked out at ingest from the batch's snapshot. Null for a node no pod holds, and for one whose answer is not known (node_not_known_reason) */
29
+ node_would_free?: (boolean | null) | undefined;
30
+ /** Why its node would stay once its blockers clear, set only when node_would_free is false. pods_need_room: a pod that would have to move finds no node to take it, placed largest first by CPU and memory requests on a ready, schedulable node with a pod slot free whose selector, affinity, taints, anti-affinity and spread let it run there, within its own zone when its workload mounts a claim, after the pending pods and those of nodes being deleted. pool_removes_only_empty: its NodePool's consolidationPolicy is WhenEmpty. pool_never_consolidates: its NodePool's consolidateAfter is Never. autoscaler_threshold: a node group's node whose pods request half its CPU or memory or more, which Cluster Autoscaler's default scale-down threshold keeps */
31
+ node_kept_reason?: (ConsolidationBlocker.NodeKeptReason | null) | undefined;
32
+ /** Why it is not known whether its held node would go, set only when node_would_free is null on a held node. pool_not_reported: the agent did not report its NodePool. budget_not_reported: a disruption budget of its NodePool allows 0 nodes, and Karpenter applies the most restrictive budget active while the agent does not send the reasons or schedule a budget applies to. not_worked_out: no batch since the node was held worked it out, or working it out ran past the work budget or failed */
33
+ node_not_known_reason?: (ConsolidationBlocker.NodeNotKnownReason | null) | undefined;
28
34
  }
29
35
  export declare namespace ConsolidationBlocker {
30
36
  /** karpenter when the node belongs to a NodePool */
@@ -38,4 +44,17 @@ export declare namespace ConsolidationBlocker {
38
44
  readonly BillRate: "bill_rate";
39
45
  };
40
46
  type NodePricedBy = (typeof NodePricedBy)[keyof typeof NodePricedBy];
47
+ const NodeKeptReason: {
48
+ readonly PodsNeedRoom: "pods_need_room";
49
+ readonly PoolRemovesOnlyEmpty: "pool_removes_only_empty";
50
+ readonly PoolNeverConsolidates: "pool_never_consolidates";
51
+ readonly AutoscalerThreshold: "autoscaler_threshold";
52
+ };
53
+ type NodeKeptReason = (typeof NodeKeptReason)[keyof typeof NodeKeptReason];
54
+ const NodeNotKnownReason: {
55
+ readonly PoolNotReported: "pool_not_reported";
56
+ readonly BudgetNotReported: "budget_not_reported";
57
+ readonly NotWorkedOut: "not_worked_out";
58
+ };
59
+ type NodeNotKnownReason = (typeof NodeNotKnownReason)[keyof typeof NodeNotKnownReason];
41
60
  }