levelfour 1.17.0 → 1.18.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 (265) hide show
  1. package/dist/api/resources/recommendations/client/Client.js +2 -0
  2. package/dist/api/resources/recommendations/client/Client.mjs +2 -0
  3. package/dist/api/resources/recommendations/client/requests/GetProviderOverviewRecommendationsRequest.d.mts +2 -0
  4. package/dist/api/resources/recommendations/client/requests/GetProviderOverviewRecommendationsRequest.d.ts +2 -0
  5. package/dist/api/types/CheckedObject.d.mts +1 -1
  6. package/dist/api/types/CheckedObject.d.ts +1 -1
  7. package/dist/api/types/ClusterItem.d.mts +3 -1
  8. package/dist/api/types/ClusterItem.d.ts +3 -1
  9. package/dist/api/types/ClusterSummary.d.mts +3 -1
  10. package/dist/api/types/ClusterSummary.d.ts +3 -1
  11. package/dist/api/types/ConfigObjectView.d.mts +2 -11
  12. package/dist/api/types/ConfigObjectView.d.ts +2 -11
  13. package/dist/api/types/ConfigObjectView.js +0 -9
  14. package/dist/api/types/ConfigObjectView.mjs +0 -9
  15. package/dist/api/types/ConsolidationBlocker.d.mts +26 -0
  16. package/dist/api/types/ConsolidationBlocker.d.ts +26 -0
  17. package/dist/api/types/ConsolidationBlocker.js +19 -0
  18. package/dist/api/types/ConsolidationBlocker.mjs +19 -0
  19. package/dist/api/types/ConsolidationChange.d.mts +16 -0
  20. package/dist/api/types/ConsolidationChange.d.ts +16 -0
  21. package/dist/api/types/ConsolidationChange.js +13 -0
  22. package/dist/api/types/ConsolidationChange.mjs +13 -0
  23. package/dist/api/types/ConsolidationChangeDetail.d.mts +16 -0
  24. package/dist/api/types/ConsolidationChangeDetail.d.ts +16 -0
  25. package/dist/api/types/ConsolidationChangeDetail.js +13 -0
  26. package/dist/api/types/ConsolidationChangeDetail.mjs +13 -0
  27. package/dist/api/types/ConsolidationChangeTotals.d.mts +5 -1
  28. package/dist/api/types/ConsolidationChangeTotals.d.ts +5 -1
  29. package/dist/api/types/ConsolidationLever.d.mts +2 -0
  30. package/dist/api/types/ConsolidationLever.d.ts +2 -0
  31. package/dist/api/types/FleetConsolidationChange.d.mts +16 -0
  32. package/dist/api/types/FleetConsolidationChange.d.ts +16 -0
  33. package/dist/api/types/FleetConsolidationChange.js +13 -0
  34. package/dist/api/types/FleetConsolidationChange.mjs +13 -0
  35. package/dist/api/types/FleetConsolidationLever.d.mts +2 -0
  36. package/dist/api/types/FleetConsolidationLever.d.ts +2 -0
  37. package/dist/api/types/FleetNamespace.d.mts +3 -1
  38. package/dist/api/types/FleetNamespace.d.ts +3 -1
  39. package/dist/api/types/FleetSummary.d.mts +3 -1
  40. package/dist/api/types/FleetSummary.d.ts +3 -1
  41. package/dist/api/types/FleetVolume.d.mts +1 -1
  42. package/dist/api/types/FleetVolume.d.ts +1 -1
  43. package/dist/api/types/ForecastData.d.mts +3 -3
  44. package/dist/api/types/ForecastData.d.ts +3 -3
  45. package/dist/api/types/HeldChange.d.mts +16 -0
  46. package/dist/api/types/HeldChange.d.ts +16 -0
  47. package/dist/api/types/HeldChange.js +13 -0
  48. package/dist/api/types/HeldChange.mjs +13 -0
  49. package/dist/api/types/HeldOutcome.d.mts +9 -0
  50. package/dist/api/types/HeldOutcome.d.ts +9 -0
  51. package/dist/api/types/HeldOutcome.js +17 -0
  52. package/dist/api/types/HeldOutcome.mjs +1 -0
  53. package/dist/api/types/Impact.d.mts +40 -0
  54. package/dist/api/types/Impact.d.ts +40 -0
  55. package/dist/api/types/Impact.js +36 -0
  56. package/dist/api/types/Impact.mjs +12 -0
  57. package/dist/api/types/ImpactBeforeNow.d.mts +5 -0
  58. package/dist/api/types/ImpactBeforeNow.d.ts +5 -0
  59. package/dist/api/types/ImpactBeforeNow.js +17 -0
  60. package/dist/api/types/ImpactBeforeNow.mjs +1 -0
  61. package/dist/api/types/ImpactChange.d.mts +47 -0
  62. package/dist/api/types/ImpactChange.d.ts +47 -0
  63. package/dist/api/types/ImpactChange.js +44 -0
  64. package/dist/api/types/ImpactChange.mjs +20 -0
  65. package/dist/api/types/ImpactChangeList.d.mts +5 -0
  66. package/dist/api/types/ImpactChangeList.d.ts +5 -0
  67. package/dist/api/types/ImpactChangeList.js +17 -0
  68. package/dist/api/types/ImpactChangeList.mjs +1 -0
  69. package/dist/api/types/ImpactChangeListResponse.d.mts +6 -0
  70. package/dist/api/types/ImpactChangeListResponse.d.ts +6 -0
  71. package/dist/api/types/ImpactChangeListResponse.js +17 -0
  72. package/dist/api/types/ImpactChangeListResponse.mjs +1 -0
  73. package/dist/api/types/ImpactChanges.d.mts +8 -0
  74. package/dist/api/types/ImpactChanges.d.ts +8 -0
  75. package/dist/api/types/ImpactChanges.js +17 -0
  76. package/dist/api/types/ImpactChanges.mjs +1 -0
  77. package/dist/api/types/ImpactCluster.d.mts +22 -0
  78. package/dist/api/types/ImpactCluster.d.ts +22 -0
  79. package/dist/api/types/ImpactCluster.js +35 -0
  80. package/dist/api/types/ImpactCluster.mjs +11 -0
  81. package/dist/api/types/ImpactClusterListResponse.d.mts +6 -0
  82. package/dist/api/types/ImpactClusterListResponse.d.ts +6 -0
  83. package/dist/api/types/ImpactClusterListResponse.js +17 -0
  84. package/dist/api/types/ImpactClusterListResponse.mjs +1 -0
  85. package/dist/api/types/ImpactClusters.d.mts +7 -0
  86. package/dist/api/types/ImpactClusters.d.ts +7 -0
  87. package/dist/api/types/ImpactClusters.js +17 -0
  88. package/dist/api/types/ImpactClusters.mjs +1 -0
  89. package/dist/api/types/ImpactCount.d.mts +16 -0
  90. package/dist/api/types/ImpactCount.d.ts +16 -0
  91. package/dist/api/types/ImpactCount.js +17 -0
  92. package/dist/api/types/ImpactCount.mjs +1 -0
  93. package/dist/api/types/ImpactDaySpan.d.mts +4 -0
  94. package/dist/api/types/ImpactDaySpan.d.ts +4 -0
  95. package/dist/api/types/ImpactDaySpan.js +17 -0
  96. package/dist/api/types/ImpactDaySpan.mjs +1 -0
  97. package/dist/api/types/ImpactDaysCompared.d.mts +4 -0
  98. package/dist/api/types/ImpactDaysCompared.d.ts +4 -0
  99. package/dist/api/types/ImpactDaysCompared.js +17 -0
  100. package/dist/api/types/ImpactDaysCompared.mjs +1 -0
  101. package/dist/api/types/ImpactExcluded.d.mts +14 -0
  102. package/dist/api/types/ImpactExcluded.d.ts +14 -0
  103. package/dist/api/types/ImpactExcluded.js +35 -0
  104. package/dist/api/types/ImpactExcluded.mjs +11 -0
  105. package/dist/api/types/ImpactMeasuredThrough.d.mts +6 -0
  106. package/dist/api/types/ImpactMeasuredThrough.d.ts +6 -0
  107. package/dist/api/types/ImpactMeasuredThrough.js +17 -0
  108. package/dist/api/types/ImpactMeasuredThrough.mjs +1 -0
  109. package/dist/api/types/ImpactMeasuring.d.mts +6 -0
  110. package/dist/api/types/ImpactMeasuring.d.ts +6 -0
  111. package/dist/api/types/ImpactMeasuring.js +17 -0
  112. package/dist/api/types/ImpactMeasuring.mjs +1 -0
  113. package/dist/api/types/ImpactNamespace.d.mts +11 -0
  114. package/dist/api/types/ImpactNamespace.d.ts +11 -0
  115. package/dist/api/types/ImpactNamespace.js +17 -0
  116. package/dist/api/types/ImpactNamespace.mjs +1 -0
  117. package/dist/api/types/ImpactNamespaceListResponse.d.mts +6 -0
  118. package/dist/api/types/ImpactNamespaceListResponse.d.ts +6 -0
  119. package/dist/api/types/ImpactNamespaceListResponse.js +17 -0
  120. package/dist/api/types/ImpactNamespaceListResponse.mjs +1 -0
  121. package/dist/api/types/ImpactNamespaces.d.mts +6 -0
  122. package/dist/api/types/ImpactNamespaces.d.ts +6 -0
  123. package/dist/api/types/ImpactNamespaces.js +17 -0
  124. package/dist/api/types/ImpactNamespaces.mjs +1 -0
  125. package/dist/api/types/ImpactPace.d.mts +6 -0
  126. package/dist/api/types/ImpactPace.d.ts +6 -0
  127. package/dist/api/types/ImpactPace.js +17 -0
  128. package/dist/api/types/ImpactPace.mjs +1 -0
  129. package/dist/api/types/ImpactPoint.d.mts +21 -0
  130. package/dist/api/types/ImpactPoint.d.ts +21 -0
  131. package/dist/api/types/ImpactPoint.js +17 -0
  132. package/dist/api/types/ImpactPoint.mjs +1 -0
  133. package/dist/api/types/ImpactRequests.d.mts +7 -0
  134. package/dist/api/types/ImpactRequests.d.ts +7 -0
  135. package/dist/api/types/ImpactRequests.js +17 -0
  136. package/dist/api/types/ImpactRequests.mjs +1 -0
  137. package/dist/api/types/ImpactRequestsMoved.d.mts +10 -0
  138. package/dist/api/types/ImpactRequestsMoved.d.ts +10 -0
  139. package/dist/api/types/ImpactRequestsMoved.js +17 -0
  140. package/dist/api/types/ImpactRequestsMoved.mjs +1 -0
  141. package/dist/api/types/ImpactResponse.d.mts +6 -0
  142. package/dist/api/types/ImpactResponse.d.ts +6 -0
  143. package/dist/api/types/ImpactResponse.js +17 -0
  144. package/dist/api/types/ImpactResponse.mjs +1 -0
  145. package/dist/api/types/ImpactResultWindows.d.mts +5 -0
  146. package/dist/api/types/ImpactResultWindows.d.ts +5 -0
  147. package/dist/api/types/ImpactResultWindows.js +17 -0
  148. package/dist/api/types/ImpactResultWindows.mjs +1 -0
  149. package/dist/api/types/ImpactRowTotals.d.mts +6 -0
  150. package/dist/api/types/ImpactRowTotals.d.ts +6 -0
  151. package/dist/api/types/ImpactRowTotals.js +17 -0
  152. package/dist/api/types/ImpactRowTotals.mjs +1 -0
  153. package/dist/api/types/ImpactSaved.d.mts +4 -0
  154. package/dist/api/types/ImpactSaved.d.ts +4 -0
  155. package/dist/api/types/ImpactSaved.js +17 -0
  156. package/dist/api/types/ImpactSaved.mjs +1 -0
  157. package/dist/api/types/ImpactScope.d.mts +9 -0
  158. package/dist/api/types/ImpactScope.d.ts +9 -0
  159. package/dist/api/types/ImpactScope.js +17 -0
  160. package/dist/api/types/ImpactScope.mjs +1 -0
  161. package/dist/api/types/ImpactSeries.d.mts +5 -0
  162. package/dist/api/types/ImpactSeries.d.ts +5 -0
  163. package/dist/api/types/ImpactSeries.js +17 -0
  164. package/dist/api/types/ImpactSeries.mjs +1 -0
  165. package/dist/api/types/ImpactSeriesResponse.d.mts +6 -0
  166. package/dist/api/types/ImpactSeriesResponse.d.ts +6 -0
  167. package/dist/api/types/ImpactSeriesResponse.js +17 -0
  168. package/dist/api/types/ImpactSeriesResponse.mjs +1 -0
  169. package/dist/api/types/ImpactWasNowCount.d.mts +4 -0
  170. package/dist/api/types/ImpactWasNowCount.d.ts +4 -0
  171. package/dist/api/types/ImpactWasNowCount.js +17 -0
  172. package/dist/api/types/ImpactWasNowCount.mjs +1 -0
  173. package/dist/api/types/ImpactWasNowUsd.d.mts +4 -0
  174. package/dist/api/types/ImpactWasNowUsd.d.ts +4 -0
  175. package/dist/api/types/ImpactWasNowUsd.js +17 -0
  176. package/dist/api/types/ImpactWasNowUsd.mjs +1 -0
  177. package/dist/api/types/ImpactWasWindow.d.mts +8 -0
  178. package/dist/api/types/ImpactWasWindow.d.ts +8 -0
  179. package/dist/api/types/ImpactWasWindow.js +17 -0
  180. package/dist/api/types/ImpactWasWindow.mjs +1 -0
  181. package/dist/api/types/ImpactWaste.d.mts +20 -0
  182. package/dist/api/types/ImpactWaste.d.ts +20 -0
  183. package/dist/api/types/ImpactWaste.js +17 -0
  184. package/dist/api/types/ImpactWaste.mjs +1 -0
  185. package/dist/api/types/ImpactWorkload.d.mts +27 -0
  186. package/dist/api/types/ImpactWorkload.d.ts +27 -0
  187. package/dist/api/types/ImpactWorkload.js +40 -0
  188. package/dist/api/types/ImpactWorkload.mjs +16 -0
  189. package/dist/api/types/ImpactWorkloadDetail.d.mts +34 -0
  190. package/dist/api/types/ImpactWorkloadDetail.d.ts +34 -0
  191. package/dist/api/types/ImpactWorkloadDetail.js +40 -0
  192. package/dist/api/types/ImpactWorkloadDetail.mjs +16 -0
  193. package/dist/api/types/ImpactWorkloadListResponse.d.mts +6 -0
  194. package/dist/api/types/ImpactWorkloadListResponse.d.ts +6 -0
  195. package/dist/api/types/ImpactWorkloadListResponse.js +17 -0
  196. package/dist/api/types/ImpactWorkloadListResponse.mjs +1 -0
  197. package/dist/api/types/ImpactWorkloadResponse.d.mts +6 -0
  198. package/dist/api/types/ImpactWorkloadResponse.d.ts +6 -0
  199. package/dist/api/types/ImpactWorkloadResponse.js +17 -0
  200. package/dist/api/types/ImpactWorkloadResponse.mjs +1 -0
  201. package/dist/api/types/ImpactWorkloads.d.mts +6 -0
  202. package/dist/api/types/ImpactWorkloads.d.ts +6 -0
  203. package/dist/api/types/ImpactWorkloads.js +17 -0
  204. package/dist/api/types/ImpactWorkloads.mjs +1 -0
  205. package/dist/api/types/NamespaceAutomation.d.mts +8 -0
  206. package/dist/api/types/NamespaceAutomation.d.ts +8 -0
  207. package/dist/api/types/NamespaceAutomation.js +5 -0
  208. package/dist/api/types/NamespaceAutomation.mjs +5 -0
  209. package/dist/api/types/NamespaceItem.d.mts +3 -1
  210. package/dist/api/types/NamespaceItem.d.ts +3 -1
  211. package/dist/api/types/ProviderBreakdownItem.d.mts +2 -0
  212. package/dist/api/types/ProviderBreakdownItem.d.ts +2 -0
  213. package/dist/api/types/RecommendationDetail.d.mts +2 -0
  214. package/dist/api/types/RecommendationDetail.d.ts +2 -0
  215. package/dist/api/types/ReliabilityLens.d.mts +2 -0
  216. package/dist/api/types/ReliabilityLens.d.ts +2 -0
  217. package/dist/api/types/ReliabilityThresholds.d.mts +23 -0
  218. package/dist/api/types/ReliabilityThresholds.d.ts +23 -0
  219. package/dist/api/types/ReliabilityThresholds.js +17 -0
  220. package/dist/api/types/ReliabilityThresholds.mjs +1 -0
  221. package/dist/api/types/RightsizedContainer.d.mts +2 -0
  222. package/dist/api/types/RightsizedContainer.d.ts +2 -0
  223. package/dist/api/types/SavingsBasis.d.mts +8 -0
  224. package/dist/api/types/SavingsBasis.d.ts +8 -0
  225. package/dist/api/types/SavingsBasis.js +17 -0
  226. package/dist/api/types/SavingsBasis.mjs +1 -0
  227. package/dist/api/types/SavingsCollecting.d.mts +6 -0
  228. package/dist/api/types/SavingsCollecting.d.ts +6 -0
  229. package/dist/api/types/SavingsCollecting.js +17 -0
  230. package/dist/api/types/SavingsCollecting.mjs +1 -0
  231. package/dist/api/types/SavingsItem.d.mts +8 -3
  232. package/dist/api/types/SavingsItem.d.ts +8 -3
  233. package/dist/api/types/SavingsMissing.d.mts +6 -2
  234. package/dist/api/types/SavingsMissing.d.ts +6 -2
  235. package/dist/api/types/SavingsNode.d.mts +13 -0
  236. package/dist/api/types/SavingsNode.d.ts +13 -0
  237. package/dist/api/types/SavingsNow.d.mts +11 -0
  238. package/dist/api/types/SavingsNow.d.ts +11 -0
  239. package/dist/api/types/SavingsNow.js +5 -0
  240. package/dist/api/types/SavingsNow.mjs +5 -0
  241. package/dist/api/types/SavingsSection.d.mts +4 -0
  242. package/dist/api/types/SavingsSection.d.ts +4 -0
  243. package/dist/api/types/SetWorkloadAutomationRequest.d.mts +2 -2
  244. package/dist/api/types/SetWorkloadAutomationRequest.d.ts +2 -2
  245. package/dist/api/types/UnpricedFindings.d.mts +1 -1
  246. package/dist/api/types/UnpricedFindings.d.ts +1 -1
  247. package/dist/api/types/VolumeItem.d.mts +1 -1
  248. package/dist/api/types/VolumeItem.d.ts +1 -1
  249. package/dist/api/types/WorkloadItem.d.mts +3 -1
  250. package/dist/api/types/WorkloadItem.d.ts +3 -1
  251. package/dist/api/types/WorkloadItem.js +2 -0
  252. package/dist/api/types/WorkloadItem.mjs +2 -0
  253. package/dist/api/types/WorkloadListItem.d.mts +3 -1
  254. package/dist/api/types/WorkloadListItem.d.ts +3 -1
  255. package/dist/api/types/WorkloadListItem.js +2 -0
  256. package/dist/api/types/WorkloadListItem.mjs +2 -0
  257. package/dist/api/types/index.d.mts +42 -0
  258. package/dist/api/types/index.d.ts +42 -0
  259. package/dist/api/types/index.js +84 -0
  260. package/dist/api/types/index.mjs +42 -0
  261. package/dist/version.d.mts +1 -1
  262. package/dist/version.d.ts +1 -1
  263. package/dist/version.js +1 -1
  264. package/dist/version.mjs +1 -1
  265. package/package.json +1 -1
