levelfour 1.8.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 (285) hide show
  1. package/dist/api/resources/accounts/client/Client.d.mts +34 -0
  2. package/dist/api/resources/accounts/client/Client.d.ts +34 -0
  3. package/dist/api/resources/accounts/client/Client.js +204 -0
  4. package/dist/api/resources/accounts/client/Client.mjs +204 -0
  5. package/dist/api/types/AutomationAction.d.mts +1 -0
  6. package/dist/api/types/AutomationAction.d.ts +1 -0
  7. package/dist/api/types/AutomationAction.js +2 -1
  8. package/dist/api/types/AutomationAction.mjs +2 -1
  9. package/dist/api/types/AzureSubscriptionItem.d.mts +2 -0
  10. package/dist/api/types/AzureSubscriptionItem.d.ts +2 -0
  11. package/dist/api/types/BlockerTotals.d.mts +31 -1
  12. package/dist/api/types/BlockerTotals.d.ts +31 -1
  13. package/dist/api/types/ClaimBillRate.d.mts +15 -0
  14. package/dist/api/types/ClaimBillRate.d.ts +15 -0
  15. package/dist/api/types/ClaimBillRate.js +17 -0
  16. package/dist/api/types/ClaimBillRate.mjs +1 -0
  17. package/dist/api/types/ClusterFilterOptions.d.mts +1 -0
  18. package/dist/api/types/ClusterFilterOptions.d.ts +1 -0
  19. package/dist/api/types/ClusterFilterOptions.js +1 -0
  20. package/dist/api/types/ClusterFilterOptions.mjs +1 -0
  21. package/dist/api/types/ClusterHealth.d.mts +1 -1
  22. package/dist/api/types/ClusterHealth.d.ts +1 -1
  23. package/dist/api/types/ClusterItem.d.mts +18 -5
  24. package/dist/api/types/ClusterItem.d.ts +18 -5
  25. package/dist/api/types/ClusterItem.js +6 -0
  26. package/dist/api/types/ClusterItem.mjs +6 -0
  27. package/dist/api/types/ClusterSummary.d.mts +17 -1
  28. package/dist/api/types/ClusterSummary.d.ts +17 -1
  29. package/dist/api/types/ClusterSummary.js +5 -0
  30. package/dist/api/types/ClusterSummary.mjs +5 -0
  31. package/dist/api/types/ClusterUsageDay.d.mts +1 -1
  32. package/dist/api/types/ClusterUsageDay.d.ts +1 -1
  33. package/dist/api/types/ComputeMonth.d.mts +3 -2
  34. package/dist/api/types/ComputeMonth.d.ts +3 -2
  35. package/dist/api/types/ConsolidationBlocker.d.mts +32 -0
  36. package/dist/api/types/ConsolidationBlocker.d.ts +32 -0
  37. package/dist/api/types/ConsolidationBlocker.js +15 -0
  38. package/dist/api/types/ConsolidationBlocker.mjs +15 -0
  39. package/dist/api/types/ContainerDetail.d.mts +4 -0
  40. package/dist/api/types/ContainerDetail.d.ts +4 -0
  41. package/dist/api/types/ContainerJvmDay.d.mts +20 -0
  42. package/dist/api/types/ContainerJvmDay.d.ts +20 -0
  43. package/dist/api/types/ContainerJvmDay.js +17 -0
  44. package/dist/api/types/ContainerJvmDay.mjs +1 -0
  45. package/dist/api/types/ContainerJvmMeasured.d.mts +50 -0
  46. package/dist/api/types/ContainerJvmMeasured.d.ts +50 -0
  47. package/dist/api/types/ContainerJvmMeasured.js +41 -0
  48. package/dist/api/types/ContainerJvmMeasured.mjs +17 -0
  49. package/dist/api/types/CostSeries.d.mts +3 -2
  50. package/dist/api/types/CostSeries.d.ts +3 -2
  51. package/dist/api/types/CostSeries.js +2 -1
  52. package/dist/api/types/CostSeries.mjs +2 -1
  53. package/dist/api/types/DestinationTraffic.d.mts +17 -0
  54. package/dist/api/types/DestinationTraffic.d.ts +17 -0
  55. package/dist/api/types/DestinationTraffic.js +38 -0
  56. package/dist/api/types/DestinationTraffic.mjs +14 -0
  57. package/dist/api/types/Efficiency.d.mts +6 -0
  58. package/dist/api/types/Efficiency.d.ts +6 -0
  59. package/dist/api/types/EfficiencyPoint.d.mts +1 -0
  60. package/dist/api/types/EfficiencyPoint.d.ts +1 -0
  61. package/dist/api/types/FleetNamespace.d.mts +7 -0
  62. package/dist/api/types/FleetNamespace.d.ts +7 -0
  63. package/dist/api/types/FleetNamespace.js +4 -0
  64. package/dist/api/types/FleetNamespace.mjs +4 -0
  65. package/dist/api/types/FleetNodePool.d.mts +13 -5
  66. package/dist/api/types/FleetNodePool.d.ts +13 -5
  67. package/dist/api/types/FleetStorage.d.mts +3 -0
  68. package/dist/api/types/FleetStorage.d.ts +3 -0
  69. package/dist/api/types/FleetSummary.d.mts +13 -1
  70. package/dist/api/types/FleetSummary.d.ts +13 -1
  71. package/dist/api/types/FleetSummary.js +5 -0
  72. package/dist/api/types/FleetSummary.mjs +5 -0
  73. package/dist/api/types/FleetVolume.d.mts +23 -1
  74. package/dist/api/types/FleetVolume.d.ts +23 -1
  75. package/dist/api/types/FleetVolume.js +22 -0
  76. package/dist/api/types/FleetVolume.mjs +14 -0
  77. package/dist/api/types/FleetWorkload.d.mts +9 -0
  78. package/dist/api/types/FleetWorkload.d.ts +9 -0
  79. package/dist/api/types/FleetWorkload.js +4 -0
  80. package/dist/api/types/FleetWorkload.mjs +4 -0
  81. package/dist/api/types/FleetWorkloadFacets.d.mts +5 -0
  82. package/dist/api/types/FleetWorkloadFacets.d.ts +5 -0
  83. package/dist/api/types/FleetWorkloadFacets.js +17 -0
  84. package/dist/api/types/FleetWorkloadFacets.mjs +1 -0
  85. package/dist/api/types/FleetWorkloadListData.d.mts +1 -0
  86. package/dist/api/types/FleetWorkloadListData.d.ts +1 -0
  87. package/dist/api/types/HeldResources.d.mts +23 -0
  88. package/dist/api/types/HeldResources.d.ts +23 -0
  89. package/dist/api/types/HeldResources.js +39 -0
  90. package/dist/api/types/HeldResources.mjs +15 -0
  91. package/dist/api/types/Indicator.d.mts +4 -0
  92. package/dist/api/types/Indicator.d.ts +4 -0
  93. package/dist/api/types/Indicator.js +4 -0
  94. package/dist/api/types/Indicator.mjs +4 -0
  95. package/dist/api/types/IndicatorCount.d.mts +4 -0
  96. package/dist/api/types/IndicatorCount.d.ts +4 -0
  97. package/dist/api/types/IndicatorCount.js +4 -0
  98. package/dist/api/types/IndicatorCount.mjs +4 -0
  99. package/dist/api/types/JvmFlags.d.mts +38 -0
  100. package/dist/api/types/JvmFlags.d.ts +38 -0
  101. package/dist/api/types/JvmFlags.js +41 -0
  102. package/dist/api/types/JvmFlags.mjs +17 -0
  103. package/dist/api/types/JvmMeasured.d.mts +52 -0
  104. package/dist/api/types/JvmMeasured.d.ts +52 -0
  105. package/dist/api/types/JvmMeasured.js +41 -0
  106. package/dist/api/types/JvmMeasured.mjs +17 -0
  107. package/dist/api/types/JvmReaderHealth.d.mts +8 -0
  108. package/dist/api/types/JvmReaderHealth.d.ts +8 -0
  109. package/dist/api/types/JvmReaderHealth.js +17 -0
  110. package/dist/api/types/JvmReaderHealth.mjs +1 -0
  111. package/dist/api/types/JvmReaderNodeHealth.d.mts +21 -0
  112. package/dist/api/types/JvmReaderNodeHealth.d.ts +21 -0
  113. package/dist/api/types/JvmReaderNodeHealth.js +37 -0
  114. package/dist/api/types/JvmReaderNodeHealth.mjs +13 -0
  115. package/dist/api/types/JvmReaderResponse.d.mts +6 -0
  116. package/dist/api/types/JvmReaderResponse.d.ts +6 -0
  117. package/dist/api/types/JvmReaderResponse.js +17 -0
  118. package/dist/api/types/JvmReaderResponse.mjs +1 -0
  119. package/dist/api/types/KarpenterPool.d.mts +2 -0
  120. package/dist/api/types/KarpenterPool.d.ts +2 -0
  121. package/dist/api/types/KubernetesDataAvailability.d.mts +4 -0
  122. package/dist/api/types/KubernetesDataAvailability.d.ts +4 -0
  123. package/dist/api/types/NamespaceAutomation.d.mts +3 -0
  124. package/dist/api/types/NamespaceAutomation.d.ts +3 -0
  125. package/dist/api/types/NamespaceItem.d.mts +7 -0
  126. package/dist/api/types/NamespaceItem.d.ts +7 -0
  127. package/dist/api/types/NamespaceItem.js +4 -0
  128. package/dist/api/types/NamespaceItem.mjs +4 -0
  129. package/dist/api/types/NamespaceReliability.d.mts +4 -1
  130. package/dist/api/types/NamespaceReliability.d.ts +4 -1
  131. package/dist/api/types/NetworkLens.d.mts +2 -0
  132. package/dist/api/types/NetworkLens.d.ts +2 -0
  133. package/dist/api/types/NetworkTotals.d.mts +5 -1
  134. package/dist/api/types/NetworkTotals.d.ts +5 -1
  135. package/dist/api/types/NoReadyShare.d.mts +12 -0
  136. package/dist/api/types/NoReadyShare.d.ts +12 -0
  137. package/dist/api/types/NoReadyShare.js +17 -0
  138. package/dist/api/types/NoReadyShare.mjs +1 -0
  139. package/dist/api/types/NodeDetail.d.mts +2 -0
  140. package/dist/api/types/NodeDetail.d.ts +2 -0
  141. package/dist/api/types/NodeFacets.d.mts +2 -0
  142. package/dist/api/types/NodeFacets.d.ts +2 -0
  143. package/dist/api/types/NodeItem.d.mts +3 -1
  144. package/dist/api/types/NodeItem.d.ts +3 -1
  145. package/dist/api/types/NodeMonthlyPrice.d.mts +24 -0
  146. package/dist/api/types/NodeMonthlyPrice.d.ts +24 -0
  147. package/dist/api/types/NodeMonthlyPrice.js +35 -0
  148. package/dist/api/types/NodeMonthlyPrice.mjs +11 -0
  149. package/dist/api/types/NodePoolDay.d.mts +1 -1
  150. package/dist/api/types/NodePoolDay.d.ts +1 -1
  151. package/dist/api/types/NodePoolUsage.d.mts +13 -5
  152. package/dist/api/types/NodePoolUsage.d.ts +13 -5
  153. package/dist/api/types/OtherRightsizer.d.mts +14 -0
  154. package/dist/api/types/OtherRightsizer.d.ts +14 -0
  155. package/dist/api/types/OtherRightsizer.js +35 -0
  156. package/dist/api/types/OtherRightsizer.mjs +11 -0
  157. package/dist/api/types/PendingShare.d.mts +6 -0
  158. package/dist/api/types/PendingShare.d.ts +6 -0
  159. package/dist/api/types/PendingShare.js +17 -0
  160. package/dist/api/types/PendingShare.mjs +1 -0
  161. package/dist/api/types/PodCounts.d.mts +2 -2
  162. package/dist/api/types/PodCounts.d.ts +2 -2
  163. package/dist/api/types/PodsHour.d.mts +3 -1
  164. package/dist/api/types/PodsHour.d.ts +3 -1
  165. package/dist/api/types/PurchaseTypeShare.d.mts +1 -1
  166. package/dist/api/types/PurchaseTypeShare.d.ts +1 -1
  167. package/dist/api/types/ReliabilityCounts.d.mts +3 -0
  168. package/dist/api/types/ReliabilityCounts.d.ts +3 -0
  169. package/dist/api/types/ReliabilityDay.d.mts +8 -5
  170. package/dist/api/types/ReliabilityDay.d.ts +8 -5
  171. package/dist/api/types/ReliabilityEventDay.d.mts +4 -3
  172. package/dist/api/types/ReliabilityEventDay.d.ts +4 -3
  173. package/dist/api/types/ReliabilityFacetCount.d.mts +17 -0
  174. package/dist/api/types/ReliabilityFacetCount.d.ts +17 -0
  175. package/dist/api/types/ReliabilityFacetCount.js +41 -0
  176. package/dist/api/types/ReliabilityFacetCount.mjs +17 -0
  177. package/dist/api/types/ReliabilityLens.d.mts +2 -1
  178. package/dist/api/types/ReliabilityLens.d.ts +2 -1
  179. package/dist/api/types/ReliabilityTotals.d.mts +12 -3
  180. package/dist/api/types/ReliabilityTotals.d.ts +12 -3
  181. package/dist/api/types/RequestsAverage.d.mts +3 -1
  182. package/dist/api/types/RequestsAverage.d.ts +3 -1
  183. package/dist/api/types/ResourceEfficiency.d.mts +7 -1
  184. package/dist/api/types/ResourceEfficiency.d.ts +7 -1
  185. package/dist/api/types/RightsizedContainer.d.mts +19 -5
  186. package/dist/api/types/RightsizedContainer.d.ts +19 -5
  187. package/dist/api/types/RightsizedContainer.js +10 -1
  188. package/dist/api/types/RightsizedContainer.mjs +10 -1
  189. package/dist/api/types/SizingEvidence.d.mts +30 -0
  190. package/dist/api/types/SizingEvidence.d.ts +30 -0
  191. package/dist/api/types/SizingEvidence.js +40 -0
  192. package/dist/api/types/SizingEvidence.mjs +16 -0
  193. package/dist/api/types/SpendDay.d.mts +17 -2
  194. package/dist/api/types/SpendDay.d.ts +17 -2
  195. package/dist/api/types/SpendDay.js +18 -0
  196. package/dist/api/types/SpendDay.mjs +10 -0
  197. package/dist/api/types/SpendKpis.d.mts +13 -2
  198. package/dist/api/types/SpendKpis.d.ts +13 -2
  199. package/dist/api/types/SpendKpis.js +18 -0
  200. package/dist/api/types/SpendKpis.mjs +10 -0
  201. package/dist/api/types/SpendUnitCost.d.mts +1 -0
  202. package/dist/api/types/SpendUnitCost.d.ts +1 -0
  203. package/dist/api/types/SpotBalance.d.mts +4 -0
  204. package/dist/api/types/SpotBalance.d.ts +4 -0
  205. package/dist/api/types/StatusCount.d.mts +1 -0
  206. package/dist/api/types/StatusCount.d.ts +1 -0
  207. package/dist/api/types/StatusCount.js +1 -0
  208. package/dist/api/types/StatusCount.mjs +1 -0
  209. package/dist/api/types/StorageClassTotals.d.mts +2 -0
  210. package/dist/api/types/StorageClassTotals.d.ts +2 -0
  211. package/dist/api/types/StorageClassUsage.d.mts +4 -1
  212. package/dist/api/types/StorageClassUsage.d.ts +4 -1
  213. package/dist/api/types/TerraformIntegrationData.d.mts +13 -0
  214. package/dist/api/types/TerraformIntegrationData.d.ts +13 -0
  215. package/dist/api/types/TerraformIntegrationData.js +17 -0
  216. package/dist/api/types/TerraformIntegrationData.mjs +1 -0
  217. package/dist/api/types/TerraformIntegrationResponse.d.mts +6 -0
  218. package/dist/api/types/TerraformIntegrationResponse.d.ts +6 -0
  219. package/dist/api/types/TerraformIntegrationResponse.js +17 -0
  220. package/dist/api/types/TerraformIntegrationResponse.mjs +1 -0
  221. package/dist/api/types/UnhealthyReason.d.mts +16 -0
  222. package/dist/api/types/UnhealthyReason.d.ts +16 -0
  223. package/dist/api/types/UnhealthyReason.js +35 -0
  224. package/dist/api/types/UnhealthyReason.mjs +11 -0
  225. package/dist/api/types/UnitCosts.d.mts +1 -1
  226. package/dist/api/types/UnitCosts.d.ts +1 -1
  227. package/dist/api/types/UsageCoverage.d.mts +10 -0
  228. package/dist/api/types/UsageCoverage.d.ts +10 -0
  229. package/dist/api/types/UsageCoverage.js +17 -0
  230. package/dist/api/types/UsageCoverage.mjs +1 -0
  231. package/dist/api/types/UsageCoverageResponse.d.mts +6 -0
  232. package/dist/api/types/UsageCoverageResponse.d.ts +6 -0
  233. package/dist/api/types/UsageCoverageResponse.js +17 -0
  234. package/dist/api/types/UsageCoverageResponse.mjs +1 -0
  235. package/dist/api/types/UsageCoverageWindow.d.mts +8 -0
  236. package/dist/api/types/UsageCoverageWindow.d.ts +8 -0
  237. package/dist/api/types/UsageCoverageWindow.js +17 -0
  238. package/dist/api/types/UsageCoverageWindow.mjs +1 -0
  239. package/dist/api/types/UseMeasured.d.mts +9 -0
  240. package/dist/api/types/UseMeasured.d.ts +9 -0
  241. package/dist/api/types/UseMeasured.js +17 -0
  242. package/dist/api/types/UseMeasured.mjs +1 -0
  243. package/dist/api/types/UtilizationTarget.d.mts +34 -4
  244. package/dist/api/types/UtilizationTarget.d.ts +34 -4
  245. package/dist/api/types/UtilizationTarget.js +14 -1
  246. package/dist/api/types/UtilizationTarget.mjs +14 -1
  247. package/dist/api/types/VolumeItem.d.mts +23 -1
  248. package/dist/api/types/VolumeItem.d.ts +23 -1
  249. package/dist/api/types/VolumeItem.js +22 -0
  250. package/dist/api/types/VolumeItem.mjs +14 -0
  251. package/dist/api/types/Waste.d.mts +6 -2
  252. package/dist/api/types/Waste.d.ts +6 -2
  253. package/dist/api/types/WasteDay.d.mts +2 -0
  254. package/dist/api/types/WasteDay.d.ts +2 -0
  255. package/dist/api/types/WasteTotal.d.mts +4 -2
  256. package/dist/api/types/WasteTotal.d.ts +4 -2
  257. package/dist/api/types/WorkloadDay.d.mts +7 -0
  258. package/dist/api/types/WorkloadDay.d.ts +7 -0
  259. package/dist/api/types/WorkloadDetail.d.mts +8 -0
  260. package/dist/api/types/WorkloadDetail.d.ts +8 -0
  261. package/dist/api/types/WorkloadFacets.d.mts +4 -0
  262. package/dist/api/types/WorkloadFacets.d.ts +4 -0
  263. package/dist/api/types/WorkloadItem.d.mts +38 -0
  264. package/dist/api/types/WorkloadItem.d.ts +38 -0
  265. package/dist/api/types/WorkloadItem.js +20 -0
  266. package/dist/api/types/WorkloadItem.mjs +20 -0
  267. package/dist/api/types/WorkloadJvm.d.mts +15 -0
  268. package/dist/api/types/WorkloadJvm.d.ts +15 -0
  269. package/dist/api/types/WorkloadJvm.js +17 -0
  270. package/dist/api/types/WorkloadJvm.mjs +1 -0
  271. package/dist/api/types/WorkloadListData.d.mts +1 -1
  272. package/dist/api/types/WorkloadListData.d.ts +1 -1
  273. package/dist/api/types/WorkloadListItem.d.mts +132 -0
  274. package/dist/api/types/WorkloadListItem.d.ts +132 -0
  275. package/dist/api/types/WorkloadListItem.js +62 -0
  276. package/dist/api/types/WorkloadListItem.mjs +38 -0
  277. package/dist/api/types/index.d.mts +26 -0
  278. package/dist/api/types/index.d.ts +26 -0
  279. package/dist/api/types/index.js +52 -0
  280. package/dist/api/types/index.mjs +26 -0
  281. package/dist/version.d.mts +1 -1
  282. package/dist/version.d.ts +1 -1
  283. package/dist/version.js +1 -1
  284. package/dist/version.mjs +1 -1
  285. package/package.json +1 -1
