levelfour 1.9.0 → 1.11.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 (245) 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/AutomationEvent.d.mts +1 -1
  6. package/dist/api/types/AutomationEvent.d.ts +1 -1
  7. package/dist/api/types/AutoscalerInsight.d.mts +4 -1
  8. package/dist/api/types/AutoscalerInsight.d.ts +4 -1
  9. package/dist/api/types/BlockerTotals.d.mts +19 -1
  10. package/dist/api/types/BlockerTotals.d.ts +19 -1
  11. package/dist/api/types/ClaimBillRate.d.mts +15 -0
  12. package/dist/api/types/ClaimBillRate.d.ts +15 -0
  13. package/dist/api/types/ClaimBillRate.js +17 -0
  14. package/dist/api/types/ClaimBillRate.mjs +1 -0
  15. package/dist/api/types/ClusterFilterOptions.d.mts +1 -0
  16. package/dist/api/types/ClusterFilterOptions.d.ts +1 -0
  17. package/dist/api/types/ClusterFilterOptions.js +1 -0
  18. package/dist/api/types/ClusterFilterOptions.mjs +1 -0
  19. package/dist/api/types/ClusterHealth.d.mts +1 -1
  20. package/dist/api/types/ClusterHealth.d.ts +1 -1
  21. package/dist/api/types/ClusterItem.d.mts +18 -5
  22. package/dist/api/types/ClusterItem.d.ts +18 -5
  23. package/dist/api/types/ClusterItem.js +6 -0
  24. package/dist/api/types/ClusterItem.mjs +6 -0
  25. package/dist/api/types/ClusterSummary.d.mts +19 -1
  26. package/dist/api/types/ClusterSummary.d.ts +19 -1
  27. package/dist/api/types/ClusterSummary.js +5 -0
  28. package/dist/api/types/ClusterSummary.mjs +5 -0
  29. package/dist/api/types/ClusterUsageDay.d.mts +1 -1
  30. package/dist/api/types/ClusterUsageDay.d.ts +1 -1
  31. package/dist/api/types/ComputeMonth.d.mts +3 -2
  32. package/dist/api/types/ComputeMonth.d.ts +3 -2
  33. package/dist/api/types/ConsolidationBlocker.d.mts +19 -0
  34. package/dist/api/types/ConsolidationBlocker.d.ts +19 -0
  35. package/dist/api/types/ConsolidationBlocker.js +11 -0
  36. package/dist/api/types/ConsolidationBlocker.mjs +11 -0
  37. package/dist/api/types/ContainerDetail.d.mts +2 -0
  38. package/dist/api/types/ContainerDetail.d.ts +2 -0
  39. package/dist/api/types/CostSeries.d.mts +3 -2
  40. package/dist/api/types/CostSeries.d.ts +3 -2
  41. package/dist/api/types/CostSeries.js +2 -1
  42. package/dist/api/types/CostSeries.mjs +2 -1
  43. package/dist/api/types/DestinationTraffic.d.mts +17 -0
  44. package/dist/api/types/DestinationTraffic.d.ts +17 -0
  45. package/dist/api/types/DestinationTraffic.js +38 -0
  46. package/dist/api/types/DestinationTraffic.mjs +14 -0
  47. package/dist/api/types/Efficiency.d.mts +6 -0
  48. package/dist/api/types/Efficiency.d.ts +6 -0
  49. package/dist/api/types/EfficiencyPoint.d.mts +1 -0
  50. package/dist/api/types/EfficiencyPoint.d.ts +1 -0
  51. package/dist/api/types/FleetNamespace.d.mts +9 -0
  52. package/dist/api/types/FleetNamespace.d.ts +9 -0
  53. package/dist/api/types/FleetNamespace.js +4 -0
  54. package/dist/api/types/FleetNamespace.mjs +4 -0
  55. package/dist/api/types/FleetNodePool.d.mts +16 -6
  56. package/dist/api/types/FleetNodePool.d.ts +16 -6
  57. package/dist/api/types/FleetStorage.d.mts +3 -0
  58. package/dist/api/types/FleetStorage.d.ts +3 -0
  59. package/dist/api/types/FleetSummary.d.mts +15 -1
  60. package/dist/api/types/FleetSummary.d.ts +15 -1
  61. package/dist/api/types/FleetSummary.js +5 -0
  62. package/dist/api/types/FleetSummary.mjs +5 -0
  63. package/dist/api/types/FleetVolume.d.mts +23 -1
  64. package/dist/api/types/FleetVolume.d.ts +23 -1
  65. package/dist/api/types/FleetVolume.js +22 -0
  66. package/dist/api/types/FleetVolume.mjs +14 -0
  67. package/dist/api/types/FleetWorkload.d.mts +9 -0
  68. package/dist/api/types/FleetWorkload.d.ts +9 -0
  69. package/dist/api/types/FleetWorkload.js +4 -0
  70. package/dist/api/types/FleetWorkload.mjs +4 -0
  71. package/dist/api/types/HeldResources.d.mts +23 -0
  72. package/dist/api/types/HeldResources.d.ts +23 -0
  73. package/dist/api/types/HeldResources.js +39 -0
  74. package/dist/api/types/HeldResources.mjs +15 -0
  75. package/dist/api/types/Indicator.d.mts +6 -4
  76. package/dist/api/types/Indicator.d.ts +6 -4
  77. package/dist/api/types/Indicator.js +4 -4
  78. package/dist/api/types/Indicator.mjs +4 -4
  79. package/dist/api/types/IndicatorCount.d.mts +4 -4
  80. package/dist/api/types/IndicatorCount.d.ts +4 -4
  81. package/dist/api/types/IndicatorCount.js +4 -4
  82. package/dist/api/types/IndicatorCount.mjs +4 -4
  83. package/dist/api/types/KubernetesDataAvailability.d.mts +4 -0
  84. package/dist/api/types/KubernetesDataAvailability.d.ts +4 -0
  85. package/dist/api/types/NamespaceAutomation.d.mts +21 -0
  86. package/dist/api/types/NamespaceAutomation.d.ts +21 -0
  87. package/dist/api/types/NamespaceAutomation.js +4 -0
  88. package/dist/api/types/NamespaceAutomation.mjs +4 -0
  89. package/dist/api/types/NamespaceItem.d.mts +9 -0
  90. package/dist/api/types/NamespaceItem.d.ts +9 -0
  91. package/dist/api/types/NamespaceItem.js +4 -0
  92. package/dist/api/types/NamespaceItem.mjs +4 -0
  93. package/dist/api/types/NamespaceReliability.d.mts +4 -1
  94. package/dist/api/types/NamespaceReliability.d.ts +4 -1
  95. package/dist/api/types/NetworkLens.d.mts +2 -0
  96. package/dist/api/types/NetworkLens.d.ts +2 -0
  97. package/dist/api/types/NetworkTotals.d.mts +5 -1
  98. package/dist/api/types/NetworkTotals.d.ts +5 -1
  99. package/dist/api/types/NoReadyShare.d.mts +12 -0
  100. package/dist/api/types/NoReadyShare.d.ts +12 -0
  101. package/dist/api/types/NoReadyShare.js +17 -0
  102. package/dist/api/types/NoReadyShare.mjs +1 -0
  103. package/dist/api/types/NodeDetail.d.mts +2 -0
  104. package/dist/api/types/NodeDetail.d.ts +2 -0
  105. package/dist/api/types/NodeFacets.d.mts +3 -1
  106. package/dist/api/types/NodeFacets.d.ts +3 -1
  107. package/dist/api/types/NodeItem.d.mts +8 -4
  108. package/dist/api/types/NodeItem.d.ts +8 -4
  109. package/dist/api/types/NodeMonthlyPrice.d.mts +24 -0
  110. package/dist/api/types/NodeMonthlyPrice.d.ts +24 -0
  111. package/dist/api/types/NodeMonthlyPrice.js +35 -0
  112. package/dist/api/types/NodeMonthlyPrice.mjs +11 -0
  113. package/dist/api/types/NodePoolDay.d.mts +1 -1
  114. package/dist/api/types/NodePoolDay.d.ts +1 -1
  115. package/dist/api/types/NodePoolNode.d.mts +1 -1
  116. package/dist/api/types/NodePoolNode.d.ts +1 -1
  117. package/dist/api/types/NodePoolUsage.d.mts +16 -6
  118. package/dist/api/types/NodePoolUsage.d.ts +16 -6
  119. package/dist/api/types/OtherRightsizer.d.mts +14 -0
  120. package/dist/api/types/OtherRightsizer.d.ts +14 -0
  121. package/dist/api/types/OtherRightsizer.js +35 -0
  122. package/dist/api/types/OtherRightsizer.mjs +11 -0
  123. package/dist/api/types/PendingShare.d.mts +6 -0
  124. package/dist/api/types/PendingShare.d.ts +6 -0
  125. package/dist/api/types/PendingShare.js +17 -0
  126. package/dist/api/types/PendingShare.mjs +1 -0
  127. package/dist/api/types/PodCounts.d.mts +2 -2
  128. package/dist/api/types/PodCounts.d.ts +2 -2
  129. package/dist/api/types/PodsHour.d.mts +3 -1
  130. package/dist/api/types/PodsHour.d.ts +3 -1
  131. package/dist/api/types/PurchaseTypeShare.d.mts +4 -4
  132. package/dist/api/types/PurchaseTypeShare.d.ts +4 -4
  133. package/dist/api/types/ReliabilityCounts.d.mts +3 -0
  134. package/dist/api/types/ReliabilityCounts.d.ts +3 -0
  135. package/dist/api/types/ReliabilityDay.d.mts +8 -5
  136. package/dist/api/types/ReliabilityDay.d.ts +8 -5
  137. package/dist/api/types/ReliabilityEventDay.d.mts +4 -3
  138. package/dist/api/types/ReliabilityEventDay.d.ts +4 -3
  139. package/dist/api/types/ReliabilityLens.d.mts +2 -1
  140. package/dist/api/types/ReliabilityLens.d.ts +2 -1
  141. package/dist/api/types/ReliabilityTotals.d.mts +10 -1
  142. package/dist/api/types/ReliabilityTotals.d.ts +10 -1
  143. package/dist/api/types/ReplicaScaler.d.mts +4 -1
  144. package/dist/api/types/ReplicaScaler.d.ts +4 -1
  145. package/dist/api/types/RequestsAverage.d.mts +3 -1
  146. package/dist/api/types/RequestsAverage.d.ts +3 -1
  147. package/dist/api/types/ResourceCapacity.d.mts +1 -1
  148. package/dist/api/types/ResourceCapacity.d.ts +1 -1
  149. package/dist/api/types/ResourceEfficiency.d.mts +7 -1
  150. package/dist/api/types/ResourceEfficiency.d.ts +7 -1
  151. package/dist/api/types/RightsizedContainer.d.mts +19 -5
  152. package/dist/api/types/RightsizedContainer.d.ts +19 -5
  153. package/dist/api/types/RightsizedContainer.js +10 -1
  154. package/dist/api/types/RightsizedContainer.mjs +10 -1
  155. package/dist/api/types/SetTakeoverRequest.d.mts +13 -0
  156. package/dist/api/types/SetTakeoverRequest.d.ts +13 -0
  157. package/dist/api/types/SetTakeoverRequest.js +35 -0
  158. package/dist/api/types/SetTakeoverRequest.mjs +11 -0
  159. package/dist/api/types/SizingEvidence.d.mts +30 -0
  160. package/dist/api/types/SizingEvidence.d.ts +30 -0
  161. package/dist/api/types/SizingEvidence.js +40 -0
  162. package/dist/api/types/SizingEvidence.mjs +16 -0
  163. package/dist/api/types/SnapshotRange.d.mts +6 -0
  164. package/dist/api/types/SnapshotRange.d.ts +6 -0
  165. package/dist/api/types/SnapshotRange.js +17 -0
  166. package/dist/api/types/SnapshotRange.mjs +1 -0
  167. package/dist/api/types/SpendDay.d.mts +17 -2
  168. package/dist/api/types/SpendDay.d.ts +17 -2
  169. package/dist/api/types/SpendDay.js +18 -0
  170. package/dist/api/types/SpendDay.mjs +10 -0
  171. package/dist/api/types/SpendKpis.d.mts +13 -2
  172. package/dist/api/types/SpendKpis.d.ts +13 -2
  173. package/dist/api/types/SpendKpis.js +18 -0
  174. package/dist/api/types/SpendKpis.mjs +10 -0
  175. package/dist/api/types/SpendUnitCost.d.mts +1 -0
  176. package/dist/api/types/SpendUnitCost.d.ts +1 -0
  177. package/dist/api/types/SpotBalance.d.mts +4 -0
  178. package/dist/api/types/SpotBalance.d.ts +4 -0
  179. package/dist/api/types/StatusCount.d.mts +1 -0
  180. package/dist/api/types/StatusCount.d.ts +1 -0
  181. package/dist/api/types/StatusCount.js +1 -0
  182. package/dist/api/types/StatusCount.mjs +1 -0
  183. package/dist/api/types/StorageClassTotals.d.mts +2 -0
  184. package/dist/api/types/StorageClassTotals.d.ts +2 -0
  185. package/dist/api/types/StorageClassUsage.d.mts +4 -1
  186. package/dist/api/types/StorageClassUsage.d.ts +4 -1
  187. package/dist/api/types/TakeoverBlocker.d.mts +25 -0
  188. package/dist/api/types/TakeoverBlocker.d.ts +25 -0
  189. package/dist/api/types/TakeoverBlocker.js +42 -0
  190. package/dist/api/types/TakeoverBlocker.mjs +18 -0
  191. package/dist/api/types/UnitCosts.d.mts +1 -1
  192. package/dist/api/types/UnitCosts.d.ts +1 -1
  193. package/dist/api/types/UsageCoverage.d.mts +10 -0
  194. package/dist/api/types/UsageCoverage.d.ts +10 -0
  195. package/dist/api/types/UsageCoverage.js +17 -0
  196. package/dist/api/types/UsageCoverage.mjs +1 -0
  197. package/dist/api/types/UsageCoverageResponse.d.mts +6 -0
  198. package/dist/api/types/UsageCoverageResponse.d.ts +6 -0
  199. package/dist/api/types/UsageCoverageResponse.js +17 -0
  200. package/dist/api/types/UsageCoverageResponse.mjs +1 -0
  201. package/dist/api/types/UsageCoverageWindow.d.mts +8 -0
  202. package/dist/api/types/UsageCoverageWindow.d.ts +8 -0
  203. package/dist/api/types/UsageCoverageWindow.js +17 -0
  204. package/dist/api/types/UsageCoverageWindow.mjs +1 -0
  205. package/dist/api/types/UseMeasured.d.mts +9 -0
  206. package/dist/api/types/UseMeasured.d.ts +9 -0
  207. package/dist/api/types/UseMeasured.js +17 -0
  208. package/dist/api/types/UseMeasured.mjs +1 -0
  209. package/dist/api/types/UtilizationTarget.d.mts +34 -4
  210. package/dist/api/types/UtilizationTarget.d.ts +34 -4
  211. package/dist/api/types/UtilizationTarget.js +14 -1
  212. package/dist/api/types/UtilizationTarget.mjs +14 -1
  213. package/dist/api/types/VolumeItem.d.mts +23 -1
  214. package/dist/api/types/VolumeItem.d.ts +23 -1
  215. package/dist/api/types/VolumeItem.js +22 -0
  216. package/dist/api/types/VolumeItem.mjs +14 -0
  217. package/dist/api/types/Waste.d.mts +6 -2
  218. package/dist/api/types/Waste.d.ts +6 -2
  219. package/dist/api/types/WasteDay.d.mts +2 -0
  220. package/dist/api/types/WasteDay.d.ts +2 -0
  221. package/dist/api/types/WasteTotal.d.mts +4 -2
  222. package/dist/api/types/WasteTotal.d.ts +4 -2
  223. package/dist/api/types/WorkloadDay.d.mts +7 -0
  224. package/dist/api/types/WorkloadDay.d.ts +7 -0
  225. package/dist/api/types/WorkloadDetail.d.mts +8 -0
  226. package/dist/api/types/WorkloadDetail.d.ts +8 -0
  227. package/dist/api/types/WorkloadFacets.d.mts +4 -0
  228. package/dist/api/types/WorkloadFacets.d.ts +4 -0
  229. package/dist/api/types/WorkloadItem.d.mts +38 -0
  230. package/dist/api/types/WorkloadItem.d.ts +38 -0
  231. package/dist/api/types/WorkloadItem.js +20 -0
  232. package/dist/api/types/WorkloadItem.mjs +20 -0
  233. package/dist/api/types/WorkloadListItem.d.mts +38 -0
  234. package/dist/api/types/WorkloadListItem.d.ts +38 -0
  235. package/dist/api/types/WorkloadListItem.js +20 -0
  236. package/dist/api/types/WorkloadListItem.mjs +20 -0
  237. package/dist/api/types/index.d.mts +15 -0
  238. package/dist/api/types/index.d.ts +15 -0
  239. package/dist/api/types/index.js +30 -0
  240. package/dist/api/types/index.mjs +15 -0
  241. package/dist/version.d.mts +1 -1
  242. package/dist/version.d.ts +1 -1
  243. package/dist/version.js +1 -1
  244. package/dist/version.mjs +1 -1
  245. package/package.json +1 -1
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var OtherRightsizer_exports = {};
20
+ __export(OtherRightsizer_exports, {
21
+ OtherRightsizer: () => OtherRightsizer
22
+ });
23
+ module.exports = __toCommonJS(OtherRightsizer_exports);
24
+ var OtherRightsizer;
25
+ ((OtherRightsizer2) => {
26
+ OtherRightsizer2.Kind = {
27
+ AddonResizer: "addon_resizer",
28
+ Admission: "admission"
29
+ };
30
+ })(OtherRightsizer || (OtherRightsizer = {}));
31
+ // Annotate the CommonJS export names for ESM import in node:
32
+ 0 && (module.exports = {
33
+ OtherRightsizer
34
+ });
35
+ //# sourceMappingURL=OtherRightsizer.js.map
@@ -0,0 +1,11 @@
1
+ var OtherRightsizer;
2
+ ((OtherRightsizer2) => {
3
+ OtherRightsizer2.Kind = {
4
+ AddonResizer: "addon_resizer",
5
+ Admission: "admission"
6
+ };
7
+ })(OtherRightsizer || (OtherRightsizer = {}));
8
+ export {
9
+ OtherRightsizer
10
+ };
11
+ //# sourceMappingURL=OtherRightsizer.mjs.map
@@ -0,0 +1,6 @@
1
+ export interface PendingShare {
2
+ /** Current workloads whose pods spent 15 minutes or more Pending in the latest hour watched (the pods_pending indicator) */
3
+ workloads: number;
4
+ /** Their Pending pod-hours in the window */
5
+ pending_pod_hours: number;
6
+ }
@@ -0,0 +1,6 @@
1
+ export interface PendingShare {
2
+ /** Current workloads whose pods spent 15 minutes or more Pending in the latest hour watched (the pods_pending indicator) */
3
+ workloads: number;
4
+ /** Their Pending pod-hours in the window */
5
+ pending_pod_hours: number;
6
+ }
@@ -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 PendingShare_exports = {};
16
+ module.exports = __toCommonJS(PendingShare_exports);
17
+ //# sourceMappingURL=PendingShare.js.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=PendingShare.mjs.map
@@ -1,6 +1,6 @@
1
1
  export interface PodCounts {
2
- /** Pods running on average over the hours the workload ran */
2
+ /** Pods running on average over the seconds the agent watched in the hours the workload ran */
3
3
  avg?: (number | null) | undefined;
4
- /** The busiest hour's average */
4
+ /** The most pods running at once in any sample; from an agent before 0.6.2, the busiest hour's average */
5
5
  max?: (number | null) | undefined;
6
6
  }
