levelfour 1.15.0 → 1.16.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.
- package/dist/api/resources/recommendations/client/Client.js +20 -2
- package/dist/api/resources/recommendations/client/Client.mjs +20 -2
- package/dist/api/resources/recommendations/client/requests/GetProviderOverviewRecommendationsRequest.d.mts +8 -0
- package/dist/api/resources/recommendations/client/requests/GetProviderOverviewRecommendationsRequest.d.ts +8 -0
- package/dist/api/resources/recommendations/client/requests/ListByProviderRecommendationsRequest.d.mts +6 -0
- package/dist/api/resources/recommendations/client/requests/ListByProviderRecommendationsRequest.d.ts +6 -0
- package/dist/api/types/AutomationAction.d.mts +1 -0
- package/dist/api/types/AutomationAction.d.ts +1 -0
- package/dist/api/types/AutomationAction.js +1 -0
- package/dist/api/types/AutomationAction.mjs +1 -0
- package/dist/api/types/AutoscalingData.d.mts +10 -0
- package/dist/api/types/AutoscalingData.d.ts +10 -0
- package/dist/api/types/BlockerTotals.d.mts +6 -0
- package/dist/api/types/BlockerTotals.d.ts +6 -0
- package/dist/api/types/BlockingPdb.d.mts +16 -0
- package/dist/api/types/BlockingPdb.d.ts +16 -0
- package/dist/api/types/BlockingPdb.js +17 -0
- package/dist/api/types/BlockingPdb.mjs +1 -0
- package/dist/api/types/ChangeWatch.d.mts +27 -0
- package/dist/api/types/ChangeWatch.d.ts +27 -0
- package/dist/api/types/ChangeWatch.js +36 -0
- package/dist/api/types/ChangeWatch.mjs +12 -0
- package/dist/api/types/CheckedByKind.d.mts +10 -0
- package/dist/api/types/CheckedByKind.d.ts +10 -0
- package/dist/api/types/CheckedByKind.js +17 -0
- package/dist/api/types/CheckedByKind.mjs +1 -0
- package/dist/api/types/CheckedObject.d.mts +37 -0
- package/dist/api/types/CheckedObject.d.ts +37 -0
- package/dist/api/types/CheckedObject.js +42 -0
- package/dist/api/types/CheckedObject.mjs +18 -0
- package/dist/api/types/ClaimOwner.d.mts +6 -0
- package/dist/api/types/ClaimOwner.d.ts +6 -0
- package/dist/api/types/ClaimOwner.js +17 -0
- package/dist/api/types/ClaimOwner.mjs +1 -0
- package/dist/api/types/ClusterFacets.d.mts +16 -0
- package/dist/api/types/ClusterFacets.d.ts +16 -0
- package/dist/api/types/ClusterItem.d.mts +36 -1
- package/dist/api/types/ClusterItem.d.ts +36 -1
- package/dist/api/types/ClusterItem.js +10 -0
- package/dist/api/types/ClusterItem.mjs +10 -0
- package/dist/api/types/ClusterLevers.d.mts +9 -0
- package/dist/api/types/ClusterLevers.d.ts +9 -0
- package/dist/api/types/ClusterLevers.js +17 -0
- package/dist/api/types/ClusterLevers.mjs +1 -0
- package/dist/api/types/ClusterSummary.d.mts +19 -2
- package/dist/api/types/ClusterSummary.d.ts +19 -2
- package/dist/api/types/ConnectedAccount.d.mts +31 -0
- package/dist/api/types/ConnectedAccount.d.ts +31 -0
- package/dist/api/types/ConnectedAccount.js +12 -0
- package/dist/api/types/ConnectedAccount.mjs +12 -0
- package/dist/api/types/ConsolidationBlocker.d.mts +17 -0
- package/dist/api/types/ConsolidationBlocker.d.ts +17 -0
- package/dist/api/types/ConsolidationChange.d.mts +62 -0
- package/dist/api/types/ConsolidationChange.d.ts +62 -0
- package/dist/api/types/ConsolidationChange.js +53 -0
- package/dist/api/types/ConsolidationChange.mjs +29 -0
- package/dist/api/types/ConsolidationChangeDetail.d.mts +65 -0
- package/dist/api/types/ConsolidationChangeDetail.d.ts +65 -0
- package/dist/api/types/ConsolidationChangeDetail.js +53 -0
- package/dist/api/types/ConsolidationChangeDetail.mjs +29 -0
- package/dist/api/types/ConsolidationChangeNode.d.mts +34 -0
- package/dist/api/types/ConsolidationChangeNode.d.ts +34 -0
- package/dist/api/types/ConsolidationChangeNode.js +42 -0
- package/dist/api/types/ConsolidationChangeNode.mjs +18 -0
- package/dist/api/types/ConsolidationChangeResponse.d.mts +6 -0
- package/dist/api/types/ConsolidationChangeResponse.d.ts +6 -0
- package/dist/api/types/ConsolidationChangeResponse.js +17 -0
- package/dist/api/types/ConsolidationChangeResponse.mjs +1 -0
- package/dist/api/types/ConsolidationChangeTotals.d.mts +31 -0
- package/dist/api/types/ConsolidationChangeTotals.d.ts +31 -0
- package/dist/api/types/ConsolidationChangeTotals.js +17 -0
- package/dist/api/types/ConsolidationChangeTotals.mjs +1 -0
- package/dist/api/types/ConsolidationChangesData.d.mts +7 -0
- package/dist/api/types/ConsolidationChangesData.d.ts +7 -0
- package/dist/api/types/ConsolidationChangesData.js +17 -0
- package/dist/api/types/ConsolidationChangesData.mjs +1 -0
- package/dist/api/types/ConsolidationChangesResponse.d.mts +6 -0
- package/dist/api/types/ConsolidationChangesResponse.d.ts +6 -0
- package/dist/api/types/ConsolidationChangesResponse.js +17 -0
- package/dist/api/types/ConsolidationChangesResponse.mjs +1 -0
- package/dist/api/types/ConsolidationLever.d.mts +20 -0
- package/dist/api/types/ConsolidationLever.d.ts +20 -0
- package/dist/api/types/ConsolidationLever.js +17 -0
- package/dist/api/types/ConsolidationLever.mjs +1 -0
- package/dist/api/types/ConsolidationNode.d.mts +50 -0
- package/dist/api/types/ConsolidationNode.d.ts +50 -0
- package/dist/api/types/ConsolidationNode.js +42 -0
- package/dist/api/types/ConsolidationNode.mjs +18 -0
- package/dist/api/types/ConsolidationNodesData.d.mts +8 -0
- package/dist/api/types/ConsolidationNodesData.d.ts +8 -0
- package/dist/api/types/ConsolidationNodesData.js +17 -0
- package/dist/api/types/ConsolidationNodesData.mjs +1 -0
- package/dist/api/types/ConsolidationNodesResponse.d.mts +6 -0
- package/dist/api/types/ConsolidationNodesResponse.d.ts +6 -0
- package/dist/api/types/ConsolidationNodesResponse.js +17 -0
- package/dist/api/types/ConsolidationNodesResponse.mjs +1 -0
- package/dist/api/types/FailingShare.d.mts +12 -0
- package/dist/api/types/FailingShare.d.ts +12 -0
- package/dist/api/types/FailingShare.js +17 -0
- package/dist/api/types/FailingShare.mjs +1 -0
- package/dist/api/types/FixAmount.d.mts +6 -0
- package/dist/api/types/FixAmount.d.ts +6 -0
- package/dist/api/types/FixAmount.js +17 -0
- package/dist/api/types/FixAmount.mjs +1 -0
- package/dist/api/types/FixChange.d.mts +16 -0
- package/dist/api/types/FixChange.d.ts +16 -0
- package/dist/api/types/FixChange.js +35 -0
- package/dist/api/types/FixChange.mjs +11 -0
- package/dist/api/types/FixSizedBy.d.mts +20 -0
- package/dist/api/types/FixSizedBy.d.ts +20 -0
- package/dist/api/types/FixSizedBy.js +36 -0
- package/dist/api/types/FixSizedBy.mjs +12 -0
- package/dist/api/types/FlagCount.d.mts +4 -0
- package/dist/api/types/FlagCount.d.ts +4 -0
- package/dist/api/types/FlagCount.js +17 -0
- package/dist/api/types/FlagCount.mjs +1 -0
- package/dist/api/types/FleetConsolidationChange.d.mts +61 -0
- package/dist/api/types/FleetConsolidationChange.d.ts +61 -0
- package/dist/api/types/FleetConsolidationChange.js +53 -0
- package/dist/api/types/FleetConsolidationChange.mjs +29 -0
- package/dist/api/types/FleetConsolidationChangesData.d.mts +8 -0
- package/dist/api/types/FleetConsolidationChangesData.d.ts +8 -0
- package/dist/api/types/FleetConsolidationChangesData.js +17 -0
- package/dist/api/types/FleetConsolidationChangesData.mjs +1 -0
- package/dist/api/types/FleetConsolidationChangesResponse.d.mts +6 -0
- package/dist/api/types/FleetConsolidationChangesResponse.d.ts +6 -0
- package/dist/api/types/FleetConsolidationChangesResponse.js +17 -0
- package/dist/api/types/FleetConsolidationChangesResponse.mjs +1 -0
- package/dist/api/types/FleetConsolidationLever.d.mts +14 -0
- package/dist/api/types/FleetConsolidationLever.d.ts +14 -0
- package/dist/api/types/FleetConsolidationLever.js +17 -0
- package/dist/api/types/FleetConsolidationLever.mjs +1 -0
- package/dist/api/types/FleetConsolidationNode.d.mts +49 -0
- package/dist/api/types/FleetConsolidationNode.d.ts +49 -0
- package/dist/api/types/FleetConsolidationNode.js +42 -0
- package/dist/api/types/FleetConsolidationNode.mjs +18 -0
- package/dist/api/types/FleetConsolidationNodesData.d.mts +8 -0
- package/dist/api/types/FleetConsolidationNodesData.d.ts +8 -0
- package/dist/api/types/FleetConsolidationNodesData.js +17 -0
- package/dist/api/types/FleetConsolidationNodesData.mjs +1 -0
- package/dist/api/types/FleetConsolidationNodesResponse.d.mts +6 -0
- package/dist/api/types/FleetConsolidationNodesResponse.d.ts +6 -0
- package/dist/api/types/FleetConsolidationNodesResponse.js +17 -0
- package/dist/api/types/FleetConsolidationNodesResponse.mjs +1 -0
- package/dist/api/types/FleetLever.d.mts +10 -0
- package/dist/api/types/FleetLever.d.ts +10 -0
- package/dist/api/types/FleetLever.js +17 -0
- package/dist/api/types/FleetLever.mjs +1 -0
- package/dist/api/types/FleetLevers.d.mts +6 -0
- package/dist/api/types/FleetLevers.d.ts +6 -0
- package/dist/api/types/FleetLevers.js +17 -0
- package/dist/api/types/FleetLevers.mjs +1 -0
- package/dist/api/types/FleetNamespace.d.mts +50 -2
- package/dist/api/types/FleetNamespace.d.ts +50 -2
- package/dist/api/types/FleetNamespace.js +30 -0
- package/dist/api/types/FleetNamespace.mjs +30 -0
- package/dist/api/types/FleetSummary.d.mts +18 -1
- package/dist/api/types/FleetSummary.d.ts +18 -1
- package/dist/api/types/FleetVolume.d.mts +5 -1
- package/dist/api/types/FleetVolume.d.ts +5 -1
- package/dist/api/types/FleetWorkload.d.mts +16 -2
- package/dist/api/types/FleetWorkload.d.ts +16 -2
- package/dist/api/types/FleetWorkload.js +7 -0
- package/dist/api/types/FleetWorkload.mjs +7 -0
- package/dist/api/types/ForecastData.d.mts +2 -0
- package/dist/api/types/ForecastData.d.ts +2 -0
- package/dist/api/types/HeldChange.d.mts +57 -0
- package/dist/api/types/HeldChange.d.ts +57 -0
- package/dist/api/types/HeldChange.js +53 -0
- package/dist/api/types/HeldChange.mjs +29 -0
- package/dist/api/types/HeldFixGroup.d.mts +22 -0
- package/dist/api/types/HeldFixGroup.d.ts +22 -0
- package/dist/api/types/HeldFixGroup.js +37 -0
- package/dist/api/types/HeldFixGroup.mjs +13 -0
- package/dist/api/types/HeldPool.d.mts +12 -0
- package/dist/api/types/HeldPool.d.ts +12 -0
- package/dist/api/types/HeldPool.js +17 -0
- package/dist/api/types/HeldPool.mjs +1 -0
- package/dist/api/types/HeldWindow.d.mts +11 -0
- package/dist/api/types/HeldWindow.d.ts +11 -0
- package/dist/api/types/HeldWindow.js +17 -0
- package/dist/api/types/HeldWindow.mjs +1 -0
- package/dist/api/types/InventoryPlanRow.d.mts +4 -0
- package/dist/api/types/InventoryPlanRow.d.ts +4 -0
- package/dist/api/types/InventoryReservationRow.d.mts +4 -0
- package/dist/api/types/InventoryReservationRow.d.ts +4 -0
- package/dist/api/types/JvmChecks.d.mts +1 -1
- package/dist/api/types/JvmChecks.d.ts +1 -1
- package/dist/api/types/KubernetesRealized.d.mts +17 -0
- package/dist/api/types/KubernetesRealized.d.ts +17 -0
- package/dist/api/types/KubernetesRealized.js +17 -0
- package/dist/api/types/KubernetesRealized.mjs +1 -0
- package/dist/api/types/KubernetesRealizedData.d.mts +7 -0
- package/dist/api/types/KubernetesRealizedData.d.ts +7 -0
- package/dist/api/types/KubernetesRealizedData.js +17 -0
- package/dist/api/types/KubernetesRealizedData.mjs +1 -0
- package/dist/api/types/KubernetesRealizedResponse.d.mts +6 -0
- package/dist/api/types/KubernetesRealizedResponse.d.ts +6 -0
- package/dist/api/types/KubernetesRealizedResponse.js +17 -0
- package/dist/api/types/KubernetesRealizedResponse.mjs +1 -0
- package/dist/api/types/KubernetesUsageSource.d.mts +1 -1
- package/dist/api/types/KubernetesUsageSource.d.ts +1 -1
- package/dist/api/types/Lever.d.mts +12 -0
- package/dist/api/types/Lever.d.ts +12 -0
- package/dist/api/types/Lever.js +17 -0
- package/dist/api/types/Lever.mjs +1 -0
- package/dist/api/types/LeverCount.d.mts +4 -0
- package/dist/api/types/LeverCount.d.ts +4 -0
- package/dist/api/types/LeverCount.js +17 -0
- package/dist/api/types/LeverCount.mjs +1 -0
- package/dist/api/types/NamespaceAutomation.d.mts +2 -0
- package/dist/api/types/NamespaceAutomation.d.ts +2 -0
- package/dist/api/types/NamespaceFacets.d.mts +10 -0
- package/dist/api/types/NamespaceFacets.d.ts +10 -0
- package/dist/api/types/NamespaceItem.d.mts +50 -2
- package/dist/api/types/NamespaceItem.d.ts +50 -2
- package/dist/api/types/NamespaceItem.js +30 -0
- package/dist/api/types/NamespaceItem.mjs +30 -0
- package/dist/api/types/NamespaceReliability.d.mts +1 -1
- package/dist/api/types/NamespaceReliability.d.ts +1 -1
- package/dist/api/types/NamespaceScope.d.mts +4 -2
- package/dist/api/types/NamespaceScope.d.ts +4 -2
- package/dist/api/types/NodeFacets.d.mts +2 -2
- package/dist/api/types/NodeFacets.d.ts +2 -2
- package/dist/api/types/NodeItem.d.mts +5 -3
- package/dist/api/types/NodeItem.d.ts +5 -3
- package/dist/api/types/OffNamespacesWaste.d.mts +17 -0
- package/dist/api/types/OffNamespacesWaste.d.ts +17 -0
- package/dist/api/types/OffNamespacesWaste.js +17 -0
- package/dist/api/types/OffNamespacesWaste.mjs +1 -0
- package/dist/api/types/OrganizationalUnit.d.mts +5 -0
- package/dist/api/types/OrganizationalUnit.d.ts +5 -0
- package/dist/api/types/OrganizationalUnit.js +17 -0
- package/dist/api/types/OrganizationalUnit.mjs +1 -0
- package/dist/api/types/OtherCheckedData.d.mts +4 -0
- package/dist/api/types/OtherCheckedData.d.ts +4 -0
- package/dist/api/types/OtherCheckedData.js +17 -0
- package/dist/api/types/OtherCheckedData.mjs +1 -0
- package/dist/api/types/OtherCheckedResponse.d.mts +5 -0
- package/dist/api/types/OtherCheckedResponse.d.ts +5 -0
- package/dist/api/types/OtherCheckedResponse.js +17 -0
- package/dist/api/types/OtherCheckedResponse.mjs +1 -0
- package/dist/api/types/OtherSavings.d.mts +16 -0
- package/dist/api/types/OtherSavings.d.ts +16 -0
- package/dist/api/types/OtherSavings.js +17 -0
- package/dist/api/types/OtherSavings.mjs +1 -0
- package/dist/api/types/OtherSavingsByKind.d.mts +12 -0
- package/dist/api/types/OtherSavingsByKind.d.ts +12 -0
- package/dist/api/types/OtherSavingsByKind.js +17 -0
- package/dist/api/types/OtherSavingsByKind.mjs +1 -0
- package/dist/api/types/PendingShare.d.mts +1 -1
- package/dist/api/types/PendingShare.d.ts +1 -1
- package/dist/api/types/ProviderBreakdownItem.d.mts +4 -0
- package/dist/api/types/ProviderBreakdownItem.d.ts +4 -0
- package/dist/api/types/RealizedChange.d.mts +28 -0
- package/dist/api/types/RealizedChange.d.ts +28 -0
- package/dist/api/types/RealizedChange.js +36 -0
- package/dist/api/types/RealizedChange.mjs +12 -0
- package/dist/api/types/RealizedChanges.d.mts +6 -0
- package/dist/api/types/RealizedChanges.d.ts +6 -0
- package/dist/api/types/RealizedChanges.js +17 -0
- package/dist/api/types/RealizedChanges.mjs +1 -0
- package/dist/api/types/RealizedMonth.d.mts +8 -0
- package/dist/api/types/RealizedMonth.d.ts +8 -0
- package/dist/api/types/RealizedMonth.js +17 -0
- package/dist/api/types/RealizedMonth.mjs +1 -0
- package/dist/api/types/RecommendationItem.d.mts +2 -0
- package/dist/api/types/RecommendationItem.d.ts +2 -0
- package/dist/api/types/ReliabilityTotals.d.mts +3 -1
- package/dist/api/types/ReliabilityTotals.d.ts +3 -1
- package/dist/api/types/ResourceEfficiency.d.mts +1 -1
- package/dist/api/types/ResourceEfficiency.d.ts +1 -1
- package/dist/api/types/RightsizedContainer.d.mts +2 -0
- package/dist/api/types/RightsizedContainer.d.ts +2 -0
- package/dist/api/types/RightsizedContainer.js +3 -1
- package/dist/api/types/RightsizedContainer.mjs +3 -1
- package/dist/api/types/RightsizingFrees.d.mts +12 -0
- package/dist/api/types/RightsizingFrees.d.ts +12 -0
- package/dist/api/types/RightsizingFrees.js +17 -0
- package/dist/api/types/RightsizingFrees.mjs +1 -0
- package/dist/api/types/SavingsChangeRef.d.mts +5 -0
- package/dist/api/types/SavingsChangeRef.d.ts +5 -0
- package/dist/api/types/SavingsChangeRef.js +17 -0
- package/dist/api/types/SavingsChangeRef.mjs +1 -0
- package/dist/api/types/SavingsItem.d.mts +61 -0
- package/dist/api/types/SavingsItem.d.ts +61 -0
- package/dist/api/types/SavingsItem.js +17 -0
- package/dist/api/types/SavingsItem.mjs +1 -0
- package/dist/api/types/SavingsMissing.d.mts +19 -0
- package/dist/api/types/SavingsMissing.d.ts +19 -0
- package/dist/api/types/SavingsMissing.js +17 -0
- package/dist/api/types/SavingsMissing.mjs +1 -0
- package/dist/api/types/SavingsNode.d.mts +10 -0
- package/dist/api/types/SavingsNode.d.ts +10 -0
- package/dist/api/types/SavingsNode.js +17 -0
- package/dist/api/types/SavingsNode.mjs +1 -0
- package/dist/api/types/SavingsNow.d.mts +26 -0
- package/dist/api/types/SavingsNow.d.ts +26 -0
- package/dist/api/types/SavingsNow.js +38 -0
- package/dist/api/types/SavingsNow.mjs +14 -0
- package/dist/api/types/SavingsNowResponse.d.mts +6 -0
- package/dist/api/types/SavingsNowResponse.d.ts +6 -0
- package/dist/api/types/SavingsNowResponse.js +17 -0
- package/dist/api/types/SavingsNowResponse.mjs +1 -0
- package/dist/api/types/SavingsRequestMove.d.mts +6 -0
- package/dist/api/types/SavingsRequestMove.d.ts +6 -0
- package/dist/api/types/SavingsRequestMove.js +17 -0
- package/dist/api/types/SavingsRequestMove.mjs +1 -0
- package/dist/api/types/SavingsSection.d.mts +16 -0
- package/dist/api/types/SavingsSection.d.ts +16 -0
- package/dist/api/types/SavingsSection.js +37 -0
- package/dist/api/types/SavingsSection.mjs +13 -0
- package/dist/api/types/SavingsTotals.d.mts +8 -0
- package/dist/api/types/SavingsTotals.d.ts +8 -0
- package/dist/api/types/SavingsTotals.js +17 -0
- package/dist/api/types/SavingsTotals.mjs +1 -0
- package/dist/api/types/SizerFlag.d.mts +6 -0
- package/dist/api/types/SizerFlag.d.ts +6 -0
- package/dist/api/types/SizerFlag.js +17 -0
- package/dist/api/types/SizerFlag.mjs +1 -0
- package/dist/api/types/SizingPolicies.d.mts +2 -0
- package/dist/api/types/SizingPolicies.d.ts +2 -0
- package/dist/api/types/SizingPolicyObject.d.mts +14 -0
- package/dist/api/types/SizingPolicyObject.d.ts +14 -0
- package/dist/api/types/SizingPolicyObject.js +17 -0
- package/dist/api/types/SizingPolicyObject.mjs +1 -0
- package/dist/api/types/UnmonitoredCluster.d.mts +7 -6
- package/dist/api/types/UnmonitoredCluster.d.ts +7 -6
- package/dist/api/types/UnmonitoredCluster.js +2 -1
- package/dist/api/types/UnmonitoredCluster.mjs +2 -1
- package/dist/api/types/UnmonitoredClusterList.d.mts +1 -1
- package/dist/api/types/UnmonitoredClusterList.d.ts +1 -1
- package/dist/api/types/UnpricedFindings.d.mts +12 -0
- package/dist/api/types/UnpricedFindings.d.ts +12 -0
- package/dist/api/types/UnpricedFindings.js +17 -0
- package/dist/api/types/UnpricedFindings.mjs +1 -0
- package/dist/api/types/UnreportedInClusters.d.mts +6 -0
- package/dist/api/types/UnreportedInClusters.d.ts +6 -0
- package/dist/api/types/UnreportedInClusters.js +17 -0
- package/dist/api/types/UnreportedInClusters.mjs +1 -0
- package/dist/api/types/VolumeDetail.d.mts +10 -0
- package/dist/api/types/VolumeDetail.d.ts +10 -0
- package/dist/api/types/VolumeItem.d.mts +5 -1
- package/dist/api/types/VolumeItem.d.ts +5 -1
- package/dist/api/types/WatchPoolSignals.d.mts +7 -0
- package/dist/api/types/WatchPoolSignals.d.ts +7 -0
- package/dist/api/types/WatchPoolSignals.js +17 -0
- package/dist/api/types/WatchPoolSignals.mjs +1 -0
- package/dist/api/types/WatchWorkloadSignals.d.mts +8 -0
- package/dist/api/types/WatchWorkloadSignals.d.ts +8 -0
- package/dist/api/types/WatchWorkloadSignals.js +17 -0
- package/dist/api/types/WatchWorkloadSignals.mjs +1 -0
- package/dist/api/types/WorkloadDetail.d.mts +4 -0
- package/dist/api/types/WorkloadDetail.d.ts +4 -0
- package/dist/api/types/WorkloadFacets.d.mts +1 -1
- package/dist/api/types/WorkloadFacets.d.ts +1 -1
- package/dist/api/types/WorkloadFix.d.mts +19 -0
- package/dist/api/types/WorkloadFix.d.ts +19 -0
- package/dist/api/types/WorkloadFix.js +17 -0
- package/dist/api/types/WorkloadFix.mjs +1 -0
- package/dist/api/types/WorkloadItem.d.mts +32 -2
- package/dist/api/types/WorkloadItem.d.ts +32 -2
- package/dist/api/types/WorkloadItem.js +20 -0
- package/dist/api/types/WorkloadItem.mjs +20 -0
- package/dist/api/types/WorkloadListItem.d.mts +32 -2
- package/dist/api/types/WorkloadListItem.d.ts +32 -2
- package/dist/api/types/WorkloadListItem.js +20 -0
- package/dist/api/types/WorkloadListItem.mjs +20 -0
- package/dist/api/types/WorkloadScaler.d.mts +19 -0
- package/dist/api/types/WorkloadScaler.d.ts +19 -0
- package/dist/api/types/WorkloadScaler.js +35 -0
- package/dist/api/types/WorkloadScaler.mjs +11 -0
- package/dist/api/types/index.d.mts +67 -0
- package/dist/api/types/index.d.ts +67 -0
- package/dist/api/types/index.js +134 -0
- package/dist/api/types/index.mjs +67 -0
- package/dist/version.d.mts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var ClaimOwner_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(ClaimOwner_exports);
|
|
17
|
+
//# sourceMappingURL=ClaimOwner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=ClaimOwner.mjs.map
|
|
@@ -2,4 +2,20 @@ import type * as LevelFour from "../index.mjs";
|
|
|
2
2
|
export interface ClusterFacets {
|
|
3
3
|
/** Rows per value over the rows every other filter keeps, so a chip reads what choosing it gives */
|
|
4
4
|
status: LevelFour.FacetCount[];
|
|
5
|
+
/** Clusters per cloud under the other filters; other counts self-managed ones */
|
|
6
|
+
provider?: LevelFour.FacetCount[] | undefined;
|
|
7
|
+
/** Clusters per minor version under the other filters; none counts no version */
|
|
8
|
+
version?: LevelFour.FacetCount[] | undefined;
|
|
9
|
+
/** Rows per value over the rows every other filter keeps, so a chip reads what choosing it gives */
|
|
10
|
+
state?: LevelFour.FacetCount[] | undefined;
|
|
11
|
+
/** Rows per value over the rows every other filter keeps, so a chip reads what choosing it gives */
|
|
12
|
+
automation?: LevelFour.FacetCount[] | undefined;
|
|
13
|
+
/** Rows that are and are not so, over the rows every other filter keeps */
|
|
14
|
+
at_risk?: LevelFour.FlagCount[] | undefined;
|
|
15
|
+
/** Rows that are and are not so, over the rows every other filter keeps */
|
|
16
|
+
has_savings?: LevelFour.FlagCount[] | undefined;
|
|
17
|
+
/** Rows that are and are not so, over the rows every other filter keeps */
|
|
18
|
+
holds_nodes?: LevelFour.FlagCount[] | undefined;
|
|
19
|
+
/** Rows that are and are not so, over the rows every other filter keeps */
|
|
20
|
+
on_spot?: LevelFour.FlagCount[] | undefined;
|
|
5
21
|
}
|
|
@@ -2,4 +2,20 @@ import type * as LevelFour from "../index.js";
|
|
|
2
2
|
export interface ClusterFacets {
|
|
3
3
|
/** Rows per value over the rows every other filter keeps, so a chip reads what choosing it gives */
|
|
4
4
|
status: LevelFour.FacetCount[];
|
|
5
|
+
/** Clusters per cloud under the other filters; other counts self-managed ones */
|
|
6
|
+
provider?: LevelFour.FacetCount[] | undefined;
|
|
7
|
+
/** Clusters per minor version under the other filters; none counts no version */
|
|
8
|
+
version?: LevelFour.FacetCount[] | undefined;
|
|
9
|
+
/** Rows per value over the rows every other filter keeps, so a chip reads what choosing it gives */
|
|
10
|
+
state?: LevelFour.FacetCount[] | undefined;
|
|
11
|
+
/** Rows per value over the rows every other filter keeps, so a chip reads what choosing it gives */
|
|
12
|
+
automation?: LevelFour.FacetCount[] | undefined;
|
|
13
|
+
/** Rows that are and are not so, over the rows every other filter keeps */
|
|
14
|
+
at_risk?: LevelFour.FlagCount[] | undefined;
|
|
15
|
+
/** Rows that are and are not so, over the rows every other filter keeps */
|
|
16
|
+
has_savings?: LevelFour.FlagCount[] | undefined;
|
|
17
|
+
/** Rows that are and are not so, over the rows every other filter keeps */
|
|
18
|
+
holds_nodes?: LevelFour.FlagCount[] | undefined;
|
|
19
|
+
/** Rows that are and are not so, over the rows every other filter keeps */
|
|
20
|
+
on_spot?: LevelFour.FlagCount[] | undefined;
|
|
5
21
|
}
|
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
import type * as LevelFour from "../index.mjs";
|
|
2
2
|
export interface ClusterItem {
|
|
3
|
+
/** bad when a workload has no ready replica now (a crash loop included) or the agent is stale or degraded; attention when a workload is at risk, savings wait, or the cluster is pending or agentless; good otherwise */
|
|
4
|
+
state?: (ClusterItem.State | null) | undefined;
|
|
5
|
+
/** on when the automation acts in a namespace, off when its component runs and acts nowhere, none without it */
|
|
6
|
+
automation_status?: (ClusterItem.AutomationStatus | null) | undefined;
|
|
7
|
+
/** The current workloads with no ready replica now, a crash loop included */
|
|
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) */
|
|
10
|
+
available_savings_monthly?: (number | null) | undefined;
|
|
11
|
+
/** The namespaces the automation applies changes in by itself, as the cluster summary counts */
|
|
12
|
+
automation_namespaces_acting?: (number | null) | undefined;
|
|
13
|
+
/** The namespaces the Automation tab lists */
|
|
14
|
+
automation_namespaces_total?: (number | null) | undefined;
|
|
15
|
+
levers?: (LevelFour.ClusterLevers | null) | undefined;
|
|
16
|
+
/** 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 */
|
|
17
|
+
other_savings?: (LevelFour.OtherSavings | null) | undefined;
|
|
18
|
+
/** This month's forecast of the cluster's node compute, as the summary's compute.forecast_month */
|
|
19
|
+
monthly_cost?: (number | null) | undefined;
|
|
20
|
+
/** What the verified changes saved (GET /v1/k8s/realized); null when nothing is verified */
|
|
21
|
+
realized?: (LevelFour.KubernetesRealized | null) | undefined;
|
|
3
22
|
id: string;
|
|
4
23
|
name: string;
|
|
5
24
|
/** The kube-system namespace UID the cluster was bound to */
|
|
@@ -14,6 +33,8 @@ export interface ClusterItem {
|
|
|
14
33
|
account_id?: (string | null) | undefined;
|
|
15
34
|
k8s_version?: (string | null) | undefined;
|
|
16
35
|
agent_version?: (string | null) | undefined;
|
|
36
|
+
/** The agent chart version the connect page installs, which an agent_version behind it can update to */
|
|
37
|
+
latest_agent_version: string;
|
|
17
38
|
metrics_source?: (string | null) | undefined;
|
|
18
39
|
/** stale when the agent has not sent a heartbeat for 15 minutes; degraded when it reports, and at its last heartbeat its kubelet collector could not read usage from some nodes; agentless for a cluster only the bill names, priced per namespace without the agent */
|
|
19
40
|
status: ClusterItem.Status;
|
|
@@ -21,6 +42,8 @@ export interface ClusterItem {
|
|
|
21
42
|
source?: ClusterItem.Source | undefined;
|
|
22
43
|
last_heartbeat_at?: (string | null) | undefined;
|
|
23
44
|
last_batch_at?: (string | null) | undefined;
|
|
45
|
+
/** The snapshot lists the agent has not sent for longer than the 24 hours ingest carries one (it sent them as null): namespaces, nodes, workloads or volumes, each with the time of the last batch that sent it, since when its rows read unreported (unreported_since). A list is here only while it is unreported, so an empty object means the latest batch read every list. The cluster's counts of the latest batch leave out an unreported list's rows: node_count for nodes, namespace_count and namespaces_enabled for namespaces, workload_count and the workload figures for workloads, the claim counts for volumes */
|
|
46
|
+
unreported_lists?: Record<string, string> | undefined;
|
|
24
47
|
/** The nodes the agent counted at its last heartbeat, between hourly batches */
|
|
25
48
|
live_node_count?: (number | null) | undefined;
|
|
26
49
|
/** The pods the agent counted at its last heartbeat, between hourly batches */
|
|
@@ -68,7 +91,7 @@ export interface ClusterItem {
|
|
|
68
91
|
/** The pods' traffic, as the Network lens counts it, and the data transfer billed to the cluster */
|
|
69
92
|
network: LevelFour.Traffic;
|
|
70
93
|
reliability: LevelFour.NamespaceReliability;
|
|
71
|
-
/** Current workloads at high risk: an OOM kill
|
|
94
|
+
/** Current workloads at high risk, on what holds now: an OOM kill or an eviction in the window's last two days, a container restarting at a crash loop's pace in them, or no ready replica in two batches in a row. Medium and low never count. An ephemeral one, a pull-request or branch environment, counts only with include_ephemeral */
|
|
72
95
|
workloads_at_risk: number;
|
|
73
96
|
/** Null until the cluster has workloads or a priced day */
|
|
74
97
|
health?: (LevelFour.ClusterHealth | null) | undefined;
|
|
@@ -79,6 +102,18 @@ export interface ClusterItem {
|
|
|
79
102
|
co2e_method?: (LevelFour.Co2EMethod | null) | undefined;
|
|
80
103
|
}
|
|
81
104
|
export declare namespace ClusterItem {
|
|
105
|
+
const State: {
|
|
106
|
+
readonly Bad: "bad";
|
|
107
|
+
readonly Attention: "attention";
|
|
108
|
+
readonly Good: "good";
|
|
109
|
+
};
|
|
110
|
+
type State = (typeof State)[keyof typeof State];
|
|
111
|
+
const AutomationStatus: {
|
|
112
|
+
readonly On: "on";
|
|
113
|
+
readonly Off: "off";
|
|
114
|
+
readonly None: "none";
|
|
115
|
+
};
|
|
116
|
+
type AutomationStatus = (typeof AutomationStatus)[keyof typeof AutomationStatus];
|
|
82
117
|
/** stale when the agent has not sent a heartbeat for 15 minutes; degraded when it reports, and at its last heartbeat its kubelet collector could not read usage from some nodes; agentless for a cluster only the bill names, priced per namespace without the agent */
|
|
83
118
|
const Status: {
|
|
84
119
|
readonly Pending: "pending";
|
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
import type * as LevelFour from "../index.js";
|
|
2
2
|
export interface ClusterItem {
|
|
3
|
+
/** bad when a workload has no ready replica now (a crash loop included) or the agent is stale or degraded; attention when a workload is at risk, savings wait, or the cluster is pending or agentless; good otherwise */
|
|
4
|
+
state?: (ClusterItem.State | null) | undefined;
|
|
5
|
+
/** on when the automation acts in a namespace, off when its component runs and acts nowhere, none without it */
|
|
6
|
+
automation_status?: (ClusterItem.AutomationStatus | null) | undefined;
|
|
7
|
+
/** The current workloads with no ready replica now, a crash loop included */
|
|
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) */
|
|
10
|
+
available_savings_monthly?: (number | null) | undefined;
|
|
11
|
+
/** The namespaces the automation applies changes in by itself, as the cluster summary counts */
|
|
12
|
+
automation_namespaces_acting?: (number | null) | undefined;
|
|
13
|
+
/** The namespaces the Automation tab lists */
|
|
14
|
+
automation_namespaces_total?: (number | null) | undefined;
|
|
15
|
+
levers?: (LevelFour.ClusterLevers | null) | undefined;
|
|
16
|
+
/** 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 */
|
|
17
|
+
other_savings?: (LevelFour.OtherSavings | null) | undefined;
|
|
18
|
+
/** This month's forecast of the cluster's node compute, as the summary's compute.forecast_month */
|
|
19
|
+
monthly_cost?: (number | null) | undefined;
|
|
20
|
+
/** What the verified changes saved (GET /v1/k8s/realized); null when nothing is verified */
|
|
21
|
+
realized?: (LevelFour.KubernetesRealized | null) | undefined;
|
|
3
22
|
id: string;
|
|
4
23
|
name: string;
|
|
5
24
|
/** The kube-system namespace UID the cluster was bound to */
|
|
@@ -14,6 +33,8 @@ export interface ClusterItem {
|
|
|
14
33
|
account_id?: (string | null) | undefined;
|
|
15
34
|
k8s_version?: (string | null) | undefined;
|
|
16
35
|
agent_version?: (string | null) | undefined;
|
|
36
|
+
/** The agent chart version the connect page installs, which an agent_version behind it can update to */
|
|
37
|
+
latest_agent_version: string;
|
|
17
38
|
metrics_source?: (string | null) | undefined;
|
|
18
39
|
/** stale when the agent has not sent a heartbeat for 15 minutes; degraded when it reports, and at its last heartbeat its kubelet collector could not read usage from some nodes; agentless for a cluster only the bill names, priced per namespace without the agent */
|
|
19
40
|
status: ClusterItem.Status;
|
|
@@ -21,6 +42,8 @@ export interface ClusterItem {
|
|
|
21
42
|
source?: ClusterItem.Source | undefined;
|
|
22
43
|
last_heartbeat_at?: (string | null) | undefined;
|
|
23
44
|
last_batch_at?: (string | null) | undefined;
|
|
45
|
+
/** The snapshot lists the agent has not sent for longer than the 24 hours ingest carries one (it sent them as null): namespaces, nodes, workloads or volumes, each with the time of the last batch that sent it, since when its rows read unreported (unreported_since). A list is here only while it is unreported, so an empty object means the latest batch read every list. The cluster's counts of the latest batch leave out an unreported list's rows: node_count for nodes, namespace_count and namespaces_enabled for namespaces, workload_count and the workload figures for workloads, the claim counts for volumes */
|
|
46
|
+
unreported_lists?: Record<string, string> | undefined;
|
|
24
47
|
/** The nodes the agent counted at its last heartbeat, between hourly batches */
|
|
25
48
|
live_node_count?: (number | null) | undefined;
|
|
26
49
|
/** The pods the agent counted at its last heartbeat, between hourly batches */
|
|
@@ -68,7 +91,7 @@ export interface ClusterItem {
|
|
|
68
91
|
/** The pods' traffic, as the Network lens counts it, and the data transfer billed to the cluster */
|
|
69
92
|
network: LevelFour.Traffic;
|
|
70
93
|
reliability: LevelFour.NamespaceReliability;
|
|
71
|
-
/** Current workloads at high risk: an OOM kill
|
|
94
|
+
/** Current workloads at high risk, on what holds now: an OOM kill or an eviction in the window's last two days, a container restarting at a crash loop's pace in them, or no ready replica in two batches in a row. Medium and low never count. An ephemeral one, a pull-request or branch environment, counts only with include_ephemeral */
|
|
72
95
|
workloads_at_risk: number;
|
|
73
96
|
/** Null until the cluster has workloads or a priced day */
|
|
74
97
|
health?: (LevelFour.ClusterHealth | null) | undefined;
|
|
@@ -79,6 +102,18 @@ export interface ClusterItem {
|
|
|
79
102
|
co2e_method?: (LevelFour.Co2EMethod | null) | undefined;
|
|
80
103
|
}
|
|
81
104
|
export declare namespace ClusterItem {
|
|
105
|
+
const State: {
|
|
106
|
+
readonly Bad: "bad";
|
|
107
|
+
readonly Attention: "attention";
|
|
108
|
+
readonly Good: "good";
|
|
109
|
+
};
|
|
110
|
+
type State = (typeof State)[keyof typeof State];
|
|
111
|
+
const AutomationStatus: {
|
|
112
|
+
readonly On: "on";
|
|
113
|
+
readonly Off: "off";
|
|
114
|
+
readonly None: "none";
|
|
115
|
+
};
|
|
116
|
+
type AutomationStatus = (typeof AutomationStatus)[keyof typeof AutomationStatus];
|
|
82
117
|
/** stale when the agent has not sent a heartbeat for 15 minutes; degraded when it reports, and at its last heartbeat its kubelet collector could not read usage from some nodes; agentless for a cluster only the bill names, priced per namespace without the agent */
|
|
83
118
|
const Status: {
|
|
84
119
|
readonly Pending: "pending";
|
|
@@ -23,6 +23,16 @@ __export(ClusterItem_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(ClusterItem_exports);
|
|
24
24
|
var ClusterItem;
|
|
25
25
|
((ClusterItem2) => {
|
|
26
|
+
ClusterItem2.State = {
|
|
27
|
+
Bad: "bad",
|
|
28
|
+
Attention: "attention",
|
|
29
|
+
Good: "good"
|
|
30
|
+
};
|
|
31
|
+
ClusterItem2.AutomationStatus = {
|
|
32
|
+
On: "on",
|
|
33
|
+
Off: "off",
|
|
34
|
+
None: "none"
|
|
35
|
+
};
|
|
26
36
|
ClusterItem2.Status = {
|
|
27
37
|
Pending: "pending",
|
|
28
38
|
Active: "active",
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
var ClusterItem;
|
|
2
2
|
((ClusterItem2) => {
|
|
3
|
+
ClusterItem2.State = {
|
|
4
|
+
Bad: "bad",
|
|
5
|
+
Attention: "attention",
|
|
6
|
+
Good: "good"
|
|
7
|
+
};
|
|
8
|
+
ClusterItem2.AutomationStatus = {
|
|
9
|
+
On: "on",
|
|
10
|
+
Off: "off",
|
|
11
|
+
None: "none"
|
|
12
|
+
};
|
|
3
13
|
ClusterItem2.Status = {
|
|
4
14
|
Pending: "pending",
|
|
5
15
|
Active: "active",
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as LevelFour from "../index.mjs";
|
|
2
|
+
export interface ClusterLevers {
|
|
3
|
+
/** On where the automation applies changes by itself in a namespace; yields the available container recommendations, the changes the automation makes; counts the namespaces it acts in of the ones it lists */
|
|
4
|
+
rightsizing: LevelFour.Lever;
|
|
5
|
+
/** On when a Karpenter NodePool removes underused nodes (consolidationPolicy not WhenEmpty, consolidateAfter not Never) or Cluster Autoscaler runs, its scale-down on by default since the agent reports no flags; false when every NodePool keeps them and Cluster Autoscaler does not run; null with neither. Counts the held nodes that would go of the held nodes at the latest batch, as the cluster's Nodes tab counts them. Yields the window's average a month of what the held nodes that would go and no recommendation covers cost, over the hours ingest worked them out in, and counts the changes that free them, as GET /clusters/{cluster_id}/consolidation-changes lists and totals them */
|
|
6
|
+
consolidation: LevelFour.ConsolidationLever;
|
|
7
|
+
/** On when a node runs on Spot at the latest batch; counts the Spot nodes of the nodes. Its saving is null: no estimate of moving to Spot exists apart from a pool's rightsizing. With no node up at the latest batch (agentless, or not reporting yet), on and the node counts of spot and consolidation are null */
|
|
8
|
+
spot: LevelFour.Lever;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as LevelFour from "../index.js";
|
|
2
|
+
export interface ClusterLevers {
|
|
3
|
+
/** On where the automation applies changes by itself in a namespace; yields the available container recommendations, the changes the automation makes; counts the namespaces it acts in of the ones it lists */
|
|
4
|
+
rightsizing: LevelFour.Lever;
|
|
5
|
+
/** On when a Karpenter NodePool removes underused nodes (consolidationPolicy not WhenEmpty, consolidateAfter not Never) or Cluster Autoscaler runs, its scale-down on by default since the agent reports no flags; false when every NodePool keeps them and Cluster Autoscaler does not run; null with neither. Counts the held nodes that would go of the held nodes at the latest batch, as the cluster's Nodes tab counts them. Yields the window's average a month of what the held nodes that would go and no recommendation covers cost, over the hours ingest worked them out in, and counts the changes that free them, as GET /clusters/{cluster_id}/consolidation-changes lists and totals them */
|
|
6
|
+
consolidation: LevelFour.ConsolidationLever;
|
|
7
|
+
/** On when a node runs on Spot at the latest batch; counts the Spot nodes of the nodes. Its saving is null: no estimate of moving to Spot exists apart from a pool's rightsizing. With no node up at the latest batch (agentless, or not reporting yet), on and the node counts of spot and consolidation are null */
|
|
8
|
+
spot: LevelFour.Lever;
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var ClusterLevers_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(ClusterLevers_exports);
|
|
17
|
+
//# sourceMappingURL=ClusterLevers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=ClusterLevers.mjs.map
|
|
@@ -1,7 +1,20 @@
|
|
|
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) */
|
|
4
|
+
available_savings_monthly?: (number | null) | undefined;
|
|
5
|
+
levers?: (LevelFour.ClusterLevers | null) | undefined;
|
|
6
|
+
/** 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
|
+
other_savings?: (LevelFour.OtherSavings | null) | undefined;
|
|
8
|
+
/** What the verified changes saved (GET /v1/k8s/realized); null when nothing is verified */
|
|
9
|
+
realized?: (LevelFour.KubernetesRealized | null) | undefined;
|
|
10
|
+
/** Namespaces where the automation applies changes by itself: apply mode, not opted out by the levelfour.ai/automation=off label, in the Helm install's namespaces, recommendations on, sized by no other tool, not being taken over and not paused because the approver left; 0 while the cluster's automation is off or paused. Null when no cluster has the automation component */
|
|
11
|
+
automation_namespaces_acting?: (number | null) | undefined;
|
|
12
|
+
/** The namespaces the Automation tab lists: the current ones, system namespaces left out. Null when no cluster has the automation component */
|
|
13
|
+
automation_namespaces_total?: (number | null) | undefined;
|
|
3
14
|
/** The cluster's latest batch, the snapshot every current-state figure reflects: node, namespace, workload and claim counts, pods, workloads by kind, autoscalers and workloads at risk. Null until it reports one */
|
|
4
15
|
as_of?: (string | null) | undefined;
|
|
16
|
+
/** The snapshot lists the agent has not sent for longer than the 24 hours ingest carries one (it sent them as null): namespaces, nodes, workloads or volumes, each with the time of the last batch that sent it, since when its rows read unreported (unreported_since). A list is here only while it is unreported, so an empty object means the latest batch read every list. The cluster's counts of the latest batch leave out an unreported list's rows: node_count for nodes, namespace_count and namespaces_enabled for namespaces, workload_count and the workload figures for workloads, the claim counts for volumes */
|
|
17
|
+
unreported_lists?: Record<string, string> | undefined;
|
|
5
18
|
/** The cluster's cost, as the clusters list reads it */
|
|
6
19
|
total_cost?: (number | null) | undefined;
|
|
7
20
|
idle_cost?: (number | null) | undefined;
|
|
@@ -25,8 +38,8 @@ export interface ClusterSummary {
|
|
|
25
38
|
/** While awaiting_bill, the day the first priced day should show: 2 days after the later of the bill's last day and the day the cluster connected, since a bill runs a day or two behind. Null otherwise */
|
|
26
39
|
bill_expected_by?: (string | null) | undefined;
|
|
27
40
|
nodes_by_purchase_type: LevelFour.PurchaseTypeShare[];
|
|
28
|
-
/** Current workloads at high risk: an OOM kill
|
|
29
|
-
workloads_at_risk: number;
|
|
41
|
+
/** Current workloads at high risk, on what holds now: an OOM kill or an eviction in the window's last two days, a container restarting at a crash loop's pace in them, or no ready replica in two batches in a row. Medium and low never count. An ephemeral one, a pull-request or branch environment, counts only with include_ephemeral. Null when the request passed at_risk=false; GET /clusters/{cluster_id} returns the same count */
|
|
42
|
+
workloads_at_risk: number | null;
|
|
30
43
|
/** Pods Pending on average in the latest hour the agent reported */
|
|
31
44
|
pods_pending?: (number | null) | undefined;
|
|
32
45
|
node_count: number;
|
|
@@ -35,6 +48,10 @@ export interface ClusterSummary {
|
|
|
35
48
|
workload_count: number;
|
|
36
49
|
pvc_count: number;
|
|
37
50
|
potential_savings?: (LevelFour.PotentialSavings | null) | undefined;
|
|
51
|
+
/** The nodes rightsizing every workload would free and what they cost a month, as the worker's last scan reviewed the pools; null before a scan stored it */
|
|
52
|
+
rightsizing_frees?: (LevelFour.RightsizingFrees | null) | undefined;
|
|
53
|
+
/** What the namespaces whose recommendations are off leave unused a month, and how many are off; null when none is off (api#2091) */
|
|
54
|
+
off_namespaces_waste?: (LevelFour.OffNamespacesWaste | null) | undefined;
|
|
38
55
|
/** Over the cluster's NodePool and node group reviews; null until the worker reviewed one */
|
|
39
56
|
purchase_balance?: (LevelFour.PurchaseBalance | null) | undefined;
|
|
40
57
|
/** As of the latest batch */
|
|
@@ -1,7 +1,20 @@
|
|
|
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) */
|
|
4
|
+
available_savings_monthly?: (number | null) | undefined;
|
|
5
|
+
levers?: (LevelFour.ClusterLevers | null) | undefined;
|
|
6
|
+
/** 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
|
+
other_savings?: (LevelFour.OtherSavings | null) | undefined;
|
|
8
|
+
/** What the verified changes saved (GET /v1/k8s/realized); null when nothing is verified */
|
|
9
|
+
realized?: (LevelFour.KubernetesRealized | null) | undefined;
|
|
10
|
+
/** Namespaces where the automation applies changes by itself: apply mode, not opted out by the levelfour.ai/automation=off label, in the Helm install's namespaces, recommendations on, sized by no other tool, not being taken over and not paused because the approver left; 0 while the cluster's automation is off or paused. Null when no cluster has the automation component */
|
|
11
|
+
automation_namespaces_acting?: (number | null) | undefined;
|
|
12
|
+
/** The namespaces the Automation tab lists: the current ones, system namespaces left out. Null when no cluster has the automation component */
|
|
13
|
+
automation_namespaces_total?: (number | null) | undefined;
|
|
3
14
|
/** The cluster's latest batch, the snapshot every current-state figure reflects: node, namespace, workload and claim counts, pods, workloads by kind, autoscalers and workloads at risk. Null until it reports one */
|
|
4
15
|
as_of?: (string | null) | undefined;
|
|
16
|
+
/** The snapshot lists the agent has not sent for longer than the 24 hours ingest carries one (it sent them as null): namespaces, nodes, workloads or volumes, each with the time of the last batch that sent it, since when its rows read unreported (unreported_since). A list is here only while it is unreported, so an empty object means the latest batch read every list. The cluster's counts of the latest batch leave out an unreported list's rows: node_count for nodes, namespace_count and namespaces_enabled for namespaces, workload_count and the workload figures for workloads, the claim counts for volumes */
|
|
17
|
+
unreported_lists?: Record<string, string> | undefined;
|
|
5
18
|
/** The cluster's cost, as the clusters list reads it */
|
|
6
19
|
total_cost?: (number | null) | undefined;
|
|
7
20
|
idle_cost?: (number | null) | undefined;
|
|
@@ -25,8 +38,8 @@ export interface ClusterSummary {
|
|
|
25
38
|
/** While awaiting_bill, the day the first priced day should show: 2 days after the later of the bill's last day and the day the cluster connected, since a bill runs a day or two behind. Null otherwise */
|
|
26
39
|
bill_expected_by?: (string | null) | undefined;
|
|
27
40
|
nodes_by_purchase_type: LevelFour.PurchaseTypeShare[];
|
|
28
|
-
/** Current workloads at high risk: an OOM kill
|
|
29
|
-
workloads_at_risk: number;
|
|
41
|
+
/** Current workloads at high risk, on what holds now: an OOM kill or an eviction in the window's last two days, a container restarting at a crash loop's pace in them, or no ready replica in two batches in a row. Medium and low never count. An ephemeral one, a pull-request or branch environment, counts only with include_ephemeral. Null when the request passed at_risk=false; GET /clusters/{cluster_id} returns the same count */
|
|
42
|
+
workloads_at_risk: number | null;
|
|
30
43
|
/** Pods Pending on average in the latest hour the agent reported */
|
|
31
44
|
pods_pending?: (number | null) | undefined;
|
|
32
45
|
node_count: number;
|
|
@@ -35,6 +48,10 @@ export interface ClusterSummary {
|
|
|
35
48
|
workload_count: number;
|
|
36
49
|
pvc_count: number;
|
|
37
50
|
potential_savings?: (LevelFour.PotentialSavings | null) | undefined;
|
|
51
|
+
/** The nodes rightsizing every workload would free and what they cost a month, as the worker's last scan reviewed the pools; null before a scan stored it */
|
|
52
|
+
rightsizing_frees?: (LevelFour.RightsizingFrees | null) | undefined;
|
|
53
|
+
/** What the namespaces whose recommendations are off leave unused a month, and how many are off; null when none is off (api#2091) */
|
|
54
|
+
off_namespaces_waste?: (LevelFour.OffNamespacesWaste | null) | undefined;
|
|
38
55
|
/** Over the cluster's NodePool and node group reviews; null until the worker reviewed one */
|
|
39
56
|
purchase_balance?: (LevelFour.PurchaseBalance | null) | undefined;
|
|
40
57
|
/** As of the latest batch */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as LevelFour from "../index.mjs";
|
|
1
2
|
export interface ConnectedAccount {
|
|
2
3
|
/** Cloud provider that owns this account row (aws or gcp) */
|
|
3
4
|
provider?: ConnectedAccount.Provider | undefined;
|
|
@@ -35,6 +36,22 @@ export interface ConnectedAccount {
|
|
|
35
36
|
pricing_last_ingested_at?: (string | null) | undefined;
|
|
36
37
|
/** Last pricing ingestion error for this account, when pricing_status is 'error' */
|
|
37
38
|
pricing_last_error?: (string | null) | undefined;
|
|
39
|
+
/** AWS error code (AccessDenied) that refused LevelFour's last check of the account's role, when status is 'error'. Null once the role answers */
|
|
40
|
+
access_error?: (string | null) | undefined;
|
|
41
|
+
/** When LevelFour last tried the account's role, whether or not it answered. AWS only */
|
|
42
|
+
access_checked_at?: (string | null) | undefined;
|
|
43
|
+
/** Where AWS Organizations places the account: in an organizational unit, at the root, outside any organization, in one whose payer this organization has not connected, or unknown because the role may not read AWS Organizations. Null until LevelFour reads it. AWS only */
|
|
44
|
+
org_state?: (ConnectedAccount.OrgState | null) | undefined;
|
|
45
|
+
/** When LevelFour last read the account's place in its organization. AWS only */
|
|
46
|
+
org_checked_at?: (string | null) | undefined;
|
|
47
|
+
/** The account's cost over the last 30 days. 0 with cost before that, null with none at all */
|
|
48
|
+
cost_30d?: (number | null) | undefined;
|
|
49
|
+
/** The organizational unit the account sits in, or null at the root or when it is unknown */
|
|
50
|
+
organizational_unit?: (LevelFour.OrganizationalUnit | null) | undefined;
|
|
51
|
+
/** The last day LevelFour holds a cost for the account, within 120 days */
|
|
52
|
+
last_cost_at?: (string | null) | undefined;
|
|
53
|
+
/** Whether the account's cost keeps arriving: receiving within CUR_FRESHNESS_LAG_DAYS plus a day, no_spend with no cost in 30 days, delayed otherwise, null when no cost ever arrived */
|
|
54
|
+
cost_data_status?: (ConnectedAccount.CostDataStatus | null) | undefined;
|
|
38
55
|
/** Whether the Google Cloud billing export is still delivering: stalled once its last usage day is more than GCP_BQ_STALE_AFTER_DAYS old, unknown when nothing has been ingested */
|
|
39
56
|
cur_delivery_state?: ConnectedAccount.CurDeliveryState | undefined;
|
|
40
57
|
}
|
|
@@ -79,6 +96,20 @@ export declare namespace ConnectedAccount {
|
|
|
79
96
|
readonly Error: "error";
|
|
80
97
|
};
|
|
81
98
|
type PricingStatus = (typeof PricingStatus)[keyof typeof PricingStatus];
|
|
99
|
+
const OrgState: {
|
|
100
|
+
readonly InOu: "in_ou";
|
|
101
|
+
readonly Root: "root";
|
|
102
|
+
readonly OutsideOrg: "outside_org";
|
|
103
|
+
readonly PayerNotConnected: "payer_not_connected";
|
|
104
|
+
readonly NoOrgAccess: "no_org_access";
|
|
105
|
+
};
|
|
106
|
+
type OrgState = (typeof OrgState)[keyof typeof OrgState];
|
|
107
|
+
const CostDataStatus: {
|
|
108
|
+
readonly Receiving: "receiving";
|
|
109
|
+
readonly Delayed: "delayed";
|
|
110
|
+
readonly NoSpend: "no_spend";
|
|
111
|
+
};
|
|
112
|
+
type CostDataStatus = (typeof CostDataStatus)[keyof typeof CostDataStatus];
|
|
82
113
|
/** Whether the Google Cloud billing export is still delivering: stalled once its last usage day is more than GCP_BQ_STALE_AFTER_DAYS old, unknown when nothing has been ingested */
|
|
83
114
|
const CurDeliveryState: {
|
|
84
115
|
readonly Current: "current";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as LevelFour from "../index.js";
|
|
1
2
|
export interface ConnectedAccount {
|
|
2
3
|
/** Cloud provider that owns this account row (aws or gcp) */
|
|
3
4
|
provider?: ConnectedAccount.Provider | undefined;
|
|
@@ -35,6 +36,22 @@ export interface ConnectedAccount {
|
|
|
35
36
|
pricing_last_ingested_at?: (string | null) | undefined;
|
|
36
37
|
/** Last pricing ingestion error for this account, when pricing_status is 'error' */
|
|
37
38
|
pricing_last_error?: (string | null) | undefined;
|
|
39
|
+
/** AWS error code (AccessDenied) that refused LevelFour's last check of the account's role, when status is 'error'. Null once the role answers */
|
|
40
|
+
access_error?: (string | null) | undefined;
|
|
41
|
+
/** When LevelFour last tried the account's role, whether or not it answered. AWS only */
|
|
42
|
+
access_checked_at?: (string | null) | undefined;
|
|
43
|
+
/** Where AWS Organizations places the account: in an organizational unit, at the root, outside any organization, in one whose payer this organization has not connected, or unknown because the role may not read AWS Organizations. Null until LevelFour reads it. AWS only */
|
|
44
|
+
org_state?: (ConnectedAccount.OrgState | null) | undefined;
|
|
45
|
+
/** When LevelFour last read the account's place in its organization. AWS only */
|
|
46
|
+
org_checked_at?: (string | null) | undefined;
|
|
47
|
+
/** The account's cost over the last 30 days. 0 with cost before that, null with none at all */
|
|
48
|
+
cost_30d?: (number | null) | undefined;
|
|
49
|
+
/** The organizational unit the account sits in, or null at the root or when it is unknown */
|
|
50
|
+
organizational_unit?: (LevelFour.OrganizationalUnit | null) | undefined;
|
|
51
|
+
/** The last day LevelFour holds a cost for the account, within 120 days */
|
|
52
|
+
last_cost_at?: (string | null) | undefined;
|
|
53
|
+
/** Whether the account's cost keeps arriving: receiving within CUR_FRESHNESS_LAG_DAYS plus a day, no_spend with no cost in 30 days, delayed otherwise, null when no cost ever arrived */
|
|
54
|
+
cost_data_status?: (ConnectedAccount.CostDataStatus | null) | undefined;
|
|
38
55
|
/** Whether the Google Cloud billing export is still delivering: stalled once its last usage day is more than GCP_BQ_STALE_AFTER_DAYS old, unknown when nothing has been ingested */
|
|
39
56
|
cur_delivery_state?: ConnectedAccount.CurDeliveryState | undefined;
|
|
40
57
|
}
|
|
@@ -79,6 +96,20 @@ export declare namespace ConnectedAccount {
|
|
|
79
96
|
readonly Error: "error";
|
|
80
97
|
};
|
|
81
98
|
type PricingStatus = (typeof PricingStatus)[keyof typeof PricingStatus];
|
|
99
|
+
const OrgState: {
|
|
100
|
+
readonly InOu: "in_ou";
|
|
101
|
+
readonly Root: "root";
|
|
102
|
+
readonly OutsideOrg: "outside_org";
|
|
103
|
+
readonly PayerNotConnected: "payer_not_connected";
|
|
104
|
+
readonly NoOrgAccess: "no_org_access";
|
|
105
|
+
};
|
|
106
|
+
type OrgState = (typeof OrgState)[keyof typeof OrgState];
|
|
107
|
+
const CostDataStatus: {
|
|
108
|
+
readonly Receiving: "receiving";
|
|
109
|
+
readonly Delayed: "delayed";
|
|
110
|
+
readonly NoSpend: "no_spend";
|
|
111
|
+
};
|
|
112
|
+
type CostDataStatus = (typeof CostDataStatus)[keyof typeof CostDataStatus];
|
|
82
113
|
/** Whether the Google Cloud billing export is still delivering: stalled once its last usage day is more than GCP_BQ_STALE_AFTER_DAYS old, unknown when nothing has been ingested */
|
|
83
114
|
const CurDeliveryState: {
|
|
84
115
|
readonly Current: "current";
|
|
@@ -54,6 +54,18 @@ var ConnectedAccount;
|
|
|
54
54
|
ActionNeeded: "action_needed",
|
|
55
55
|
Error: "error"
|
|
56
56
|
};
|
|
57
|
+
ConnectedAccount2.OrgState = {
|
|
58
|
+
InOu: "in_ou",
|
|
59
|
+
Root: "root",
|
|
60
|
+
OutsideOrg: "outside_org",
|
|
61
|
+
PayerNotConnected: "payer_not_connected",
|
|
62
|
+
NoOrgAccess: "no_org_access"
|
|
63
|
+
};
|
|
64
|
+
ConnectedAccount2.CostDataStatus = {
|
|
65
|
+
Receiving: "receiving",
|
|
66
|
+
Delayed: "delayed",
|
|
67
|
+
NoSpend: "no_spend"
|
|
68
|
+
};
|
|
57
69
|
ConnectedAccount2.CurDeliveryState = {
|
|
58
70
|
Current: "current",
|
|
59
71
|
Stalled: "stalled",
|
|
@@ -31,6 +31,18 @@ var ConnectedAccount;
|
|
|
31
31
|
ActionNeeded: "action_needed",
|
|
32
32
|
Error: "error"
|
|
33
33
|
};
|
|
34
|
+
ConnectedAccount2.OrgState = {
|
|
35
|
+
InOu: "in_ou",
|
|
36
|
+
Root: "root",
|
|
37
|
+
OutsideOrg: "outside_org",
|
|
38
|
+
PayerNotConnected: "payer_not_connected",
|
|
39
|
+
NoOrgAccess: "no_org_access"
|
|
40
|
+
};
|
|
41
|
+
ConnectedAccount2.CostDataStatus = {
|
|
42
|
+
Receiving: "receiving",
|
|
43
|
+
Delayed: "delayed",
|
|
44
|
+
NoSpend: "no_spend"
|
|
45
|
+
};
|
|
34
46
|
ConnectedAccount2.CurDeliveryState = {
|
|
35
47
|
Current: "current",
|
|
36
48
|
Stalled: "stalled",
|
|
@@ -6,6 +6,11 @@ export interface ConsolidationBlocker {
|
|
|
6
6
|
node: string;
|
|
7
7
|
node_pool?: (string | null) | undefined;
|
|
8
8
|
node_group?: (string | null) | undefined;
|
|
9
|
+
/** The node's instance type, so a screen names it readably */
|
|
10
|
+
instance_type?: (string | null) | undefined;
|
|
11
|
+
/** spot, on-demand and so on, as the node reports it */
|
|
12
|
+
capacity_type?: (string | null) | undefined;
|
|
13
|
+
zone?: (string | null) | undefined;
|
|
9
14
|
/** karpenter when the node belongs to a NodePool */
|
|
10
15
|
autoscaler: ConsolidationBlocker.Autoscaler;
|
|
11
16
|
namespace: string;
|
|
@@ -13,6 +18,16 @@ export interface ConsolidationBlocker {
|
|
|
13
18
|
/** "Pod" for a pod without a controller, empty for a static pod */
|
|
14
19
|
workload_kind: string;
|
|
15
20
|
workload_name: string;
|
|
21
|
+
/** The replicas its workload wants, at the latest batch; null for a pod without a workload */
|
|
22
|
+
workload_replicas?: (number | null) | undefined;
|
|
23
|
+
/** Of those, how many are ready */
|
|
24
|
+
workload_ready_replicas?: (number | null) | undefined;
|
|
25
|
+
/** Since when every batch has read its workload wanting replicas with none ready; null once one is ready or none is wanted, and null when all that is known is that none was ready by 2026-11-19 20:26 UTC, a start the migration that added this field filled in */
|
|
26
|
+
workload_zero_ready_since?: (string | null) | undefined;
|
|
27
|
+
/** The PodDisruptionBudgets selecting its workload that allow no disruption now, by name; empty unless one of its reasons is pdb */
|
|
28
|
+
pdbs?: LevelFour.BlockingPdb[] | undefined;
|
|
29
|
+
/** The HPA or KEDA ScaledObject that scales its workload, KEDA's own object before the HPA it runs; null when nothing does. Scaling such a workload to 0 means changing or removing it */
|
|
30
|
+
scaler?: (LevelFour.WorkloadScaler | null) | undefined;
|
|
16
31
|
/** static_pod alone for a static pod, which goes with its node */
|
|
17
32
|
reasons: LevelFour.BlockingReason[];
|
|
18
33
|
/** 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 */
|
|
@@ -31,6 +46,8 @@ export interface ConsolidationBlocker {
|
|
|
31
46
|
node_kept_reason?: (ConsolidationBlocker.NodeKeptReason | null) | undefined;
|
|
32
47
|
/** Why it is not known whether its held node would go, set only when node_would_free is null on a held node. pool_not_reported: the agent did not report its NodePool. budget_not_reported: a disruption budget of its NodePool allows 0 nodes, and Karpenter applies the most restrictive budget active while the agent does not send the reasons or schedule a budget applies to. not_worked_out: no batch since the node was held worked it out, or working it out ran past the work budget or failed */
|
|
33
48
|
node_not_known_reason?: (ConsolidationBlocker.NodeNotKnownReason | null) | undefined;
|
|
49
|
+
/** Whether a pod now on its node belongs to a workload with a recommendation published and not yet saved (available, awaiting approval or rolling out). Freeing such a node is already counted in that saving */
|
|
50
|
+
has_published_recommendation?: boolean | undefined;
|
|
34
51
|
}
|
|
35
52
|
export declare namespace ConsolidationBlocker {
|
|
36
53
|
/** karpenter when the node belongs to a NodePool */
|
|
@@ -6,6 +6,11 @@ export interface ConsolidationBlocker {
|
|
|
6
6
|
node: string;
|
|
7
7
|
node_pool?: (string | null) | undefined;
|
|
8
8
|
node_group?: (string | null) | undefined;
|
|
9
|
+
/** The node's instance type, so a screen names it readably */
|
|
10
|
+
instance_type?: (string | null) | undefined;
|
|
11
|
+
/** spot, on-demand and so on, as the node reports it */
|
|
12
|
+
capacity_type?: (string | null) | undefined;
|
|
13
|
+
zone?: (string | null) | undefined;
|
|
9
14
|
/** karpenter when the node belongs to a NodePool */
|
|
10
15
|
autoscaler: ConsolidationBlocker.Autoscaler;
|
|
11
16
|
namespace: string;
|
|
@@ -13,6 +18,16 @@ export interface ConsolidationBlocker {
|
|
|
13
18
|
/** "Pod" for a pod without a controller, empty for a static pod */
|
|
14
19
|
workload_kind: string;
|
|
15
20
|
workload_name: string;
|
|
21
|
+
/** The replicas its workload wants, at the latest batch; null for a pod without a workload */
|
|
22
|
+
workload_replicas?: (number | null) | undefined;
|
|
23
|
+
/** Of those, how many are ready */
|
|
24
|
+
workload_ready_replicas?: (number | null) | undefined;
|
|
25
|
+
/** Since when every batch has read its workload wanting replicas with none ready; null once one is ready or none is wanted, and null when all that is known is that none was ready by 2026-11-19 20:26 UTC, a start the migration that added this field filled in */
|
|
26
|
+
workload_zero_ready_since?: (string | null) | undefined;
|
|
27
|
+
/** The PodDisruptionBudgets selecting its workload that allow no disruption now, by name; empty unless one of its reasons is pdb */
|
|
28
|
+
pdbs?: LevelFour.BlockingPdb[] | undefined;
|
|
29
|
+
/** The HPA or KEDA ScaledObject that scales its workload, KEDA's own object before the HPA it runs; null when nothing does. Scaling such a workload to 0 means changing or removing it */
|
|
30
|
+
scaler?: (LevelFour.WorkloadScaler | null) | undefined;
|
|
16
31
|
/** static_pod alone for a static pod, which goes with its node */
|
|
17
32
|
reasons: LevelFour.BlockingReason[];
|
|
18
33
|
/** 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 */
|
|
@@ -31,6 +46,8 @@ export interface ConsolidationBlocker {
|
|
|
31
46
|
node_kept_reason?: (ConsolidationBlocker.NodeKeptReason | null) | undefined;
|
|
32
47
|
/** Why it is not known whether its held node would go, set only when node_would_free is null on a held node. pool_not_reported: the agent did not report its NodePool. budget_not_reported: a disruption budget of its NodePool allows 0 nodes, and Karpenter applies the most restrictive budget active while the agent does not send the reasons or schedule a budget applies to. not_worked_out: no batch since the node was held worked it out, or working it out ran past the work budget or failed */
|
|
33
48
|
node_not_known_reason?: (ConsolidationBlocker.NodeNotKnownReason | null) | undefined;
|
|
49
|
+
/** Whether a pod now on its node belongs to a workload with a recommendation published and not yet saved (available, awaiting approval or rolling out). Freeing such a node is already counted in that saving */
|
|
50
|
+
has_published_recommendation?: boolean | undefined;
|
|
34
51
|
}
|
|
35
52
|
export declare namespace ConsolidationBlocker {
|
|
36
53
|
/** karpenter when the node belongs to a NodePool */
|