@@ -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
  }
@@ -15,8 +15,22 @@ export interface ConsolidationBlocker {
15
15
  workload_name: string;
16
16
  /** static_pod alone for a static pod, which goes with its node */
17
17
  reasons: LevelFour.BlockingReason[];
18
+ /** Why moving the pod carries no risk: its app has no healthy pod, or its workload has no ready replica. Empty for a pod of a healthy app */
19
+ unhealthy_reasons?: LevelFour.UnhealthyReason[] | undefined;
18
20
  /** Its node's latest Unconsolidatable and DisruptionBlocked events in the last 24 hours, newest first, at most 5 */
19
21
  karpenter_says: LevelFour.KarpenterMessage[];
22
+ /** What its node costs a month on the bill, at the hourly cost of its own bill over the last 7 days, else at the hourly rate the bill charged in those days for its instance type and purchase option in the cluster's region, plus the EKS Auto Mode fee on an Auto Mode node. Never a list price: null when neither prices it */
23
+ node_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
+ node_monthly_cost_net?: (number | null) | undefined;
26
+ /** node_bill: the node's own bill. bill_rate: the bill's rate for its instance type */
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;
20
34
  }
21
35
  export declare namespace ConsolidationBlocker {
22
36
  /** karpenter when the node belongs to a NodePool */
@@ -25,4 +39,22 @@ export declare namespace ConsolidationBlocker {
25
39
  readonly ClusterAutoscaler: "cluster_autoscaler";
26
40
  };
27
41
  type Autoscaler = (typeof Autoscaler)[keyof typeof Autoscaler];
42
+ const NodePricedBy: {
43
+ readonly NodeBill: "node_bill";
44
+ readonly BillRate: "bill_rate";
45
+ };
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];
28
60
  }