@@ -1,6 +1,6 @@
1
1
  export interface PodCounts {
2
- /** Pods running on average over the hours the workload ran */
2
+ /** Pods running on average over the seconds the agent watched in the hours the workload ran */
3
3
  avg?: (number | null) | undefined;
4
- /** The busiest hour's average */
4
+ /** The most pods running at once in any sample; from an agent before 0.6.2, the busiest hour's average */
5
5
  max?: (number | null) | undefined;
6
6
  }
@@ -1,5 +1,7 @@
1
1
  export interface PodsHour {
2
2
  hour: string;
3
- /** Average pods running in the hour: pod seconds on every node over 3600 */
3
+ /** Average pods running in the hour: pod seconds on every node over the seconds the agent watched in it */
4
4
  pods: number;
5
+ /** The most pods running at once in any sample of the hour; null from an agent before 0.6.2 */
6
+ peak?: (number | null) | undefined;
5
7
  }
@@ -1,5 +1,7 @@
1
1
  export interface PodsHour {
2
2
  hour: string;
3
- /** Average pods running in the hour: pod seconds on every node over 3600 */
3
+ /** Average pods running in the hour: pod seconds on every node over the seconds the agent watched in it */
4
4
  pods: number;
5
+ /** The most pods running at once in any sample of the hour; null from an agent before 0.6.2 */
6
+ peak?: (number | null) | undefined;
5
7
  }