@@ -1754,12 +1754,14 @@ class RecommendationsClient {
1754
1754
  const {
1755
1755
  provider_id: providerId,
1756
1756
  service,
1757
+ service_not: serviceNot,
1757
1758
  cluster_id: clusterId,
1758
1759
  target_kind: targetKind,
1759
1760
  target_kind_not: targetKindNot
1760
1761
  } = request;
1761
1762
  const _queryParams = {
1762
1763
  service: service !== void 0 ? (0, import_json.toJson)(service) : void 0,
1764
+ service_not: serviceNot !== void 0 ? (0, import_json.toJson)(serviceNot) : void 0,
1763
1765
  cluster_id: clusterId !== void 0 ? (0, import_json.toJson)(clusterId) : void 0,
1764
1766
  target_kind: targetKind !== void 0 ? (0, import_json.toJson)(targetKind) : void 0,
1765
1767
  target_kind_not: targetKindNot !== void 0 ? (0, import_json.toJson)(targetKindNot) : void 0
@@ -1721,12 +1721,14 @@ class RecommendationsClient {
1721
1721
  const {
1722
1722
  provider_id: providerId,
1723
1723
  service,
1724
+ service_not: serviceNot,
1724
1725
  cluster_id: clusterId,
1725
1726
  target_kind: targetKind,
1726
1727
  target_kind_not: targetKindNot
1727
1728
  } = request;
1728
1729
  const _queryParams = {
1729
1730
  service: service !== void 0 ? toJson(service) : void 0,
1731
+ service_not: serviceNot !== void 0 ? toJson(serviceNot) : void 0,
1730
1732
  cluster_id: clusterId !== void 0 ? toJson(clusterId) : void 0,
1731
1733
  target_kind: targetKind !== void 0 ? toJson(targetKind) : void 0,
1732
1734
  target_kind_not: targetKindNot !== void 0 ? toJson(targetKindNot) : void 0
@@ -8,6 +8,8 @@ export interface GetProviderOverviewRecommendationsRequest {
8
8
  provider_id: string;
9
9
  /** Keep the savings of these services (e.g. Kubernetes). total_spend and the saved history stay the provider's */
10
10
  service?: string[] | null;
11
+ /** Leave out the savings of these services, as the main Savings menu's cloud box leaves out Kubernetes, which its own box reads from /k8s/savings (dashboard#1696). total_spend and the saved history stay the provider's */
12
+ service_not?: string[] | null;
11
13
  /** Keep the Kubernetes savings of these clusters, by k8s cluster id - can be repeated */
12
14
  cluster_id?: string[] | null;
13
15
  /** Keep the Kubernetes savings that change one of these: container (a container's requests or limits), workload, NodePool, NodeGroup or PersistentVolumeClaim. A row that names a container counts as container - can be repeated */
@@ -8,6 +8,8 @@ export interface GetProviderOverviewRecommendationsRequest {
8
8
  provider_id: string;
9
9
  /** Keep the savings of these services (e.g. Kubernetes). total_spend and the saved history stay the provider's */
10
10
  service?: string[] | null;
11
+ /** Leave out the savings of these services, as the main Savings menu's cloud box leaves out Kubernetes, which its own box reads from /k8s/savings (dashboard#1696). total_spend and the saved history stay the provider's */
12
+ service_not?: string[] | null;
11
13
  /** Keep the Kubernetes savings of these clusters, by k8s cluster id - can be repeated */
12
14
  cluster_id?: string[] | null;
13
15
  /** Keep the Kubernetes savings that change one of these: container (a container's requests or limits), workload, NodePool, NodeGroup or PersistentVolumeClaim. A row that names a container counts as container - can be repeated */
@@ -16,7 +16,7 @@ export interface CheckedObject {
16
16
  /** The recommendation to open, on a recommendation */
17
17
  recommendation_id?: (string | null) | undefined;
18
18
  /** Why it could not be priced, on to_check */
19
- reason?: ("not_on_bill" | null) | undefined;
19
+ reason?: (string | null) | undefined;
20
20
  }
21
21
  export declare namespace CheckedObject {
22
22
  /** node_pool: a NodePool or node group; autoscaler: an HPA; idle_workload: a workload */
@@ -16,7 +16,7 @@ export interface CheckedObject {
16
16
  /** The recommendation to open, on a recommendation */
17
17
  recommendation_id?: (string | null) | undefined;
18
18
  /** Why it could not be priced, on to_check */
19
- reason?: ("not_on_bill" | null) | undefined;
19
+ reason?: (string | null) | undefined;
20
20
  }
21
21
  export declare namespace CheckedObject {
22
22
  /** node_pool: a NodePool or node group; autoscaler: an HPA; idle_workload: a workload */
@@ -6,8 +6,10 @@ export interface ClusterItem {
6
6
  automation_status?: (ClusterItem.AutomationStatus | null) | undefined;
7
7
  /** The current workloads with no ready replica now, a crash loop and a workload that never started included */
8
8
  workloads_not_ready?: (number | null) | undefined;
9
- /** What can be saved now a month, GET /savings' totals.monthly: the available recommendations (as the savings page's Available tab counts them), plus the workloads that want replicas and have had none ready for a day and the nodes only they hold. The nodes other pods hold are not in it (levelfour-api#2203) */
9
+ /** What can be saved now a month, GET /savings' totals.monthly for the same clusters, read from the same items (levelfour-api#2217): the available recommendations (as the savings page's Available tab counts them), the workloads that want replicas and have had none ready for a day, the nodes only they hold and the orphaned claims the bill prices now. The nodes other pods hold are not in it (levelfour-api#2203) */
10
10
  available_savings_monthly?: (number | null) | undefined;
11
+ /** The same, net of the enterprise discount: GET /savings' totals.monthly_net, which its cost_monthly_net divides */
12
+ available_savings_monthly_net?: (number | null) | undefined;
11
13
  /** The namespaces set to Automated, whether or not they act (dashboard#1699) */
12
14
  automation_namespaces_set?: (number | null) | undefined;
13
15
  /** The namespaces the automation applies changes in by itself, as the cluster summary counts */
@@ -6,8 +6,10 @@ export interface ClusterItem {
6
6
  automation_status?: (ClusterItem.AutomationStatus | null) | undefined;
7
7
  /** The current workloads with no ready replica now, a crash loop and a workload that never started included */
8
8
  workloads_not_ready?: (number | null) | undefined;
9
- /** What can be saved now a month, GET /savings' totals.monthly: the available recommendations (as the savings page's Available tab counts them), plus the workloads that want replicas and have had none ready for a day and the nodes only they hold. The nodes other pods hold are not in it (levelfour-api#2203) */
9
+ /** What can be saved now a month, GET /savings' totals.monthly for the same clusters, read from the same items (levelfour-api#2217): the available recommendations (as the savings page's Available tab counts them), the workloads that want replicas and have had none ready for a day, the nodes only they hold and the orphaned claims the bill prices now. The nodes other pods hold are not in it (levelfour-api#2203) */
10
10
  available_savings_monthly?: (number | null) | undefined;
11
+ /** The same, net of the enterprise discount: GET /savings' totals.monthly_net, which its cost_monthly_net divides */
12
+ available_savings_monthly_net?: (number | null) | undefined;
11
13
  /** The namespaces set to Automated, whether or not they act (dashboard#1699) */
12
14
  automation_namespaces_set?: (number | null) | undefined;
13
15
  /** The namespaces the automation applies changes in by itself, as the cluster summary counts */
@@ -1,7 +1,9 @@
1
1
  import type * as LevelFour from "../index.mjs";
2
2
  export interface ClusterSummary {
3
- /** What can be saved now a month, GET /savings' totals.monthly: the available recommendations (as the savings page's Available tab counts them), plus the workloads that want replicas and have had none ready for a day and the nodes only they hold. The nodes other pods hold are not in it (levelfour-api#2203) */
3
+ /** What can be saved now a month, GET /savings' totals.monthly for the same clusters, read from the same items (levelfour-api#2217): the available recommendations (as the savings page's Available tab counts them), the workloads that want replicas and have had none ready for a day, the nodes only they hold and the orphaned claims the bill prices now. The nodes other pods hold are not in it (levelfour-api#2203) */
4
4
  available_savings_monthly?: (number | null) | undefined;
5
+ /** The same, net of the enterprise discount: GET /savings' totals.monthly_net, which its cost_monthly_net divides */
6
+ available_savings_monthly_net?: (number | null) | undefined;
5
7
  levers?: (LevelFour.ClusterLevers | null) | undefined;
6
8
  /** The available recommendations that are not a container change, so no switch turns them on: an HPA's bounds, an idle workload, a NodePool, node group or claim. With rightsizing and consolidation they add up to available_savings_monthly */
7
9
  other_savings?: (LevelFour.OtherSavings | null) | undefined;
@@ -1,7 +1,9 @@
1
1
  import type * as LevelFour from "../index.js";
2
2
  export interface ClusterSummary {
3
- /** What can be saved now a month, GET /savings' totals.monthly: the available recommendations (as the savings page's Available tab counts them), plus the workloads that want replicas and have had none ready for a day and the nodes only they hold. The nodes other pods hold are not in it (levelfour-api#2203) */
3
+ /** What can be saved now a month, GET /savings' totals.monthly for the same clusters, read from the same items (levelfour-api#2217): the available recommendations (as the savings page's Available tab counts them), the workloads that want replicas and have had none ready for a day, the nodes only they hold and the orphaned claims the bill prices now. The nodes other pods hold are not in it (levelfour-api#2203) */
4
4
  available_savings_monthly?: (number | null) | undefined;
5
+ /** The same, net of the enterprise discount: GET /savings' totals.monthly_net, which its cost_monthly_net divides */
6
+ available_savings_monthly_net?: (number | null) | undefined;
5
7
  levers?: (LevelFour.ClusterLevers | null) | undefined;
6
8
  /** The available recommendations that are not a container change, so no switch turns them on: an HPA's bounds, an idle workload, a NodePool, node group or claim. With rightsizing and consolidation they add up to available_savings_monthly */
7
9
  other_savings?: (LevelFour.OtherSavings | null) | undefined;
@@ -15,7 +15,8 @@ export interface ConfigObjectView {
15
15
  /** spec.automation of an AutomationConfig, or spec.policies of a RecommendationsConfig, as applied */
16
16
  spec?: Record<string, unknown> | undefined;
17
17
  ready: boolean;
18
- reason: ConfigObjectView.Reason;
18
+ /** One of Accepted, MissingApproval, Conflict, InvalidWindow, NamespaceNotAllowed, TooManyObjects, InvalidSpec, or one a newer component adds */
19
+ reason: string;
19
20
  message?: string | undefined;
20
21
  }
21
22
  export declare namespace ConfigObjectView {
@@ -28,14 +29,4 @@ export declare namespace ConfigObjectView {
28
29
  readonly WorkloadRecommendationsConfig: "WorkloadRecommendationsConfig";
29
30
  };
30
31
  type Kind = (typeof Kind)[keyof typeof Kind];
31
- const Reason: {
32
- readonly Accepted: "Accepted";
33
- readonly MissingApproval: "MissingApproval";
34
- readonly Conflict: "Conflict";
35
- readonly InvalidWindow: "InvalidWindow";
36
- readonly NamespaceNotAllowed: "NamespaceNotAllowed";
37
- readonly TooManyObjects: "TooManyObjects";
38
- readonly InvalidSpec: "InvalidSpec";
39
- };
40
- type Reason = (typeof Reason)[keyof typeof Reason];
41
32
  }
@@ -15,7 +15,8 @@ export interface ConfigObjectView {
15
15
  /** spec.automation of an AutomationConfig, or spec.policies of a RecommendationsConfig, as applied */
16
16
  spec?: Record<string, unknown> | undefined;
17
17
  ready: boolean;
18
- reason: ConfigObjectView.Reason;
18
+ /** One of Accepted, MissingApproval, Conflict, InvalidWindow, NamespaceNotAllowed, TooManyObjects, InvalidSpec, or one a newer component adds */
19
+ reason: string;
19
20
  message?: string | undefined;
20
21
  }
21
22
  export declare namespace ConfigObjectView {
@@ -28,14 +29,4 @@ export declare namespace ConfigObjectView {
28
29
  readonly WorkloadRecommendationsConfig: "WorkloadRecommendationsConfig";
29
30
  };
30
31
  type Kind = (typeof Kind)[keyof typeof Kind];
31
- const Reason: {
32
- readonly Accepted: "Accepted";
33
- readonly MissingApproval: "MissingApproval";
34
- readonly Conflict: "Conflict";
35
- readonly InvalidWindow: "InvalidWindow";
36
- readonly NamespaceNotAllowed: "NamespaceNotAllowed";
37
- readonly TooManyObjects: "TooManyObjects";
38
- readonly InvalidSpec: "InvalidSpec";
39
- };
40
- type Reason = (typeof Reason)[keyof typeof Reason];
41
32
  }
@@ -31,15 +31,6 @@ var ConfigObjectView;
31
31
  NamespaceRecommendationsConfig: "NamespaceRecommendationsConfig",
32
32
  WorkloadRecommendationsConfig: "WorkloadRecommendationsConfig"
33
33
  };
34
- ConfigObjectView2.Reason = {
35
- Accepted: "Accepted",
36
- MissingApproval: "MissingApproval",
37
- Conflict: "Conflict",
38
- InvalidWindow: "InvalidWindow",
39
- NamespaceNotAllowed: "NamespaceNotAllowed",
40
- TooManyObjects: "TooManyObjects",
41
- InvalidSpec: "InvalidSpec"
42
- };
43
34
  })(ConfigObjectView || (ConfigObjectView = {}));
44
35
  // Annotate the CommonJS export names for ESM import in node:
45
36
  0 && (module.exports = {
@@ -8,15 +8,6 @@ var ConfigObjectView;
8
8
  NamespaceRecommendationsConfig: "NamespaceRecommendationsConfig",
9
9
  WorkloadRecommendationsConfig: "WorkloadRecommendationsConfig"
10
10
  };
11
- ConfigObjectView2.Reason = {
12
- Accepted: "Accepted",
13
- MissingApproval: "MissingApproval",
14
- Conflict: "Conflict",
15
- InvalidWindow: "InvalidWindow",
16
- NamespaceNotAllowed: "NamespaceNotAllowed",
17
- TooManyObjects: "TooManyObjects",
18
- InvalidSpec: "InvalidSpec"
19
- };
20
11
  })(ConfigObjectView || (ConfigObjectView = {}));
21
12
  export {
22
13
  ConfigObjectView
@@ -30,6 +30,10 @@ export interface ConsolidationBlocker {
30
30
  scaler?: (LevelFour.WorkloadScaler | null) | undefined;
31
31
  /** static_pod alone for a static pod, which goes with its node */
32
32
  reasons: LevelFour.BlockingReason[];
33
+ /** The one fix the change needs, the first that applies: fix_or_scale_to_zero when its Deployment or StatefulSet wants replicas and has none ready; pdb_allows_no_eviction when a PodDisruptionBudget lets none of its pods leave; do_not_disrupt for Karpenter's annotation; other for the rest (affinity, taints, local storage, no controller). The pod's change, its workload or the pod itself, as the held changes list decides it, so a drawer shows the fix the list does (dashboard#1689) */
34
+ fix: ConsolidationBlocker.Fix;
35
+ /** With the fix other, the reason its sentence names: the first of its reasons in BlockerReason's order (do_not_disrupt, pdb, node_affinity, anti_affinity, topology_spread, taints, local_storage, safe_to_evict, kube_system, no_controller); null with any other fix, which names its own cause (dashboard#1689) */
36
+ fix_reason?: (ConsolidationBlocker.FixReason | null) | undefined;
33
37
  /** 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 */
34
38
  unhealthy_reasons?: LevelFour.UnhealthyReason[] | undefined;
35
39
  /** Its node's latest Unconsolidatable and DisruptionBlocked events in the last 24 hours, newest first, at most 5 */
@@ -56,6 +60,28 @@ export declare namespace ConsolidationBlocker {
56
60
  readonly ClusterAutoscaler: "cluster_autoscaler";
57
61
  };
58
62
  type Autoscaler = (typeof Autoscaler)[keyof typeof Autoscaler];
63
+ /** The one fix the change needs, the first that applies: fix_or_scale_to_zero when its Deployment or StatefulSet wants replicas and has none ready; pdb_allows_no_eviction when a PodDisruptionBudget lets none of its pods leave; do_not_disrupt for Karpenter's annotation; other for the rest (affinity, taints, local storage, no controller). The pod's change, its workload or the pod itself, as the held changes list decides it, so a drawer shows the fix the list does (dashboard#1689) */
64
+ const Fix: {
65
+ readonly FixOrScaleToZero: "fix_or_scale_to_zero";
66
+ readonly PdbAllowsNoEviction: "pdb_allows_no_eviction";
67
+ readonly DoNotDisrupt: "do_not_disrupt";
68
+ readonly Other: "other";
69
+ };
70
+ type Fix = (typeof Fix)[keyof typeof Fix];
71
+ const FixReason: {
72
+ readonly DoNotDisrupt: "do_not_disrupt";
73
+ readonly Pdb: "pdb";
74
+ readonly NodeAffinity: "node_affinity";
75
+ readonly AntiAffinity: "anti_affinity";
76
+ readonly TopologySpread: "topology_spread";
77
+ readonly Taints: "taints";
78
+ readonly LocalStorage: "local_storage";
79
+ readonly SafeToEvict: "safe_to_evict";
80
+ readonly KubeSystem: "kube_system";
81
+ readonly NoController: "no_controller";
82
+ readonly StaticPod: "static_pod";
83
+ };
84
+ type FixReason = (typeof FixReason)[keyof typeof FixReason];
59
85
  const NodePricedBy: {
60
86
  readonly NodeBill: "node_bill";
61
87
  readonly BillRate: "bill_rate";
@@ -30,6 +30,10 @@ export interface ConsolidationBlocker {
30
30
  scaler?: (LevelFour.WorkloadScaler | null) | undefined;
31
31
  /** static_pod alone for a static pod, which goes with its node */
32
32
  reasons: LevelFour.BlockingReason[];
33
+ /** The one fix the change needs, the first that applies: fix_or_scale_to_zero when its Deployment or StatefulSet wants replicas and has none ready; pdb_allows_no_eviction when a PodDisruptionBudget lets none of its pods leave; do_not_disrupt for Karpenter's annotation; other for the rest (affinity, taints, local storage, no controller). The pod's change, its workload or the pod itself, as the held changes list decides it, so a drawer shows the fix the list does (dashboard#1689) */
34
+ fix: ConsolidationBlocker.Fix;
35
+ /** With the fix other, the reason its sentence names: the first of its reasons in BlockerReason's order (do_not_disrupt, pdb, node_affinity, anti_affinity, topology_spread, taints, local_storage, safe_to_evict, kube_system, no_controller); null with any other fix, which names its own cause (dashboard#1689) */
36
+ fix_reason?: (ConsolidationBlocker.FixReason | null) | undefined;
33
37
  /** 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 */
34
38
  unhealthy_reasons?: LevelFour.UnhealthyReason[] | undefined;
35
39
  /** Its node's latest Unconsolidatable and DisruptionBlocked events in the last 24 hours, newest first, at most 5 */
@@ -56,6 +60,28 @@ export declare namespace ConsolidationBlocker {
56
60
  readonly ClusterAutoscaler: "cluster_autoscaler";
57
61
  };
58
62
  type Autoscaler = (typeof Autoscaler)[keyof typeof Autoscaler];
63
+ /** The one fix the change needs, the first that applies: fix_or_scale_to_zero when its Deployment or StatefulSet wants replicas and has none ready; pdb_allows_no_eviction when a PodDisruptionBudget lets none of its pods leave; do_not_disrupt for Karpenter's annotation; other for the rest (affinity, taints, local storage, no controller). The pod's change, its workload or the pod itself, as the held changes list decides it, so a drawer shows the fix the list does (dashboard#1689) */
64
+ const Fix: {
65
+ readonly FixOrScaleToZero: "fix_or_scale_to_zero";
66
+ readonly PdbAllowsNoEviction: "pdb_allows_no_eviction";
67
+ readonly DoNotDisrupt: "do_not_disrupt";
68
+ readonly Other: "other";
69
+ };
70
+ type Fix = (typeof Fix)[keyof typeof Fix];
71
+ const FixReason: {
72
+ readonly DoNotDisrupt: "do_not_disrupt";
73
+ readonly Pdb: "pdb";
74
+ readonly NodeAffinity: "node_affinity";
75
+ readonly AntiAffinity: "anti_affinity";
76
+ readonly TopologySpread: "topology_spread";
77
+ readonly Taints: "taints";
78
+ readonly LocalStorage: "local_storage";
79
+ readonly SafeToEvict: "safe_to_evict";
80
+ readonly KubeSystem: "kube_system";
81
+ readonly NoController: "no_controller";
82
+ readonly StaticPod: "static_pod";
83
+ };
84
+ type FixReason = (typeof FixReason)[keyof typeof FixReason];
59
85
  const NodePricedBy: {
60
86
  readonly NodeBill: "node_bill";
61
87
  readonly BillRate: "bill_rate";
@@ -27,6 +27,25 @@ var ConsolidationBlocker;
27
27
  Karpenter: "karpenter",
28
28
  ClusterAutoscaler: "cluster_autoscaler"
29
29
  };
30
+ ConsolidationBlocker2.Fix = {
31
+ FixOrScaleToZero: "fix_or_scale_to_zero",
32
+ PdbAllowsNoEviction: "pdb_allows_no_eviction",
33
+ DoNotDisrupt: "do_not_disrupt",
34
+ Other: "other"
35
+ };
36
+ ConsolidationBlocker2.FixReason = {
37
+ DoNotDisrupt: "do_not_disrupt",
38
+ Pdb: "pdb",
39
+ NodeAffinity: "node_affinity",
40
+ AntiAffinity: "anti_affinity",
41
+ TopologySpread: "topology_spread",
42
+ Taints: "taints",
43
+ LocalStorage: "local_storage",
44
+ SafeToEvict: "safe_to_evict",
45
+ KubeSystem: "kube_system",
46
+ NoController: "no_controller",
47
+ StaticPod: "static_pod"
48
+ };
30
49
  ConsolidationBlocker2.NodePricedBy = {
31
50
  NodeBill: "node_bill",
32
51
  BillRate: "bill_rate"
@@ -4,6 +4,25 @@ var ConsolidationBlocker;
4
4
  Karpenter: "karpenter",
5
5
  ClusterAutoscaler: "cluster_autoscaler"
6
6
  };
7
+ ConsolidationBlocker2.Fix = {
8
+ FixOrScaleToZero: "fix_or_scale_to_zero",
9
+ PdbAllowsNoEviction: "pdb_allows_no_eviction",
10
+ DoNotDisrupt: "do_not_disrupt",
11
+ Other: "other"
12
+ };
13
+ ConsolidationBlocker2.FixReason = {
14
+ DoNotDisrupt: "do_not_disrupt",
15
+ Pdb: "pdb",
16
+ NodeAffinity: "node_affinity",
17
+ AntiAffinity: "anti_affinity",
18
+ TopologySpread: "topology_spread",
19
+ Taints: "taints",
20
+ LocalStorage: "local_storage",
21
+ SafeToEvict: "safe_to_evict",
22
+ KubeSystem: "kube_system",
23
+ NoController: "no_controller",
24
+ StaticPod: "static_pod"
25
+ };
7
26
  ConsolidationBlocker2.NodePricedBy = {
8
27
  NodeBill: "node_bill",
9
28
  BillRate: "bill_rate"
@@ -10,6 +10,8 @@ export interface ConsolidationChange {
10
10
  name: string;
11
11
  /** The one fix the change needs, the first that applies: fix_or_scale_to_zero when its Deployment or StatefulSet wants replicas and has none ready; pdb_allows_no_eviction when a PodDisruptionBudget lets none of its pods leave; do_not_disrupt for Karpenter's annotation; other for the rest (affinity, taints, local storage, no controller) */
12
12
  fix: ConsolidationChange.Fix;
13
+ /** With the fix other, the reason its sentence names: the first of its reasons in BlockerReason's order (do_not_disrupt, pdb, node_affinity, anti_affinity, topology_spread, taints, local_storage, safe_to_evict, kube_system, no_controller); null with any other fix, which names its own cause (dashboard#1689) */
14
+ fix_reason?: (ConsolidationChange.FixReason | null) | undefined;
13
15
  /** The kinds of blocker its pods raise at the latest batch */
14
16
  reasons: ConsolidationChange.Reasons.Item[];
15
17
  /** Whether it holds a node now that would go once its blockers clear and no open recommendation covers */
@@ -42,6 +44,20 @@ export declare namespace ConsolidationChange {
42
44
  readonly Other: "other";
43
45
  };
44
46
  type Fix = (typeof Fix)[keyof typeof Fix];
47
+ const FixReason: {
48
+ readonly DoNotDisrupt: "do_not_disrupt";
49
+ readonly Pdb: "pdb";
50
+ readonly NodeAffinity: "node_affinity";
51
+ readonly AntiAffinity: "anti_affinity";
52
+ readonly TopologySpread: "topology_spread";
53
+ readonly Taints: "taints";
54
+ readonly LocalStorage: "local_storage";
55
+ readonly SafeToEvict: "safe_to_evict";
56
+ readonly KubeSystem: "kube_system";
57
+ readonly NoController: "no_controller";
58
+ readonly StaticPod: "static_pod";
59
+ };
60
+ type FixReason = (typeof FixReason)[keyof typeof FixReason];
45
61
  type Reasons = Reasons.Item[];
46
62
  namespace Reasons {
47
63
  const Item: {
@@ -10,6 +10,8 @@ export interface ConsolidationChange {
10
10
  name: string;
11
11
  /** The one fix the change needs, the first that applies: fix_or_scale_to_zero when its Deployment or StatefulSet wants replicas and has none ready; pdb_allows_no_eviction when a PodDisruptionBudget lets none of its pods leave; do_not_disrupt for Karpenter's annotation; other for the rest (affinity, taints, local storage, no controller) */
12
12
  fix: ConsolidationChange.Fix;
13
+ /** With the fix other, the reason its sentence names: the first of its reasons in BlockerReason's order (do_not_disrupt, pdb, node_affinity, anti_affinity, topology_spread, taints, local_storage, safe_to_evict, kube_system, no_controller); null with any other fix, which names its own cause (dashboard#1689) */
14
+ fix_reason?: (ConsolidationChange.FixReason | null) | undefined;
13
15
  /** The kinds of blocker its pods raise at the latest batch */
14
16
  reasons: ConsolidationChange.Reasons.Item[];
15
17
  /** Whether it holds a node now that would go once its blockers clear and no open recommendation covers */
@@ -42,6 +44,20 @@ export declare namespace ConsolidationChange {
42
44
  readonly Other: "other";
43
45
  };
44
46
  type Fix = (typeof Fix)[keyof typeof Fix];
47
+ const FixReason: {
48
+ readonly DoNotDisrupt: "do_not_disrupt";
49
+ readonly Pdb: "pdb";
50
+ readonly NodeAffinity: "node_affinity";
51
+ readonly AntiAffinity: "anti_affinity";
52
+ readonly TopologySpread: "topology_spread";
53
+ readonly Taints: "taints";
54
+ readonly LocalStorage: "local_storage";
55
+ readonly SafeToEvict: "safe_to_evict";
56
+ readonly KubeSystem: "kube_system";
57
+ readonly NoController: "no_controller";
58
+ readonly StaticPod: "static_pod";
59
+ };
60
+ type FixReason = (typeof FixReason)[keyof typeof FixReason];
45
61
  type Reasons = Reasons.Item[];
46
62
  namespace Reasons {
47
63
  const Item: {
@@ -29,6 +29,19 @@ var ConsolidationChange;
29
29
  DoNotDisrupt: "do_not_disrupt",
30
30
  Other: "other"
31
31
  };
32
+ ConsolidationChange2.FixReason = {
33
+ DoNotDisrupt: "do_not_disrupt",
34
+ Pdb: "pdb",
35
+ NodeAffinity: "node_affinity",
36
+ AntiAffinity: "anti_affinity",
37
+ TopologySpread: "topology_spread",
38
+ Taints: "taints",
39
+ LocalStorage: "local_storage",
40
+ SafeToEvict: "safe_to_evict",
41
+ KubeSystem: "kube_system",
42
+ NoController: "no_controller",
43
+ StaticPod: "static_pod"
44
+ };
32
45
  let Reasons;
33
46
  ((Reasons2) => {
34
47
  Reasons2.Item = {
@@ -6,6 +6,19 @@ var ConsolidationChange;
6
6
  DoNotDisrupt: "do_not_disrupt",
7
7
  Other: "other"
8
8
  };
9
+ ConsolidationChange2.FixReason = {
10
+ DoNotDisrupt: "do_not_disrupt",
11
+ Pdb: "pdb",
12
+ NodeAffinity: "node_affinity",
13
+ AntiAffinity: "anti_affinity",
14
+ TopologySpread: "topology_spread",
15
+ Taints: "taints",
16
+ LocalStorage: "local_storage",
17
+ SafeToEvict: "safe_to_evict",
18
+ KubeSystem: "kube_system",
19
+ NoController: "no_controller",
20
+ StaticPod: "static_pod"
21
+ };
9
22
  let Reasons;
10
23
  ((Reasons2) => {
11
24
  Reasons2.Item = {
@@ -7,6 +7,8 @@ export interface ConsolidationChangeDetail {
7
7
  name: string;
8
8
  /** The one fix the change needs, the first that applies: fix_or_scale_to_zero when its Deployment or StatefulSet wants replicas and has none ready; pdb_allows_no_eviction when a PodDisruptionBudget lets none of its pods leave; do_not_disrupt for Karpenter's annotation; other for the rest (affinity, taints, local storage, no controller) */
9
9
  fix: ConsolidationChangeDetail.Fix;
10
+ /** With the fix other, the reason its sentence names: the first of its reasons in BlockerReason's order (do_not_disrupt, pdb, node_affinity, anti_affinity, topology_spread, taints, local_storage, safe_to_evict, kube_system, no_controller); null with any other fix, which names its own cause (dashboard#1689) */
11
+ fix_reason?: (ConsolidationChangeDetail.FixReason | null) | undefined;
10
12
  /** The kinds of blocker its pods raise at the latest batch */
11
13
  reasons: ConsolidationChangeDetail.Reasons.Item[];
12
14
  /** Whether it holds a node now that would go once its blockers clear and no open recommendation covers */
@@ -45,6 +47,20 @@ export declare namespace ConsolidationChangeDetail {
45
47
  readonly Other: "other";
46
48
  };
47
49
  type Fix = (typeof Fix)[keyof typeof Fix];
50
+ const FixReason: {
51
+ readonly DoNotDisrupt: "do_not_disrupt";
52
+ readonly Pdb: "pdb";
53
+ readonly NodeAffinity: "node_affinity";
54
+ readonly AntiAffinity: "anti_affinity";
55
+ readonly TopologySpread: "topology_spread";
56
+ readonly Taints: "taints";
57
+ readonly LocalStorage: "local_storage";
58
+ readonly SafeToEvict: "safe_to_evict";
59
+ readonly KubeSystem: "kube_system";
60
+ readonly NoController: "no_controller";
61
+ readonly StaticPod: "static_pod";
62
+ };
63
+ type FixReason = (typeof FixReason)[keyof typeof FixReason];
48
64
  type Reasons = Reasons.Item[];
49
65
  namespace Reasons {
50
66
  const Item: {
@@ -7,6 +7,8 @@ export interface ConsolidationChangeDetail {
7
7
  name: string;
8
8
  /** The one fix the change needs, the first that applies: fix_or_scale_to_zero when its Deployment or StatefulSet wants replicas and has none ready; pdb_allows_no_eviction when a PodDisruptionBudget lets none of its pods leave; do_not_disrupt for Karpenter's annotation; other for the rest (affinity, taints, local storage, no controller) */
9
9
  fix: ConsolidationChangeDetail.Fix;
10
+ /** With the fix other, the reason its sentence names: the first of its reasons in BlockerReason's order (do_not_disrupt, pdb, node_affinity, anti_affinity, topology_spread, taints, local_storage, safe_to_evict, kube_system, no_controller); null with any other fix, which names its own cause (dashboard#1689) */
11
+ fix_reason?: (ConsolidationChangeDetail.FixReason | null) | undefined;
10
12
  /** The kinds of blocker its pods raise at the latest batch */
11
13
  reasons: ConsolidationChangeDetail.Reasons.Item[];
12
14
  /** Whether it holds a node now that would go once its blockers clear and no open recommendation covers */
@@ -45,6 +47,20 @@ export declare namespace ConsolidationChangeDetail {
45
47
  readonly Other: "other";
46
48
  };
47
49
  type Fix = (typeof Fix)[keyof typeof Fix];
50
+ const FixReason: {
51
+ readonly DoNotDisrupt: "do_not_disrupt";
52
+ readonly Pdb: "pdb";
53
+ readonly NodeAffinity: "node_affinity";
54
+ readonly AntiAffinity: "anti_affinity";
55
+ readonly TopologySpread: "topology_spread";
56
+ readonly Taints: "taints";
57
+ readonly LocalStorage: "local_storage";
58
+ readonly SafeToEvict: "safe_to_evict";
59
+ readonly KubeSystem: "kube_system";
60
+ readonly NoController: "no_controller";
61
+ readonly StaticPod: "static_pod";
62
+ };
63
+ type FixReason = (typeof FixReason)[keyof typeof FixReason];
48
64
  type Reasons = Reasons.Item[];
49
65
  namespace Reasons {
50
66
  const Item: {
@@ -29,6 +29,19 @@ var ConsolidationChangeDetail;
29
29
  DoNotDisrupt: "do_not_disrupt",
30
30
  Other: "other"
31
31
  };
32
+ ConsolidationChangeDetail2.FixReason = {
33
+ DoNotDisrupt: "do_not_disrupt",
34
+ Pdb: "pdb",
35
+ NodeAffinity: "node_affinity",
36
+ AntiAffinity: "anti_affinity",
37
+ TopologySpread: "topology_spread",
38
+ Taints: "taints",
39
+ LocalStorage: "local_storage",
40
+ SafeToEvict: "safe_to_evict",
41
+ KubeSystem: "kube_system",
42
+ NoController: "no_controller",
43
+ StaticPod: "static_pod"
44
+ };
32
45
  let Reasons;
33
46
  ((Reasons2) => {
34
47
  Reasons2.Item = {
@@ -6,6 +6,19 @@ var ConsolidationChangeDetail;
6
6
  DoNotDisrupt: "do_not_disrupt",
7
7
  Other: "other"
8
8
  };
9
+ ConsolidationChangeDetail2.FixReason = {
10
+ DoNotDisrupt: "do_not_disrupt",
11
+ Pdb: "pdb",
12
+ NodeAffinity: "node_affinity",
13
+ AntiAffinity: "anti_affinity",
14
+ TopologySpread: "topology_spread",
15
+ Taints: "taints",
16
+ LocalStorage: "local_storage",
17
+ SafeToEvict: "safe_to_evict",
18
+ KubeSystem: "kube_system",
19
+ NoController: "no_controller",
20
+ StaticPod: "static_pod"
21
+ };
9
22
  let Reasons;
10
23
  ((Reasons2) => {
11
24
  Reasons2.Item = {
@@ -8,12 +8,16 @@ export interface ConsolidationChangeTotals {
8
8
  changes: number;
9
9
  /** The changes listed: every one holding a node now */
10
10
  listed: number;
11
- /** The distinct nodes the listed changes hold now */
11
+ /** The distinct nodes held now, the levers.consolidation.count.of and the Nodes tab's figure: the ones the listed changes hold and the ones only workloads with an open recommendation hold, which are covered and count in no saving (dashboard#1689) */
12
12
  nodes: number;
13
+ /** The workloads holding those nodes, the recommendation's own included though its change is listed nowhere: the M of 'N nodes can't scale down because of M workloads' (dashboard#1689) */
14
+ workloads?: number | undefined;
13
15
  /** Of those, the ones that would go now and no recommendation covers: levers.consolidation.count.value */
14
16
  nodes_would_free: number;
15
17
  /** The changes that held a node that would go in the window and hold none now: not listed */
16
18
  not_counted?: number | undefined;
19
+ /** The held nodes by outcome, each node once, so they add up to nodes: goes, covered, then the reasons a node stays and the reasons it is not known, in that order, only outcomes with a node; the fleet's summed by outcome (dashboard#1689) */
20
+ outcomes?: LevelFour.HeldOutcome[] | undefined;
17
21
  /** History, outside every total; null when no hour was kept */
18
22
  window?: (LevelFour.HeldWindow | null) | undefined;
19
23
  /** The listed changes by the fix each needs, in that order, only fixes with one */
@@ -8,12 +8,16 @@ export interface ConsolidationChangeTotals {
8
8
  changes: number;
9
9
  /** The changes listed: every one holding a node now */
10
10
  listed: number;
11
- /** The distinct nodes the listed changes hold now */
11
+ /** The distinct nodes held now, the levers.consolidation.count.of and the Nodes tab's figure: the ones the listed changes hold and the ones only workloads with an open recommendation hold, which are covered and count in no saving (dashboard#1689) */
12
12
  nodes: number;
13
+ /** The workloads holding those nodes, the recommendation's own included though its change is listed nowhere: the M of 'N nodes can't scale down because of M workloads' (dashboard#1689) */
14
+ workloads?: number | undefined;
13
15
  /** Of those, the ones that would go now and no recommendation covers: levers.consolidation.count.value */
14
16
  nodes_would_free: number;
15
17
  /** The changes that held a node that would go in the window and hold none now: not listed */
16
18
  not_counted?: number | undefined;
19
+ /** The held nodes by outcome, each node once, so they add up to nodes: goes, covered, then the reasons a node stays and the reasons it is not known, in that order, only outcomes with a node; the fleet's summed by outcome (dashboard#1689) */
20
+ outcomes?: LevelFour.HeldOutcome[] | undefined;
17
21
  /** History, outside every total; null when no hour was kept */
18
22
  window?: (LevelFour.HeldWindow | null) | undefined;
19
23
  /** The listed changes by the fix each needs, in that order, only fixes with one */
@@ -17,4 +17,6 @@ export interface ConsolidationLever {
17
17
  changes?: number | undefined;
18
18
  /** The hours of the window its history counts (totals.window.hours_averaged); null with none */
19
19
  hours_averaged?: (number | null) | undefined;
20
+ /** When the batch its count was read from ended, the held nodes' as_of, so a screen says which hourly check the count is (dashboard#1689). Null when the count is */
21
+ count_at?: (string | null) | undefined;
20
22
  }
@@ -17,4 +17,6 @@ export interface ConsolidationLever {
17
17
  changes?: number | undefined;
18
18
  /** The hours of the window its history counts (totals.window.hours_averaged); null with none */
19
19
  hours_averaged?: (number | null) | undefined;
20
+ /** When the batch its count was read from ended, the held nodes' as_of, so a screen says which hourly check the count is (dashboard#1689). Null when the count is */
21
+ count_at?: (string | null) | undefined;
20
22
  }