@@ -15,8 +15,22 @@ export interface ConsolidationBlocker {
15
15
  workload_name: string;
16
16
  /** static_pod alone for a static pod, which goes with its node */
17
17
  reasons: LevelFour.BlockingReason[];
18
+ /** Why moving the pod carries no risk: its app has no healthy pod, or its workload has no ready replica. Empty for a pod of a healthy app */
19
+ unhealthy_reasons?: LevelFour.UnhealthyReason[] | undefined;
18
20
  /** Its node's latest Unconsolidatable and DisruptionBlocked events in the last 24 hours, newest first, at most 5 */
19
21
  karpenter_says: LevelFour.KarpenterMessage[];
22
+ /** What its node costs a month on the bill, at the hourly cost of its own bill over the last 7 days, else at the hourly rate the bill charged in those days for its instance type and purchase option in the cluster's region, plus the EKS Auto Mode fee on an Auto Mode node. Never a list price: null when neither prices it */
23
+ node_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
+ node_monthly_cost_net?: (number | null) | undefined;
26
+ /** node_bill: the node's own bill. bill_rate: the bill's rate for its instance type */
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;
20
34
  }
21
35
  export declare namespace ConsolidationBlocker {
22
36
  /** karpenter when the node belongs to a NodePool */
@@ -25,4 +39,22 @@ export declare namespace ConsolidationBlocker {
25
39
  readonly ClusterAutoscaler: "cluster_autoscaler";
26
40
  };
27
41
  type Autoscaler = (typeof Autoscaler)[keyof typeof Autoscaler];
42
+ const NodePricedBy: {
43
+ readonly NodeBill: "node_bill";
44
+ readonly BillRate: "bill_rate";
45
+ };
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];
28
60
  }