@@ -1,14 +1,14 @@
1
1
  export interface PurchaseTypeShare {
2
2
  purchase_type: PurchaseTypeShare.PurchaseType;
3
- /** Nodes that ran in the window */
3
+ /** Instances that ran in the window under this purchase type */
4
4
  nodes: number;
5
- /** Node-hours on the bill, for commitment coverage */
5
+ /** The hours the agent watched the nodes run in the window, priced or not: spot for a Spot label, else how the bill bought the name's On-Demand capacity that day, else unknown. A cluster the agent did not watch keeps its bill's hours; null where only the current nodes' labels count */
6
6
  node_hours?: (number | null) | undefined;
7
- /** Null where the nodes are counted from their labels, not the bill */
7
+ /** The bill's, split by the purchase type each part was charged as; null where it priced none */
8
8
  cost?: (number | null) | undefined;
9
9
  /** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
10
10
  cost_net?: (number | null) | undefined;
11
- /** Nodes running now, by the bill's purchase type, else their capacity-type label */
11
+ /** Nodes running now: spot from a Spot label, else how the bill last bought their On-Demand capacity, else unknown */
12
12
  nodes_now?: (number | null) | undefined;
13
13
  }
14
14
  export declare namespace PurchaseTypeShare {
@@ -1,14 +1,14 @@
1
1
  export interface PurchaseTypeShare {
2
2
  purchase_type: PurchaseTypeShare.PurchaseType;
3
- /** Nodes that ran in the window */
3
+ /** Instances that ran in the window under this purchase type */
4
4
  nodes: number;
5
- /** Node-hours on the bill, for commitment coverage */
5
+ /** The hours the agent watched the nodes run in the window, priced or not: spot for a Spot label, else how the bill bought the name's On-Demand capacity that day, else unknown. A cluster the agent did not watch keeps its bill's hours; null where only the current nodes' labels count */
6
6
  node_hours?: (number | null) | undefined;
7
- /** Null where the nodes are counted from their labels, not the bill */
7
+ /** The bill's, split by the purchase type each part was charged as; null where it priced none */
8
8
  cost?: (number | null) | undefined;
9
9
  /** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
10
10
  cost_net?: (number | null) | undefined;
11
- /** Nodes running now, by the bill's purchase type, else their capacity-type label */
11
+ /** Nodes running now: spot from a Spot label, else how the bill last bought their On-Demand capacity, else unknown */
12
12
  nodes_now?: (number | null) | undefined;
13
13
  }
14
14
  export declare namespace PurchaseTypeShare {
@@ -3,6 +3,9 @@ export interface ReliabilityCounts {
3
3
  restarts?: (number | null) | undefined;
4
4
  /** Container-hours throttled a quarter of the time or more */
5
5
  throttled_hours?: (number | null) | undefined;
6
+ /** Pods the kubelet evicted for node pressure */
6
7
  evictions?: (number | null) | undefined;
8
+ /** At most the pods moved off a node that a Spot interruption, an instance event or a Karpenter disruption (consolidation, drift, expiry) removed. They leave through the Eviction API, so evictions does not count them. Per removal, each workload counts the most of its pods that ran on the node at once in the hour the removal began, a pod that left the node earlier in that hour included. DaemonSet and static pods go with their node and are not counted, nor is a removal that began while the agent was not watching. A day is measured from agent 0.6.2 on, when every watched hour a removal's pods are read from carries the pods' peaks. Null unless the row's cluster measured every day of the window it reported */
9
+ drained_pods?: (number | null) | undefined;
7
10
  pending_seconds?: (number | null) | undefined;
8
11
  }
@@ -3,6 +3,9 @@ export interface ReliabilityCounts {
3
3
  restarts?: (number | null) | undefined;
4
4
  /** Container-hours throttled a quarter of the time or more */
5
5
  throttled_hours?: (number | null) | undefined;
6
+ /** Pods the kubelet evicted for node pressure */
6
7
  evictions?: (number | null) | undefined;
8
+ /** At most the pods moved off a node that a Spot interruption, an instance event or a Karpenter disruption (consolidation, drift, expiry) removed. They leave through the Eviction API, so evictions does not count them. Per removal, each workload counts the most of its pods that ran on the node at once in the hour the removal began, a pod that left the node earlier in that hour included. DaemonSet and static pods go with their node and are not counted, nor is a removal that began while the agent was not watching. A day is measured from agent 0.6.2 on, when every watched hour a removal's pods are read from carries the pods' peaks. Null unless the row's cluster measured every day of the window it reported */
9
+ drained_pods?: (number | null) | undefined;
7
10
  pending_seconds?: (number | null) | undefined;
8
11
  }
@@ -1,8 +1,11 @@
1
1
  export interface ReliabilityDay {
2
2
  day: string;
3
- oom_kills: number;
4
- restarts: number;
5
- evictions: number;
6
- throttled_hours: number;
7
- pending_pod_hours: number;
3
+ /** Null for a day the agent watched none of, which measured nothing */
4
+ oom_kills: number | null;
5
+ restarts: number | null;
6
+ evictions: number | null;
7
+ /** At most the pods moved off a node that a Spot interruption, an instance event or a Karpenter disruption (consolidation, drift, expiry) removed. They leave through the Eviction API, so evictions does not count them. Per removal, each workload counts the most of its pods that ran on the node at once in the hour the removal began, a pod that left the node earlier in that hour included. DaemonSet and static pods go with their node and are not counted, nor is a removal that began while the agent was not watching. A day is measured from agent 0.6.2 on, when every watched hour a removal's pods are read from carries the pods' peaks. Null unless every cluster in scope watched that day measured it */
8
+ drained_pods: number | null;
9
+ throttled_hours: number | null;
10
+ pending_pod_hours: number | null;
8
11
  }
@@ -1,8 +1,11 @@
1
1
  export interface ReliabilityDay {
2
2
  day: string;
3
- oom_kills: number;
4
- restarts: number;
5
- evictions: number;
6
- throttled_hours: number;
7
- pending_pod_hours: number;
3
+ /** Null for a day the agent watched none of, which measured nothing */
4
+ oom_kills: number | null;
5
+ restarts: number | null;
6
+ evictions: number | null;
7
+ /** At most the pods moved off a node that a Spot interruption, an instance event or a Karpenter disruption (consolidation, drift, expiry) removed. They leave through the Eviction API, so evictions does not count them. Per removal, each workload counts the most of its pods that ran on the node at once in the hour the removal began, a pod that left the node earlier in that hour included. DaemonSet and static pods go with their node and are not counted, nor is a removal that began while the agent was not watching. A day is measured from agent 0.6.2 on, when every watched hour a removal's pods are read from carries the pods' peaks. Null unless every cluster in scope watched that day measured it */
8
+ drained_pods: number | null;
9
+ throttled_hours: number | null;
10
+ pending_pod_hours: number | null;
8
11
  }
@@ -1,6 +1,7 @@
1
1
  export interface ReliabilityEventDay {
2
2
  day: string;
3
- oom_kills: number;
4
- restarts: number;
5
- evictions: number;
3
+ /** Null for a day the agent did not watch the cluster, or any in scope */
4
+ oom_kills: number | null;
5
+ restarts: number | null;
6
+ evictions: number | null;
6
7
  }
@@ -1,6 +1,7 @@
1
1
  export interface ReliabilityEventDay {
2
2
  day: string;
3
- oom_kills: number;
4
- restarts: number;
5
- evictions: number;
3
+ /** Null for a day the agent did not watch the cluster, or any in scope */
4
+ oom_kills: number | null;
5
+ restarts: number | null;
6
+ evictions: number | null;
6
7
  }
@@ -1,8 +1,9 @@
1
1
  import type * as LevelFour from "../index.mjs";
2
2
  export interface ReliabilityLens {
3
+ /** Of the workloads the lists show with ephemeral=exclude, or of all of them with include_ephemeral */
3
4
  totals: LevelFour.ReliabilityTotals;
4
5
  indicators: LevelFour.IndicatorCount[];
5
6
  days: LevelFour.ReliabilityDay[];
6
- /** With group_by, each cluster or namespace with an event in the window, most events first; a namespace sums across the clusters in scope. Their days add up to days */
7
+ /** With group_by, each cluster or namespace with an event in the window, most restarts and evictions first, then most OOM kills; a namespace sums across the clusters in scope. Their days add up to days */
7
8
  groups?: (LevelFour.ReliabilityGroup[] | null) | undefined;
8
9
  }
@@ -1,8 +1,9 @@
1
1
  import type * as LevelFour from "../index.js";
2
2
  export interface ReliabilityLens {
3
+ /** Of the workloads the lists show with ephemeral=exclude, or of all of them with include_ephemeral */
3
4
  totals: LevelFour.ReliabilityTotals;
4
5
  indicators: LevelFour.IndicatorCount[];
5
6
  days: LevelFour.ReliabilityDay[];
6
- /** With group_by, each cluster or namespace with an event in the window, most events first; a namespace sums across the clusters in scope. Their days add up to days */
7
+ /** With group_by, each cluster or namespace with an event in the window, most restarts and evictions first, then most OOM kills; a namespace sums across the clusters in scope. Their days add up to days */
7
8
  groups?: (LevelFour.ReliabilityGroup[] | null) | undefined;
8
9
  }
@@ -1,14 +1,23 @@
1
+ import type * as LevelFour from "../index.mjs";
1
2
  export interface ReliabilityTotals {
2
3
  oom_kills: number;
4
+ /** Container restarts. Kubernetes counts the restart an OOM kill causes, so they hold every OOM kill that restarted a container: never add oom_kills to them */
3
5
  restarts: number;
4
6
  /** Container-hours throttled a quarter of the time or more */
5
7
  throttled_hours: number;
8
+ /** Pods the kubelet evicted for node pressure */
6
9
  evictions: number;
10
+ /** At most the pods moved off a node that a Spot interruption, an instance event or a Karpenter disruption (consolidation, drift, expiry) removed. They leave through the Eviction API, so evictions does not count them. Per removal, each workload counts the most of its pods that ran on the node at once in the hour the removal began, a pod that left the node earlier in that hour included. DaemonSet and static pods go with their node and are not counted, nor is a removal that began while the agent was not watching. A day is measured from agent 0.6.2 on, when every watched hour a removal's pods are read from carries the pods' peaks. Null unless every day of the window watched measured it, so it never counts part of the window */
11
+ drained_pods: number | null;
7
12
  pending_pod_hours: number;
8
- /** Current workloads whose indicators put them at risk */
13
+ /** Current workloads at high risk: an OOM kill, an eviction, no ready replica in two batches in a row, or a crash loop. Medium and low never count. An ephemeral one, a pull-request environment, counts only with include_ephemeral */
9
14
  workloads_at_risk: number;
10
15
  /** Current containers whose pods run, or would run, with no CPU or no memory request */
11
16
  containers_without_requests: number;
12
17
  /** Current containers whose pods run, or would run, with no memory limit */
13
18
  containers_without_limits: number;
19
+ /** What the workloads with no ready replica make of the totals */
20
+ no_ready_replica: LevelFour.NoReadyShare;
21
+ /** What the workloads with pods Pending now make of the totals */
22
+ pods_pending: LevelFour.PendingShare;
14
23
  }
@@ -1,14 +1,23 @@
1
+ import type * as LevelFour from "../index.js";
1
2
  export interface ReliabilityTotals {
2
3
  oom_kills: number;
4
+ /** Container restarts. Kubernetes counts the restart an OOM kill causes, so they hold every OOM kill that restarted a container: never add oom_kills to them */
3
5
  restarts: number;
4
6
  /** Container-hours throttled a quarter of the time or more */
5
7
  throttled_hours: number;
8
+ /** Pods the kubelet evicted for node pressure */
6
9
  evictions: number;
10
+ /** At most the pods moved off a node that a Spot interruption, an instance event or a Karpenter disruption (consolidation, drift, expiry) removed. They leave through the Eviction API, so evictions does not count them. Per removal, each workload counts the most of its pods that ran on the node at once in the hour the removal began, a pod that left the node earlier in that hour included. DaemonSet and static pods go with their node and are not counted, nor is a removal that began while the agent was not watching. A day is measured from agent 0.6.2 on, when every watched hour a removal's pods are read from carries the pods' peaks. Null unless every day of the window watched measured it, so it never counts part of the window */
11
+ drained_pods: number | null;
7
12
  pending_pod_hours: number;
8
- /** Current workloads whose indicators put them at risk */
13
+ /** Current workloads at high risk: an OOM kill, an eviction, no ready replica in two batches in a row, or a crash loop. Medium and low never count. An ephemeral one, a pull-request environment, counts only with include_ephemeral */
9
14
  workloads_at_risk: number;
10
15
  /** Current containers whose pods run, or would run, with no CPU or no memory request */
11
16
  containers_without_requests: number;
12
17
  /** Current containers whose pods run, or would run, with no memory limit */
13
18
  containers_without_limits: number;
19
+ /** What the workloads with no ready replica make of the totals */
20
+ no_ready_replica: LevelFour.NoReadyShare;
21
+ /** What the workloads with pods Pending now make of the totals */
22
+ pods_pending: LevelFour.PendingShare;
14
23
  }
@@ -6,8 +6,11 @@ export interface ReplicaScaler {
6
6
  utilization_targets: LevelFour.UtilizationTarget[];
7
7
  /** Scales on something other than CPU or memory */
8
8
  custom_metric: boolean;
9
+ /** Hours the agent watched this autoscaler in the window, each hour at most the seconds it watched the cluster: the window's hours_watched for one there throughout, fewer for one that appeared or went part way through */
10
+ scaler_hours_watched: number;
11
+ /** Hours of scaler_hours_watched it sat at max replicas */
9
12
  hours_at_max: number;
10
- /** Of the hours the agent measured it in the window */
13
+ /** hours_at_max over scaler_hours_watched, a share of this autoscaler's own hours, not of the window's; null when the agent watched it for none */
11
14
  at_max_share?: (number | null) | undefined;
12
15
  /** Over the window; null when no hour was measured */
13
16
  replicas?: (LevelFour.ReplicaSpan | null) | undefined;
@@ -6,8 +6,11 @@ export interface ReplicaScaler {
6
6
  utilization_targets: LevelFour.UtilizationTarget[];
7
7
  /** Scales on something other than CPU or memory */
8
8
  custom_metric: boolean;
9
+ /** Hours the agent watched this autoscaler in the window, each hour at most the seconds it watched the cluster: the window's hours_watched for one there throughout, fewer for one that appeared or went part way through */
10
+ scaler_hours_watched: number;
11
+ /** Hours of scaler_hours_watched it sat at max replicas */
9
12
  hours_at_max: number;
10
- /** Of the hours the agent measured it in the window */
13
+ /** hours_at_max over scaler_hours_watched, a share of this autoscaler's own hours, not of the window's; null when the agent watched it for none */
11
14
  at_max_share?: (number | null) | undefined;
12
15
  /** Over the window; null when no hour was measured */
13
16
  replicas?: (LevelFour.ReplicaSpan | null) | undefined;
@@ -1,7 +1,9 @@
1
1
  export interface RequestsAverage {
2
- /** Requested CPU over the hours the row ran */
2
+ /** Requested CPU averaged over the seconds the agent watched its cluster on the days it ran, today's included, whether or not the bill has priced them */
3
3
  cpu_cores?: (number | null) | undefined;
4
4
  memory_gib?: (number | null) | undefined;
5
5
  /** Requested by the current volume claims */
6
6
  storage_gib?: (number | null) | undefined;
7
+ /** Why storage_gib is null: no_claims when the agent reports the row and no current claim of it asks for storage; null when storage_gib holds a figure, or on a row the agent does not report */
8
+ storage_unknown_reason?: ("no_claims" | null) | undefined;
7
9
  }
@@ -1,7 +1,9 @@
1
1
  export interface RequestsAverage {
2
- /** Requested CPU over the hours the row ran */
2
+ /** Requested CPU averaged over the seconds the agent watched its cluster on the days it ran, today's included, whether or not the bill has priced them */
3
3
  cpu_cores?: (number | null) | undefined;
4
4
  memory_gib?: (number | null) | undefined;
5
5
  /** Requested by the current volume claims */
6
6
  storage_gib?: (number | null) | undefined;
7
+ /** Why storage_gib is null: no_claims when the agent reports the row and no current claim of it asks for storage; null when storage_gib holds a figure, or on a row the agent does not report */
8
+ storage_unknown_reason?: ("no_claims" | null) | undefined;
7
9
  }
@@ -5,7 +5,7 @@
5
5
  export interface ResourceCapacity {
6
6
  /** The current nodes' allocatable */
7
7
  allocatable?: (number | null) | undefined;
8
- /** Each placed pod's own requests, init containers and overhead in */
8
+ /** What the pods hold now: each pod of the latest batch on a node it reported, at its own requests, init containers and overhead in, as the node groups and the Nodes list read it */
9
9
  requested?: (number | null) | undefined;
10
10
  /** Each placed pod's containers' limits, at the values the pods held; a container without one adds nothing */
11
11
  limits?: (number | null) | undefined;
@@ -5,7 +5,7 @@
5
5
  export interface ResourceCapacity {
6
6
  /** The current nodes' allocatable */
7
7
  allocatable?: (number | null) | undefined;
8
- /** Each placed pod's own requests, init containers and overhead in */
8
+ /** What the pods hold now: each pod of the latest batch on a node it reported, at its own requests, init containers and overhead in, as the node groups and the Nodes list read it */
9
9
  requested?: (number | null) | undefined;
10
10
  /** Each placed pod's containers' limits, at the values the pods held; a container without one adds nothing */
11
11
  limits?: (number | null) | undefined;
@@ -1,14 +1,20 @@
1
1
  import type * as LevelFour from "../index.mjs";
2
2
  export interface ResourceEfficiency {
3
- /** Average over the time the clusters existed in the window; the fleet and a cluster only */
3
+ /** What the scope held at once on average: its unit-seconds over hours_watched, so a cluster watched for part of the window adds that part and the figure is the series' points weighed by their seconds; the fleet and a cluster only */
4
4
  provisioned?: (number | null) | undefined;
5
5
  requested?: (number | null) | undefined;
6
6
  used?: (number | null) | undefined;
7
+ /** Storage only: no_claims when the agent watched the scope in the window and none of its volume claims held storage, so the storage figures are null because there is nothing to measure; null otherwise */
8
+ unknown_reason?: ("no_claims" | null) | undefined;
9
+ /** Storage only: the sizes used is out of; null for CPU and memory */
10
+ use_measured?: (LevelFour.UseMeasured | null) | undefined;
7
11
  /** (provisioned - requested) / provisioned */
8
12
  overprovisioned_pct?: (number | null) | undefined;
13
+ /** For storage, provisioned alone, at every scope: the claims' bill per provisioned GiB-hour, over the claims the bill priced and the agent reported every hour of that day. The bill charges a volume by its capacity, so requested and used are null */
9
14
  unit_cost: LevelFour.UnitCosts;
10
15
  /** The same on the net basis */
11
16
  unit_cost_net: LevelFour.UnitCosts;
17
+ /** Storage's over the claims the kubelet read, never a claim of unknown use */
12
18
  waste: LevelFour.WasteTotal;
13
19
  series: LevelFour.EfficiencyPoint[];
14
20
  }
@@ -1,14 +1,20 @@
1
1
  import type * as LevelFour from "../index.js";
2
2
  export interface ResourceEfficiency {
3
- /** Average over the time the clusters existed in the window; the fleet and a cluster only */
3
+ /** What the scope held at once on average: its unit-seconds over hours_watched, so a cluster watched for part of the window adds that part and the figure is the series' points weighed by their seconds; the fleet and a cluster only */
4
4
  provisioned?: (number | null) | undefined;
5
5
  requested?: (number | null) | undefined;
6
6
  used?: (number | null) | undefined;
7
+ /** Storage only: no_claims when the agent watched the scope in the window and none of its volume claims held storage, so the storage figures are null because there is nothing to measure; null otherwise */
8
+ unknown_reason?: ("no_claims" | null) | undefined;
9
+ /** Storage only: the sizes used is out of; null for CPU and memory */
10
+ use_measured?: (LevelFour.UseMeasured | null) | undefined;
7
11
  /** (provisioned - requested) / provisioned */
8
12
  overprovisioned_pct?: (number | null) | undefined;
13
+ /** For storage, provisioned alone, at every scope: the claims' bill per provisioned GiB-hour, over the claims the bill priced and the agent reported every hour of that day. The bill charges a volume by its capacity, so requested and used are null */
9
14
  unit_cost: LevelFour.UnitCosts;
10
15
  /** The same on the net basis */
11
16
  unit_cost_net: LevelFour.UnitCosts;
17
+ /** Storage's over the claims the kubelet read, never a claim of unknown use */
12
18
  waste: LevelFour.WasteTotal;
13
19
  series: LevelFour.EfficiencyPoint[];
14
20
  }
@@ -6,19 +6,23 @@ export interface RightsizedContainer {
6
6
  container: string;
7
7
  /** off when a person took the workload out of the namespace's rightsizing */
8
8
  mode: RightsizedContainer.Mode;
9
- /** off where the namespace only raises in place */
9
+ /** off where the namespace only raises in place, or where nothing turned its rightsizing on */
10
10
  namespace_mode: RightsizedContainer.NamespaceMode;
11
+ /** True where the API walks the container toward its target, only on paper in a preview namespace: the worker marked the target walked (its workload is opted in to recommendations and in preview or apply), its namespace is in preview or apply or an object decides the workload (Disabled reads as preview), no other tool sizes the namespace and nothing takes it out. A container with no target yet reads true where its namespace or an object would walk it. False where LevelFour only shows the target: the API never walks it, serves it to the webhook or takes a step for it, and phase, next and held_by_settings are null unless excluded_reason says why the loop leaves it. Whether the Savings page opens a candidate for it follows the namespace's opt-in to recommendations, not walked */
12
+ walked: boolean;
13
+ /** Who sizes the container today besides its template: vpa, a VPA that writes its requests; addon_resizer, an addon-resizer container in its pod; admission, another tool that set what its pods hold as they were admitted or in place, which neither a VPA nor LevelFour's own automation explains. Empty when only the template does */
14
+ sized_by?: RightsizedContainer.SizedBy.Item[] | undefined;
11
15
  /** Why the loop leaves it alone: workload_off when a person took the workload out, label_off when it carries levelfour.ai/automation=off, job for a Job or CronJob */
12
16
  excluded_reason?: (RightsizedContainer.ExcludedReason | null) | undefined;
13
17
  /** What the owner's template sets */
14
18
  manifest: LevelFour.ContainerResources;
15
19
  /** What the pods held for most of the last batch */
16
20
  live: LevelFour.ContainerResources;
17
- /** Where the worker's daily scan wants it */
21
+ /** Where the worker's daily scan wants it. Every workload outside the system namespaces and those a person turned off gets one, walked or not; null while the worker has not sized it */
18
22
  target?: (LevelFour.ContainerResources | null) | undefined;
19
23
  /** The step the API would take next */
20
24
  next?: (LevelFour.ContainerResources | null) | undefined;
21
- /** Null where the namespace only raises in place */
25
+ /** Null where the loop does not walk it (walked false) and no excluded_reason applies */
22
26
  phase?: (RightsizedContainer.Phase | null) | undefined;
23
27
  /** Why the target is held where it is */
24
28
  held_reason?: (RightsizedContainer.HeldReason | null) | undefined;
@@ -34,7 +38,7 @@ export interface RightsizedContainer {
34
38
  computed_at?: (string | null) | undefined;
35
39
  /** When the template's resources last changed */
36
40
  template_changed_at?: (string | null) | undefined;
37
- /** What the bill drops a month once it reaches the target; null unless every pool is priced */
41
+ /** What the bill drops a month once it reaches the target; null unless every pool is priced. For a container LevelFour only shows, what it takes off on top of the walked targets and the open candidates, so every container's effects together price sizing every workload; one with an open pull request candidate carries the candidate's effect */
38
42
  bill_effect?: (LevelFour.CostPair | null) | undefined;
39
43
  /** The same by node pool and resource */
40
44
  bill_effects: LevelFour.PoolBillEffect[];
@@ -58,13 +62,22 @@ export declare namespace RightsizedContainer {
58
62
  readonly Off: "off";
59
63
  };
60
64
  type Mode = (typeof Mode)[keyof typeof Mode];
61
- /** off where the namespace only raises in place */
65
+ /** off where the namespace only raises in place, or where nothing turned its rightsizing on */
62
66
  const NamespaceMode: {
63
67
  readonly Off: "off";
64
68
  readonly Preview: "preview";
65
69
  readonly Apply: "apply";
66
70
  };
67
71
  type NamespaceMode = (typeof NamespaceMode)[keyof typeof NamespaceMode];
72
+ type SizedBy = SizedBy.Item[];
73
+ namespace SizedBy {
74
+ const Item: {
75
+ readonly Vpa: "vpa";
76
+ readonly AddonResizer: "addon_resizer";
77
+ readonly Admission: "admission";
78
+ };
79
+ type Item = (typeof Item)[keyof typeof Item];
80
+ }
68
81
  const ExcludedReason: {
69
82
  readonly WorkloadOff: "workload_off";
70
83
  readonly LabelOff: "label_off";
@@ -122,6 +135,7 @@ export declare namespace RightsizedContainer {
122
135
  readonly WeeklyCap: "weekly_cap";
123
136
  readonly TooSoon: "too_soon";
124
137
  readonly RolloutInProgress: "rollout_in_progress";
138
+ readonly OtherRightsizer: "other_rightsizer";
125
139
  };
126
140
  type HeldByComponent = (typeof HeldByComponent)[keyof typeof HeldByComponent];
127
141
  const UnpricedReason: {
@@ -6,19 +6,23 @@ export interface RightsizedContainer {
6
6
  container: string;
7
7
  /** off when a person took the workload out of the namespace's rightsizing */
8
8
  mode: RightsizedContainer.Mode;
9
- /** off where the namespace only raises in place */
9
+ /** off where the namespace only raises in place, or where nothing turned its rightsizing on */
10
10
  namespace_mode: RightsizedContainer.NamespaceMode;
11
+ /** True where the API walks the container toward its target, only on paper in a preview namespace: the worker marked the target walked (its workload is opted in to recommendations and in preview or apply), its namespace is in preview or apply or an object decides the workload (Disabled reads as preview), no other tool sizes the namespace and nothing takes it out. A container with no target yet reads true where its namespace or an object would walk it. False where LevelFour only shows the target: the API never walks it, serves it to the webhook or takes a step for it, and phase, next and held_by_settings are null unless excluded_reason says why the loop leaves it. Whether the Savings page opens a candidate for it follows the namespace's opt-in to recommendations, not walked */
12
+ walked: boolean;
13
+ /** Who sizes the container today besides its template: vpa, a VPA that writes its requests; addon_resizer, an addon-resizer container in its pod; admission, another tool that set what its pods hold as they were admitted or in place, which neither a VPA nor LevelFour's own automation explains. Empty when only the template does */
14
+ sized_by?: RightsizedContainer.SizedBy.Item[] | undefined;
11
15
  /** Why the loop leaves it alone: workload_off when a person took the workload out, label_off when it carries levelfour.ai/automation=off, job for a Job or CronJob */
12
16
  excluded_reason?: (RightsizedContainer.ExcludedReason | null) | undefined;
13
17
  /** What the owner's template sets */
14
18
  manifest: LevelFour.ContainerResources;
15
19
  /** What the pods held for most of the last batch */
16
20
  live: LevelFour.ContainerResources;
17
- /** Where the worker's daily scan wants it */
21
+ /** Where the worker's daily scan wants it. Every workload outside the system namespaces and those a person turned off gets one, walked or not; null while the worker has not sized it */
18
22
  target?: (LevelFour.ContainerResources | null) | undefined;
19
23
  /** The step the API would take next */
20
24
  next?: (LevelFour.ContainerResources | null) | undefined;
21
- /** Null where the namespace only raises in place */
25
+ /** Null where the loop does not walk it (walked false) and no excluded_reason applies */
22
26
  phase?: (RightsizedContainer.Phase | null) | undefined;
23
27
  /** Why the target is held where it is */
24
28
  held_reason?: (RightsizedContainer.HeldReason | null) | undefined;
@@ -34,7 +38,7 @@ export interface RightsizedContainer {
34
38
  computed_at?: (string | null) | undefined;
35
39
  /** When the template's resources last changed */
36
40
  template_changed_at?: (string | null) | undefined;
37
- /** What the bill drops a month once it reaches the target; null unless every pool is priced */
41
+ /** What the bill drops a month once it reaches the target; null unless every pool is priced. For a container LevelFour only shows, what it takes off on top of the walked targets and the open candidates, so every container's effects together price sizing every workload; one with an open pull request candidate carries the candidate's effect */
38
42
  bill_effect?: (LevelFour.CostPair | null) | undefined;
39
43
  /** The same by node pool and resource */
40
44
  bill_effects: LevelFour.PoolBillEffect[];
@@ -58,13 +62,22 @@ export declare namespace RightsizedContainer {
58
62
  readonly Off: "off";
59
63
  };
60
64
  type Mode = (typeof Mode)[keyof typeof Mode];
61
- /** off where the namespace only raises in place */
65
+ /** off where the namespace only raises in place, or where nothing turned its rightsizing on */
62
66
  const NamespaceMode: {
63
67
  readonly Off: "off";
64
68
  readonly Preview: "preview";
65
69
  readonly Apply: "apply";
66
70
  };
67
71
  type NamespaceMode = (typeof NamespaceMode)[keyof typeof NamespaceMode];
72
+ type SizedBy = SizedBy.Item[];
73
+ namespace SizedBy {
74
+ const Item: {
75
+ readonly Vpa: "vpa";
76
+ readonly AddonResizer: "addon_resizer";
77
+ readonly Admission: "admission";
78
+ };
79
+ type Item = (typeof Item)[keyof typeof Item];
80
+ }
68
81
  const ExcludedReason: {
69
82
  readonly WorkloadOff: "workload_off";
70
83
  readonly LabelOff: "label_off";
@@ -122,6 +135,7 @@ export declare namespace RightsizedContainer {
122
135
  readonly WeeklyCap: "weekly_cap";
123
136
  readonly TooSoon: "too_soon";
124
137
  readonly RolloutInProgress: "rollout_in_progress";
138
+ readonly OtherRightsizer: "other_rightsizer";
125
139
  };
126
140
  type HeldByComponent = (typeof HeldByComponent)[keyof typeof HeldByComponent];
127
141
  const UnpricedReason: {
@@ -32,6 +32,14 @@ var RightsizedContainer;
32
32
  Preview: "preview",
33
33
  Apply: "apply"
34
34
  };
35
+ let SizedBy;
36
+ ((SizedBy2) => {
37
+ SizedBy2.Item = {
38
+ Vpa: "vpa",
39
+ AddonResizer: "addon_resizer",
40
+ Admission: "admission"
41
+ };
42
+ })(SizedBy = RightsizedContainer2.SizedBy || (RightsizedContainer2.SizedBy = {}));
35
43
  RightsizedContainer2.ExcludedReason = {
36
44
  WorkloadOff: "workload_off",
37
45
  LabelOff: "label_off",
@@ -85,7 +93,8 @@ var RightsizedContainer;
85
93
  DailyCap: "daily_cap",
86
94
  WeeklyCap: "weekly_cap",
87
95
  TooSoon: "too_soon",
88
- RolloutInProgress: "rollout_in_progress"
96
+ RolloutInProgress: "rollout_in_progress",
97
+ OtherRightsizer: "other_rightsizer"
89
98
  };
90
99
  RightsizedContainer2.UnpricedReason = {
91
100
  AccountNotConnected: "account_not_connected",