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
@@ -11,6 +11,11 @@ var FleetSummary;
11
11
  Pending: "pending",
12
12
  None: "none"
13
13
  };
14
+ FleetSummary2.BillStatus = {
15
+ Priced: "priced",
16
+ AwaitingBill: "awaiting_bill",
17
+ NoAccount: "no_account"
18
+ };
14
19
  })(FleetSummary || (FleetSummary = {}));
15
20
  export {
16
21
  FleetSummary
@@ -13,8 +13,11 @@ export interface FleetVolume {
13
13
  requested_bytes?: (number | null) | undefined;
14
14
  /** What its volume provides */
15
15
  capacity_bytes?: (number | null) | undefined;
16
+ /** What the kubelet read; null while its use is unknown */
16
17
  used_bytes?: (number | null) | undefined;
17
- /** (capacity - used) / capacity */
18
+ /** Why used_bytes is null: not_mounted when no pod mounts the claim, so the kubelet reads nothing of it, no_reading when a pod mounts it and the kubelet sent no reading. Unknown use is never 0 */
19
+ use_unknown_reason?: (FleetVolume.UseUnknownReason | null) | undefined;
20
+ /** (capacity - used) / capacity; null while its use is unknown */
18
21
  over_provisioned_pct?: (number | null) | undefined;
19
22
  mounted_by: LevelFour.WorkloadRef[];
20
23
  /** Bound, yet no workload mounts it */
@@ -23,7 +26,26 @@ export interface FleetVolume {
23
26
  csi_driver?: (string | null) | undefined;
24
27
  volume_handle?: (string | null) | undefined;
25
28
  created_at?: (string | null) | undefined;
29
+ /** What the bill charged its volume over the window, every line naming the volume handle, whether or not the bill has priced the cluster's nodes yet */
26
30
  period_cost?: (number | null) | undefined;
31
+ /** Why period_cost is null: not_on_bill when the bill of the cluster's account arrives over the window and no line of it names the volume, no_bill when no bill for that account arrives (none connected, not there yet, or a cloud whose bill this does not read for volumes) */
32
+ cost_unknown_reason?: (FleetVolume.CostUnknownReason | null) | undefined;
33
+ /** While period_cost is null, the last day any bill line named the volume; null if none ever */
34
+ last_billed_on?: (string | null) | undefined;
35
+ /** While period_cost is null, what the tenant's own bill charged a GiB-month of the claim's volume type in the cluster's region over the window; null when the bill charged nothing for that type there. Never a list price */
36
+ bill_rate?: (LevelFour.ClaimBillRate | null) | undefined;
27
37
  cluster_id: string;
28
38
  cluster_name: string;
29
39
  }
40
+ export declare namespace FleetVolume {
41
+ const UseUnknownReason: {
42
+ readonly NotMounted: "not_mounted";
43
+ readonly NoReading: "no_reading";
44
+ };
45
+ type UseUnknownReason = (typeof UseUnknownReason)[keyof typeof UseUnknownReason];
46
+ const CostUnknownReason: {
47
+ readonly NotOnBill: "not_on_bill";
48
+ readonly NoBill: "no_bill";
49
+ };
50
+ type CostUnknownReason = (typeof CostUnknownReason)[keyof typeof CostUnknownReason];
51
+ }
@@ -13,8 +13,11 @@ export interface FleetVolume {
13
13
  requested_bytes?: (number | null) | undefined;
14
14
  /** What its volume provides */
15
15
  capacity_bytes?: (number | null) | undefined;
16
+ /** What the kubelet read; null while its use is unknown */
16
17
  used_bytes?: (number | null) | undefined;
17
- /** (capacity - used) / capacity */
18
+ /** Why used_bytes is null: not_mounted when no pod mounts the claim, so the kubelet reads nothing of it, no_reading when a pod mounts it and the kubelet sent no reading. Unknown use is never 0 */
19
+ use_unknown_reason?: (FleetVolume.UseUnknownReason | null) | undefined;
20
+ /** (capacity - used) / capacity; null while its use is unknown */
18
21
  over_provisioned_pct?: (number | null) | undefined;
19
22
  mounted_by: LevelFour.WorkloadRef[];
20
23
  /** Bound, yet no workload mounts it */
@@ -23,7 +26,26 @@ export interface FleetVolume {
23
26
  csi_driver?: (string | null) | undefined;
24
27
  volume_handle?: (string | null) | undefined;
25
28
  created_at?: (string | null) | undefined;
29
+ /** What the bill charged its volume over the window, every line naming the volume handle, whether or not the bill has priced the cluster's nodes yet */
26
30
  period_cost?: (number | null) | undefined;
31
+ /** Why period_cost is null: not_on_bill when the bill of the cluster's account arrives over the window and no line of it names the volume, no_bill when no bill for that account arrives (none connected, not there yet, or a cloud whose bill this does not read for volumes) */
32
+ cost_unknown_reason?: (FleetVolume.CostUnknownReason | null) | undefined;
33
+ /** While period_cost is null, the last day any bill line named the volume; null if none ever */
34
+ last_billed_on?: (string | null) | undefined;
35
+ /** While period_cost is null, what the tenant's own bill charged a GiB-month of the claim's volume type in the cluster's region over the window; null when the bill charged nothing for that type there. Never a list price */
36
+ bill_rate?: (LevelFour.ClaimBillRate | null) | undefined;
27
37
  cluster_id: string;
28
38
  cluster_name: string;
29
39
  }
40
+ export declare namespace FleetVolume {
41
+ const UseUnknownReason: {
42
+ readonly NotMounted: "not_mounted";
43
+ readonly NoReading: "no_reading";
44
+ };
45
+ type UseUnknownReason = (typeof UseUnknownReason)[keyof typeof UseUnknownReason];
46
+ const CostUnknownReason: {
47
+ readonly NotOnBill: "not_on_bill";
48
+ readonly NoBill: "no_bill";
49
+ };
50
+ type CostUnknownReason = (typeof CostUnknownReason)[keyof typeof CostUnknownReason];
51
+ }
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
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
+ };
6
10
  var __copyProps = (to, from, except, desc) => {
7
11
  if (from && typeof from === "object" || typeof from === "function") {
8
12
  for (let key of __getOwnPropNames(from))
@@ -13,5 +17,23 @@ var __copyProps = (to, from, except, desc) => {
13
17
  };
14
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
19
  var FleetVolume_exports = {};
20
+ __export(FleetVolume_exports, {
21
+ FleetVolume: () => FleetVolume
22
+ });
16
23
  module.exports = __toCommonJS(FleetVolume_exports);
24
+ var FleetVolume;
25
+ ((FleetVolume2) => {
26
+ FleetVolume2.UseUnknownReason = {
27
+ NotMounted: "not_mounted",
28
+ NoReading: "no_reading"
29
+ };
30
+ FleetVolume2.CostUnknownReason = {
31
+ NotOnBill: "not_on_bill",
32
+ NoBill: "no_bill"
33
+ };
34
+ })(FleetVolume || (FleetVolume = {}));
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ FleetVolume
38
+ });
17
39
  //# sourceMappingURL=FleetVolume.js.map
@@ -1 +1,15 @@
1
+ var FleetVolume;
2
+ ((FleetVolume2) => {
3
+ FleetVolume2.UseUnknownReason = {
4
+ NotMounted: "not_mounted",
5
+ NoReading: "no_reading"
6
+ };
7
+ FleetVolume2.CostUnknownReason = {
8
+ NotOnBill: "not_on_bill",
9
+ NoBill: "no_bill"
10
+ };
11
+ })(FleetVolume || (FleetVolume = {}));
12
+ export {
13
+ FleetVolume
14
+ };
1
15
  //# sourceMappingURL=FleetVolume.mjs.map
@@ -7,8 +7,12 @@ export interface FleetWorkload {
7
7
  name: string;
8
8
  /** No longer in the cluster, listed for its cost in the window */
9
9
  removed?: boolean | undefined;
10
+ /** A pull-request environment, which lives a few days: a label channel, or one ending in /channel, valued pr-<number>. The counts of workloads at risk leave it out unless the request passes include_ephemeral */
11
+ ephemeral?: boolean | undefined;
10
12
  /** As the cluster's workloads list reads it */
11
13
  cost?: (number | null) | undefined;
14
+ /** Why the cost total beside it is null, and null when it is not. compute_unpriced: its own containers, or its cluster's nodes, ran and the bill has priced none of them, yet or at all, as the cluster's bill_status tells; its storage and data transfer alone are no total. nothing_priced: its cluster's nodes are priced, or did not run, and nothing of it carries a priced cost */
15
+ cost_unknown_reason?: (FleetWorkload.CostUnknownReason | null) | undefined;
12
16
  /** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
13
17
  cost_net?: (number | null) | undefined;
14
18
  /** CPU and memory efficiency weighted by what each cost */
@@ -22,6 +26,11 @@ export interface FleetWorkload {
22
26
  reliability: LevelFour.ReliabilityCounts;
23
27
  }
24
28
  export declare namespace FleetWorkload {
29
+ const CostUnknownReason: {
30
+ readonly ComputeUnpriced: "compute_unpriced";
31
+ readonly NothingPriced: "nothing_priced";
32
+ };
33
+ type CostUnknownReason = (typeof CostUnknownReason)[keyof typeof CostUnknownReason];
25
34
  /** As the cluster's workloads list reads it: the worst severity among its indicators */
26
35
  const Risk: {
27
36
  readonly High: "high";
@@ -7,8 +7,12 @@ export interface FleetWorkload {
7
7
  name: string;
8
8
  /** No longer in the cluster, listed for its cost in the window */
9
9
  removed?: boolean | undefined;
10
+ /** A pull-request environment, which lives a few days: a label channel, or one ending in /channel, valued pr-<number>. The counts of workloads at risk leave it out unless the request passes include_ephemeral */
11
+ ephemeral?: boolean | undefined;
10
12
  /** As the cluster's workloads list reads it */
11
13
  cost?: (number | null) | undefined;
14
+ /** Why the cost total beside it is null, and null when it is not. compute_unpriced: its own containers, or its cluster's nodes, ran and the bill has priced none of them, yet or at all, as the cluster's bill_status tells; its storage and data transfer alone are no total. nothing_priced: its cluster's nodes are priced, or did not run, and nothing of it carries a priced cost */
15
+ cost_unknown_reason?: (FleetWorkload.CostUnknownReason | null) | undefined;
12
16
  /** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
13
17
  cost_net?: (number | null) | undefined;
14
18
  /** CPU and memory efficiency weighted by what each cost */
@@ -22,6 +26,11 @@ export interface FleetWorkload {
22
26
  reliability: LevelFour.ReliabilityCounts;
23
27
  }
24
28
  export declare namespace FleetWorkload {
29
+ const CostUnknownReason: {
30
+ readonly ComputeUnpriced: "compute_unpriced";
31
+ readonly NothingPriced: "nothing_priced";
32
+ };
33
+ type CostUnknownReason = (typeof CostUnknownReason)[keyof typeof CostUnknownReason];
25
34
  /** As the cluster's workloads list reads it: the worst severity among its indicators */
26
35
  const Risk: {
27
36
  readonly High: "high";
@@ -23,6 +23,10 @@ __export(FleetWorkload_exports, {
23
23
  module.exports = __toCommonJS(FleetWorkload_exports);
24
24
  var FleetWorkload;
25
25
  ((FleetWorkload2) => {
26
+ FleetWorkload2.CostUnknownReason = {
27
+ ComputeUnpriced: "compute_unpriced",
28
+ NothingPriced: "nothing_priced"
29
+ };
26
30
  FleetWorkload2.Risk = {
27
31
  High: "high",
28
32
  Medium: "medium",
@@ -1,5 +1,9 @@
1
1
  var FleetWorkload;
2
2
  ((FleetWorkload2) => {
3
+ FleetWorkload2.CostUnknownReason = {
4
+ ComputeUnpriced: "compute_unpriced",
5
+ NothingPriced: "nothing_priced"
6
+ };
3
7
  FleetWorkload2.Risk = {
4
8
  High: "high",
5
9
  Medium: "medium",
@@ -0,0 +1,23 @@
1
+ import type * as LevelFour from "../index.mjs";
2
+ export interface HeldResources {
3
+ /** The CPU and memory requests the pods hold */
4
+ requests: LevelFour.ResourceList;
5
+ /** The CPU and memory limits the pods hold */
6
+ limits: LevelFour.ResourceList;
7
+ /** Who set what the pods hold when the template did not: limit_range when the namespace's LimitRange defaults filled what the template leaves out, admission when the pods hold anything else (a webhook, or a resize in place). Null when the pods hold the template's values */
8
+ cpu_set_by?: (HeldResources.CpuSetBy | null) | undefined;
9
+ /** Who set what the pods hold when the template did not: limit_range when the namespace's LimitRange defaults filled what the template leaves out, admission when the pods hold anything else (a webhook, or a resize in place). Null when the pods hold the template's values */
10
+ memory_set_by?: (HeldResources.MemorySetBy | null) | undefined;
11
+ }
12
+ export declare namespace HeldResources {
13
+ const CpuSetBy: {
14
+ readonly LimitRange: "limit_range";
15
+ readonly Admission: "admission";
16
+ };
17
+ type CpuSetBy = (typeof CpuSetBy)[keyof typeof CpuSetBy];
18
+ const MemorySetBy: {
19
+ readonly LimitRange: "limit_range";
20
+ readonly Admission: "admission";
21
+ };
22
+ type MemorySetBy = (typeof MemorySetBy)[keyof typeof MemorySetBy];
23
+ }
@@ -0,0 +1,23 @@
1
+ import type * as LevelFour from "../index.js";
2
+ export interface HeldResources {
3
+ /** The CPU and memory requests the pods hold */
4
+ requests: LevelFour.ResourceList;
5
+ /** The CPU and memory limits the pods hold */
6
+ limits: LevelFour.ResourceList;
7
+ /** Who set what the pods hold when the template did not: limit_range when the namespace's LimitRange defaults filled what the template leaves out, admission when the pods hold anything else (a webhook, or a resize in place). Null when the pods hold the template's values */
8
+ cpu_set_by?: (HeldResources.CpuSetBy | null) | undefined;
9
+ /** Who set what the pods hold when the template did not: limit_range when the namespace's LimitRange defaults filled what the template leaves out, admission when the pods hold anything else (a webhook, or a resize in place). Null when the pods hold the template's values */
10
+ memory_set_by?: (HeldResources.MemorySetBy | null) | undefined;
11
+ }
12
+ export declare namespace HeldResources {
13
+ const CpuSetBy: {
14
+ readonly LimitRange: "limit_range";
15
+ readonly Admission: "admission";
16
+ };
17
+ type CpuSetBy = (typeof CpuSetBy)[keyof typeof CpuSetBy];
18
+ const MemorySetBy: {
19
+ readonly LimitRange: "limit_range";
20
+ readonly Admission: "admission";
21
+ };
22
+ type MemorySetBy = (typeof MemorySetBy)[keyof typeof MemorySetBy];
23
+ }
@@ -0,0 +1,39 @@
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 HeldResources_exports = {};
20
+ __export(HeldResources_exports, {
21
+ HeldResources: () => HeldResources
22
+ });
23
+ module.exports = __toCommonJS(HeldResources_exports);
24
+ var HeldResources;
25
+ ((HeldResources2) => {
26
+ HeldResources2.CpuSetBy = {
27
+ LimitRange: "limit_range",
28
+ Admission: "admission"
29
+ };
30
+ HeldResources2.MemorySetBy = {
31
+ LimitRange: "limit_range",
32
+ Admission: "admission"
33
+ };
34
+ })(HeldResources || (HeldResources = {}));
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ HeldResources
38
+ });
39
+ //# sourceMappingURL=HeldResources.js.map
@@ -0,0 +1,15 @@
1
+ var HeldResources;
2
+ ((HeldResources2) => {
3
+ HeldResources2.CpuSetBy = {
4
+ LimitRange: "limit_range",
5
+ Admission: "admission"
6
+ };
7
+ HeldResources2.MemorySetBy = {
8
+ LimitRange: "limit_range",
9
+ Admission: "admission"
10
+ };
11
+ })(HeldResources || (HeldResources = {}));
12
+ export {
13
+ HeldResources
14
+ };
15
+ //# sourceMappingURL=HeldResources.mjs.map
@@ -3,6 +3,8 @@ export interface Indicator {
3
3
  severity: Indicator.Severity;
4
4
  container?: (string | null) | undefined;
5
5
  detail: string;
6
+ /** The first moment its condition held in the window, in UTC: the first hour the hourly rows show it on the first day the window's days do (oom, restarts, cpu_throttling, eviction, the usage rules, hpa_at_max), the batch that first read no replica ready (no_ready_replica, crash_looping), the hour pods sat Pending, or the start of a trend. Null for a rule on the current configuration, and once that day's hourly rows are gone */
7
+ since?: (string | null) | undefined;
6
8
  }
7
9
  export declare namespace Indicator {
8
10
  const Id: {
@@ -17,15 +19,15 @@ export declare namespace Indicator {
17
19
  readonly CpuRequestNotSet: "cpu_request_not_set";
18
20
  readonly MemoryRequestNotSet: "memory_request_not_set";
19
21
  readonly MemoryLimitNotSet: "memory_limit_not_set";
20
- readonly RequestSetAtAdmission: "request_set_at_admission";
21
- readonly LivenessProbeMissing: "liveness_probe_missing";
22
- readonly ReadinessProbeMissing: "readiness_probe_missing";
22
+ readonly AdmittedLimitBelowHeap: "admitted_limit_below_heap";
23
23
  readonly OverProvisionedCpuRequest: "over_provisioned_cpu_request";
24
24
  readonly OverProvisionedMemoryRequest: "over_provisioned_memory_request";
25
25
  readonly Eviction: "eviction";
26
+ readonly NoReadyReplica: "no_ready_replica";
27
+ readonly CrashLooping: "crash_looping";
28
+ readonly PodsPending: "pods_pending";
26
29
  readonly HpaAtMax: "hpa_at_max";
27
30
  readonly PdbTooStrict: "pdb_too_strict";
28
- readonly PdbMissing: "pdb_missing";
29
31
  readonly NoTopologySpread: "no_topology_spread";
30
32
  };
31
33
  type Id = (typeof Id)[keyof typeof Id];
@@ -3,6 +3,8 @@ export interface Indicator {
3
3
  severity: Indicator.Severity;
4
4
  container?: (string | null) | undefined;
5
5
  detail: string;
6
+ /** The first moment its condition held in the window, in UTC: the first hour the hourly rows show it on the first day the window's days do (oom, restarts, cpu_throttling, eviction, the usage rules, hpa_at_max), the batch that first read no replica ready (no_ready_replica, crash_looping), the hour pods sat Pending, or the start of a trend. Null for a rule on the current configuration, and once that day's hourly rows are gone */
7
+ since?: (string | null) | undefined;
6
8
  }
7
9
  export declare namespace Indicator {
8
10
  const Id: {
@@ -17,15 +19,15 @@ export declare namespace Indicator {
17
19
  readonly CpuRequestNotSet: "cpu_request_not_set";
18
20
  readonly MemoryRequestNotSet: "memory_request_not_set";
19
21
  readonly MemoryLimitNotSet: "memory_limit_not_set";
20
- readonly RequestSetAtAdmission: "request_set_at_admission";
21
- readonly LivenessProbeMissing: "liveness_probe_missing";
22
- readonly ReadinessProbeMissing: "readiness_probe_missing";
22
+ readonly AdmittedLimitBelowHeap: "admitted_limit_below_heap";
23
23
  readonly OverProvisionedCpuRequest: "over_provisioned_cpu_request";
24
24
  readonly OverProvisionedMemoryRequest: "over_provisioned_memory_request";
25
25
  readonly Eviction: "eviction";
26
+ readonly NoReadyReplica: "no_ready_replica";
27
+ readonly CrashLooping: "crash_looping";
28
+ readonly PodsPending: "pods_pending";
26
29
  readonly HpaAtMax: "hpa_at_max";
27
30
  readonly PdbTooStrict: "pdb_too_strict";
28
- readonly PdbMissing: "pdb_missing";
29
31
  readonly NoTopologySpread: "no_topology_spread";
30
32
  };
31
33
  type Id = (typeof Id)[keyof typeof Id];
@@ -35,15 +35,15 @@ var Indicator;
35
35
  CpuRequestNotSet: "cpu_request_not_set",
36
36
  MemoryRequestNotSet: "memory_request_not_set",
37
37
  MemoryLimitNotSet: "memory_limit_not_set",
38
- RequestSetAtAdmission: "request_set_at_admission",
39
- LivenessProbeMissing: "liveness_probe_missing",
40
- ReadinessProbeMissing: "readiness_probe_missing",
38
+ AdmittedLimitBelowHeap: "admitted_limit_below_heap",
41
39
  OverProvisionedCpuRequest: "over_provisioned_cpu_request",
42
40
  OverProvisionedMemoryRequest: "over_provisioned_memory_request",
43
41
  Eviction: "eviction",
42
+ NoReadyReplica: "no_ready_replica",
43
+ CrashLooping: "crash_looping",
44
+ PodsPending: "pods_pending",
44
45
  HpaAtMax: "hpa_at_max",
45
46
  PdbTooStrict: "pdb_too_strict",
46
- PdbMissing: "pdb_missing",
47
47
  NoTopologySpread: "no_topology_spread"
48
48
  };
49
49
  Indicator2.Severity = {
@@ -12,15 +12,15 @@ var Indicator;
12
12
  CpuRequestNotSet: "cpu_request_not_set",
13
13
  MemoryRequestNotSet: "memory_request_not_set",
14
14
  MemoryLimitNotSet: "memory_limit_not_set",
15
- RequestSetAtAdmission: "request_set_at_admission",
16
- LivenessProbeMissing: "liveness_probe_missing",
17
- ReadinessProbeMissing: "readiness_probe_missing",
15
+ AdmittedLimitBelowHeap: "admitted_limit_below_heap",
18
16
  OverProvisionedCpuRequest: "over_provisioned_cpu_request",
19
17
  OverProvisionedMemoryRequest: "over_provisioned_memory_request",
20
18
  Eviction: "eviction",
19
+ NoReadyReplica: "no_ready_replica",
20
+ CrashLooping: "crash_looping",
21
+ PodsPending: "pods_pending",
21
22
  HpaAtMax: "hpa_at_max",
22
23
  PdbTooStrict: "pdb_too_strict",
23
- PdbMissing: "pdb_missing",
24
24
  NoTopologySpread: "no_topology_spread"
25
25
  };
26
26
  Indicator2.Severity = {
@@ -18,15 +18,15 @@ export declare namespace IndicatorCount {
18
18
  readonly CpuRequestNotSet: "cpu_request_not_set";
19
19
  readonly MemoryRequestNotSet: "memory_request_not_set";
20
20
  readonly MemoryLimitNotSet: "memory_limit_not_set";
21
- readonly RequestSetAtAdmission: "request_set_at_admission";
22
- readonly LivenessProbeMissing: "liveness_probe_missing";
23
- readonly ReadinessProbeMissing: "readiness_probe_missing";
21
+ readonly AdmittedLimitBelowHeap: "admitted_limit_below_heap";
24
22
  readonly OverProvisionedCpuRequest: "over_provisioned_cpu_request";
25
23
  readonly OverProvisionedMemoryRequest: "over_provisioned_memory_request";
26
24
  readonly Eviction: "eviction";
25
+ readonly NoReadyReplica: "no_ready_replica";
26
+ readonly CrashLooping: "crash_looping";
27
+ readonly PodsPending: "pods_pending";
27
28
  readonly HpaAtMax: "hpa_at_max";
28
29
  readonly PdbTooStrict: "pdb_too_strict";
29
- readonly PdbMissing: "pdb_missing";
30
30
  readonly NoTopologySpread: "no_topology_spread";
31
31
  };
32
32
  type Id = (typeof Id)[keyof typeof Id];
@@ -18,15 +18,15 @@ export declare namespace IndicatorCount {
18
18
  readonly CpuRequestNotSet: "cpu_request_not_set";
19
19
  readonly MemoryRequestNotSet: "memory_request_not_set";
20
20
  readonly MemoryLimitNotSet: "memory_limit_not_set";
21
- readonly RequestSetAtAdmission: "request_set_at_admission";
22
- readonly LivenessProbeMissing: "liveness_probe_missing";
23
- readonly ReadinessProbeMissing: "readiness_probe_missing";
21
+ readonly AdmittedLimitBelowHeap: "admitted_limit_below_heap";
24
22
  readonly OverProvisionedCpuRequest: "over_provisioned_cpu_request";
25
23
  readonly OverProvisionedMemoryRequest: "over_provisioned_memory_request";
26
24
  readonly Eviction: "eviction";
25
+ readonly NoReadyReplica: "no_ready_replica";
26
+ readonly CrashLooping: "crash_looping";
27
+ readonly PodsPending: "pods_pending";
27
28
  readonly HpaAtMax: "hpa_at_max";
28
29
  readonly PdbTooStrict: "pdb_too_strict";
29
- readonly PdbMissing: "pdb_missing";
30
30
  readonly NoTopologySpread: "no_topology_spread";
31
31
  };
32
32
  type Id = (typeof Id)[keyof typeof Id];
@@ -35,15 +35,15 @@ var IndicatorCount;
35
35
  CpuRequestNotSet: "cpu_request_not_set",
36
36
  MemoryRequestNotSet: "memory_request_not_set",
37
37
  MemoryLimitNotSet: "memory_limit_not_set",
38
- RequestSetAtAdmission: "request_set_at_admission",
39
- LivenessProbeMissing: "liveness_probe_missing",
40
- ReadinessProbeMissing: "readiness_probe_missing",
38
+ AdmittedLimitBelowHeap: "admitted_limit_below_heap",
41
39
  OverProvisionedCpuRequest: "over_provisioned_cpu_request",
42
40
  OverProvisionedMemoryRequest: "over_provisioned_memory_request",
43
41
  Eviction: "eviction",
42
+ NoReadyReplica: "no_ready_replica",
43
+ CrashLooping: "crash_looping",
44
+ PodsPending: "pods_pending",
44
45
  HpaAtMax: "hpa_at_max",
45
46
  PdbTooStrict: "pdb_too_strict",
46
- PdbMissing: "pdb_missing",
47
47
  NoTopologySpread: "no_topology_spread"
48
48
  };
49
49
  IndicatorCount2.Severity = {
@@ -12,15 +12,15 @@ var IndicatorCount;
12
12
  CpuRequestNotSet: "cpu_request_not_set",
13
13
  MemoryRequestNotSet: "memory_request_not_set",
14
14
  MemoryLimitNotSet: "memory_limit_not_set",
15
- RequestSetAtAdmission: "request_set_at_admission",
16
- LivenessProbeMissing: "liveness_probe_missing",
17
- ReadinessProbeMissing: "readiness_probe_missing",
15
+ AdmittedLimitBelowHeap: "admitted_limit_below_heap",
18
16
  OverProvisionedCpuRequest: "over_provisioned_cpu_request",
19
17
  OverProvisionedMemoryRequest: "over_provisioned_memory_request",
20
18
  Eviction: "eviction",
19
+ NoReadyReplica: "no_ready_replica",
20
+ CrashLooping: "crash_looping",
21
+ PodsPending: "pods_pending",
21
22
  HpaAtMax: "hpa_at_max",
22
23
  PdbTooStrict: "pdb_too_strict",
23
- PdbMissing: "pdb_missing",
24
24
  NoTopologySpread: "no_topology_spread"
25
25
  };
26
26
  IndicatorCount2.Severity = {
@@ -9,4 +9,8 @@ export interface KubernetesDataAvailability {
9
9
  volumes: boolean;
10
10
  /** YYYY-MM-DD, the first day a connected cluster's nodes have a cost, or the one cluster_id names; null until one does */
11
11
  first_day?: (string | null) | undefined;
12
+ /** When the agent first watched a connected cluster, the fleet's earliest or the one cluster_id names; null until an agent reports */
13
+ first_watched_at?: (string | null) | undefined;
14
+ /** Every hour the agent watched since first_watched_at, as the seconds its windows cover over 3600; for several clusters, each hour counts the longest any of them was watched */
15
+ hours_watched_total?: number | undefined;
12
16
  }
@@ -9,4 +9,8 @@ export interface KubernetesDataAvailability {
9
9
  volumes: boolean;
10
10
  /** YYYY-MM-DD, the first day a connected cluster's nodes have a cost, or the one cluster_id names; null until one does */
11
11
  first_day?: (string | null) | undefined;
12
+ /** When the agent first watched a connected cluster, the fleet's earliest or the one cluster_id names; null until an agent reports */
13
+ first_watched_at?: (string | null) | undefined;
14
+ /** Every hour the agent watched since first_watched_at, as the seconds its windows cover over 3600; for several clusters, each hour counts the longest any of them was watched */
15
+ hours_watched_total?: number | undefined;
12
16
  }
@@ -1,3 +1,4 @@
1
+ import type * as LevelFour from "../index.mjs";
1
2
  export interface NamespaceAutomation {
2
3
  namespace: string;
3
4
  /** Automation acts only where recommendations are on */
@@ -24,6 +25,20 @@ export interface NamespaceAutomation {
24
25
  turned_on_at?: (string | null) | undefined;
25
26
  /** It carries levelfour.ai/automation=off, so the component never acts there whatever is set here */
26
27
  blocked_by_label: boolean;
28
+ /** The tools besides LevelFour sizing its workloads, so the component never acts there whatever is set here; empty when none does */
29
+ other_rightsizers: LevelFour.OtherRightsizer[];
30
+ /** taken_over once an admin took it over from another rightsizer: new pods start at its containers' baselines whatever the mode */
31
+ takeover?: NamespaceAutomation.Takeover | undefined;
32
+ /** The admin who marked it taken over */
33
+ takeover_set_by?: (string | null) | undefined;
34
+ /** The mark: when it was marked taken over */
35
+ takeover_set_at?: (string | null) | undefined;
36
+ /** Until the freeze, when the component first reported it without the other tool's label */
37
+ takeover_label_off_at?: (string | null) | undefined;
38
+ /** When its baselines froze, at the first batch after the other tool's label went off with no value only another tool explains since; the automation stays out of it as other_rightsizer until then */
39
+ takeover_frozen_at?: (string | null) | undefined;
40
+ /** What keeps its containers off their baseline; empty when not taken over */
41
+ takeover_blockers?: LevelFour.TakeoverBlocker[] | undefined;
27
42
  }
28
43
  export declare namespace NamespaceAutomation {
29
44
  /** Automation acts only where recommendations are on */
@@ -57,4 +72,10 @@ export declare namespace NamespaceAutomation {
57
72
  readonly Apply: "apply";
58
73
  };
59
74
  type Mode = (typeof Mode)[keyof typeof Mode];
75
+ /** taken_over once an admin took it over from another rightsizer: new pods start at its containers' baselines whatever the mode */
76
+ const Takeover: {
77
+ readonly Off: "off";
78
+ readonly TakenOver: "taken_over";
79
+ };
80
+ type Takeover = (typeof Takeover)[keyof typeof Takeover];
60
81
  }
@@ -1,3 +1,4 @@
1
+ import type * as LevelFour from "../index.js";
1
2
  export interface NamespaceAutomation {
2
3
  namespace: string;
3
4
  /** Automation acts only where recommendations are on */
@@ -24,6 +25,20 @@ export interface NamespaceAutomation {
24
25
  turned_on_at?: (string | null) | undefined;
25
26
  /** It carries levelfour.ai/automation=off, so the component never acts there whatever is set here */
26
27
  blocked_by_label: boolean;
28
+ /** The tools besides LevelFour sizing its workloads, so the component never acts there whatever is set here; empty when none does */
29
+ other_rightsizers: LevelFour.OtherRightsizer[];
30
+ /** taken_over once an admin took it over from another rightsizer: new pods start at its containers' baselines whatever the mode */
31
+ takeover?: NamespaceAutomation.Takeover | undefined;
32
+ /** The admin who marked it taken over */
33
+ takeover_set_by?: (string | null) | undefined;
34
+ /** The mark: when it was marked taken over */
35
+ takeover_set_at?: (string | null) | undefined;
36
+ /** Until the freeze, when the component first reported it without the other tool's label */
37
+ takeover_label_off_at?: (string | null) | undefined;
38
+ /** When its baselines froze, at the first batch after the other tool's label went off with no value only another tool explains since; the automation stays out of it as other_rightsizer until then */
39
+ takeover_frozen_at?: (string | null) | undefined;
40
+ /** What keeps its containers off their baseline; empty when not taken over */
41
+ takeover_blockers?: LevelFour.TakeoverBlocker[] | undefined;
27
42
  }
28
43
  export declare namespace NamespaceAutomation {
29
44
  /** Automation acts only where recommendations are on */
@@ -57,4 +72,10 @@ export declare namespace NamespaceAutomation {
57
72
  readonly Apply: "apply";
58
73
  };
59
74
  type Mode = (typeof Mode)[keyof typeof Mode];
75
+ /** taken_over once an admin took it over from another rightsizer: new pods start at its containers' baselines whatever the mode */
76
+ const Takeover: {
77
+ readonly Off: "off";
78
+ readonly TakenOver: "taken_over";
79
+ };
80
+ type Takeover = (typeof Takeover)[keyof typeof Takeover];
60
81
  }
@@ -48,6 +48,10 @@ var NamespaceAutomation;
48
48
  Preview: "preview",
49
49
  Apply: "apply"
50
50
  };
51
+ NamespaceAutomation2.Takeover = {
52
+ Off: "off",
53
+ TakenOver: "taken_over"
54
+ };
51
55
  })(NamespaceAutomation || (NamespaceAutomation = {}));
52
56
  // Annotate the CommonJS export names for ESM import in node:
53
57
  0 && (module.exports = {
@@ -25,6 +25,10 @@ var NamespaceAutomation;
25
25
  Preview: "preview",
26
26
  Apply: "apply"
27
27
  };
28
+ NamespaceAutomation2.Takeover = {
29
+ Off: "off",
30
+ TakenOver: "taken_over"
31
+ };
28
32
  })(NamespaceAutomation || (NamespaceAutomation = {}));
29
33
  export {
30
34
  NamespaceAutomation