@@ -27,6 +27,21 @@ var ConsolidationBlocker;
27
27
  Karpenter: "karpenter",
28
28
  ClusterAutoscaler: "cluster_autoscaler"
29
29
  };
30
+ ConsolidationBlocker2.NodePricedBy = {
31
+ NodeBill: "node_bill",
32
+ BillRate: "bill_rate"
33
+ };
34
+ ConsolidationBlocker2.NodeKeptReason = {
35
+ PodsNeedRoom: "pods_need_room",
36
+ PoolRemovesOnlyEmpty: "pool_removes_only_empty",
37
+ PoolNeverConsolidates: "pool_never_consolidates",
38
+ AutoscalerThreshold: "autoscaler_threshold"
39
+ };
40
+ ConsolidationBlocker2.NodeNotKnownReason = {
41
+ PoolNotReported: "pool_not_reported",
42
+ BudgetNotReported: "budget_not_reported",
43
+ NotWorkedOut: "not_worked_out"
44
+ };
30
45
  })(ConsolidationBlocker || (ConsolidationBlocker = {}));
31
46
  // Annotate the CommonJS export names for ESM import in node:
32
47
  0 && (module.exports = {
@@ -4,6 +4,21 @@ var ConsolidationBlocker;
4
4
  Karpenter: "karpenter",
5
5
  ClusterAutoscaler: "cluster_autoscaler"
6
6
  };
7
+ ConsolidationBlocker2.NodePricedBy = {
8
+ NodeBill: "node_bill",
9
+ BillRate: "bill_rate"
10
+ };
11
+ ConsolidationBlocker2.NodeKeptReason = {
12
+ PodsNeedRoom: "pods_need_room",
13
+ PoolRemovesOnlyEmpty: "pool_removes_only_empty",
14
+ PoolNeverConsolidates: "pool_never_consolidates",
15
+ AutoscalerThreshold: "autoscaler_threshold"
16
+ };
17
+ ConsolidationBlocker2.NodeNotKnownReason = {
18
+ PoolNotReported: "pool_not_reported",
19
+ BudgetNotReported: "budget_not_reported",
20
+ NotWorkedOut: "not_worked_out"
21
+ };
7
22
  })(ConsolidationBlocker || (ConsolidationBlocker = {}));
8
23
  export {
9
24
  ConsolidationBlocker
@@ -9,10 +9,14 @@ export interface ContainerDetail {
9
9
  /** What the VPA targeting the workload currently recommends, beside the current requests */
10
10
  vpa?: (LevelFour.ContainerVpa | null) | undefined;
11
11
  limits: LevelFour.ResourceList;
12
+ /** What the pods hold, which differs from the template's requests and limits when a LimitRange or admission set them */
13
+ held: LevelFour.HeldResources;
12
14
  /** Null where the agent did not report them */
13
15
  probes: LevelFour.ContainerProbes;
14
16
  /** Null when the agent reported no JVM heap setting */
15
17
  jvm_heap?: (LevelFour.ContainerJvmHeap | null) | undefined;
18
+ /** Null when the opt-in JVM reader measured nothing in the container over the window */
19
+ jvm_measured?: (LevelFour.ContainerJvmMeasured | null) | undefined;
16
20
  usage: LevelFour.UsageSummary;
17
21
  /** Usage in containers' first 15 minutes, against the steady state */
18
22
  startup: LevelFour.StartupUsage;
@@ -9,10 +9,14 @@ export interface ContainerDetail {
9
9
  /** What the VPA targeting the workload currently recommends, beside the current requests */
10
10
  vpa?: (LevelFour.ContainerVpa | null) | undefined;
11
11
  limits: LevelFour.ResourceList;
12
+ /** What the pods hold, which differs from the template's requests and limits when a LimitRange or admission set them */
13
+ held: LevelFour.HeldResources;
12
14
  /** Null where the agent did not report them */
13
15
  probes: LevelFour.ContainerProbes;
14
16
  /** Null when the agent reported no JVM heap setting */
15
17
  jvm_heap?: (LevelFour.ContainerJvmHeap | null) | undefined;
18
+ /** Null when the opt-in JVM reader measured nothing in the container over the window */
19
+ jvm_measured?: (LevelFour.ContainerJvmMeasured | null) | undefined;
16
20
  usage: LevelFour.UsageSummary;
17
21
  /** Usage in containers' first 15 minutes, against the steady state */
18
22
  startup: LevelFour.StartupUsage;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * One day of what the JVM reader measured in a container: each size the most of any hour of the day.
3
+ */
4
+ export interface ContainerJvmDay {
5
+ day: string;
6
+ /** The heap the JVMs may grow to, from their own counters */
7
+ heap_max_bytes: number;
8
+ /** The heap the JVMs had committed */
9
+ committed_max_bytes: number;
10
+ /** The most heap the JVMs held in use. For a chart, not for sizing: some collectors move their used counters only at a collection. Null when no hour of the day had one */
11
+ heap_used_max_bytes?: (number | null) | undefined;
12
+ /** An upper bound on the live set. Null when no hour of the day had one */
13
+ live_set_max_bytes?: (number | null) | undefined;
14
+ /** Resident memory beside the heap */
15
+ outside_heap_max_bytes: number;
16
+ /** The largest share of a span of five minutes or more one JVM spent in collection pauses */
17
+ gc_share_max?: (number | null) | undefined;
18
+ /** Seconds the reader measured the container that day */
19
+ sampled_seconds: number;
20
+ }