levelfour 1.16.0 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/resources/recommendations/client/Client.js +2 -0
- package/dist/api/resources/recommendations/client/Client.mjs +2 -0
- package/dist/api/resources/recommendations/client/requests/GetProviderOverviewRecommendationsRequest.d.mts +2 -0
- package/dist/api/resources/recommendations/client/requests/GetProviderOverviewRecommendationsRequest.d.ts +2 -0
- package/dist/api/types/BlockedNamespace.d.mts +9 -0
- package/dist/api/types/BlockedNamespace.d.ts +9 -0
- package/dist/api/types/BlockedNamespace.js +17 -0
- package/dist/api/types/BlockedNamespace.mjs +1 -0
- package/dist/api/types/CheckedObject.d.mts +1 -1
- package/dist/api/types/CheckedObject.d.ts +1 -1
- package/dist/api/types/ClusterItem.d.mts +7 -3
- package/dist/api/types/ClusterItem.d.ts +7 -3
- package/dist/api/types/ClusterLevers.d.mts +2 -2
- package/dist/api/types/ClusterLevers.d.ts +2 -2
- package/dist/api/types/ClusterSummary.d.mts +5 -1
- package/dist/api/types/ClusterSummary.d.ts +5 -1
- package/dist/api/types/ConfigObjectView.d.mts +2 -11
- package/dist/api/types/ConfigObjectView.d.ts +2 -11
- package/dist/api/types/ConfigObjectView.js +0 -9
- package/dist/api/types/ConfigObjectView.mjs +0 -9
- package/dist/api/types/ConsolidationBlocker.d.mts +26 -0
- package/dist/api/types/ConsolidationBlocker.d.ts +26 -0
- package/dist/api/types/ConsolidationBlocker.js +19 -0
- package/dist/api/types/ConsolidationBlocker.mjs +19 -0
- package/dist/api/types/ConsolidationChange.d.mts +16 -0
- package/dist/api/types/ConsolidationChange.d.ts +16 -0
- package/dist/api/types/ConsolidationChange.js +13 -0
- package/dist/api/types/ConsolidationChange.mjs +13 -0
- package/dist/api/types/ConsolidationChangeDetail.d.mts +16 -0
- package/dist/api/types/ConsolidationChangeDetail.d.ts +16 -0
- package/dist/api/types/ConsolidationChangeDetail.js +13 -0
- package/dist/api/types/ConsolidationChangeDetail.mjs +13 -0
- package/dist/api/types/ConsolidationChangeTotals.d.mts +5 -1
- package/dist/api/types/ConsolidationChangeTotals.d.ts +5 -1
- package/dist/api/types/ConsolidationLever.d.mts +2 -0
- package/dist/api/types/ConsolidationLever.d.ts +2 -0
- package/dist/api/types/FailingShare.d.mts +1 -1
- package/dist/api/types/FailingShare.d.ts +1 -1
- package/dist/api/types/FleetConsolidationChange.d.mts +16 -0
- package/dist/api/types/FleetConsolidationChange.d.ts +16 -0
- package/dist/api/types/FleetConsolidationChange.js +13 -0
- package/dist/api/types/FleetConsolidationChange.mjs +13 -0
- package/dist/api/types/FleetConsolidationLever.d.mts +4 -0
- package/dist/api/types/FleetConsolidationLever.d.ts +4 -0
- package/dist/api/types/FleetLever.d.mts +2 -0
- package/dist/api/types/FleetLever.d.ts +2 -0
- package/dist/api/types/FleetLevers.d.mts +1 -1
- package/dist/api/types/FleetLevers.d.ts +1 -1
- package/dist/api/types/FleetNamespace.d.mts +3 -1
- package/dist/api/types/FleetNamespace.d.ts +3 -1
- package/dist/api/types/FleetRightsizingLever.d.mts +20 -0
- package/dist/api/types/FleetRightsizingLever.d.ts +20 -0
- package/dist/api/types/FleetRightsizingLever.js +17 -0
- package/dist/api/types/FleetRightsizingLever.mjs +1 -0
- package/dist/api/types/FleetSummary.d.mts +5 -1
- package/dist/api/types/FleetSummary.d.ts +5 -1
- package/dist/api/types/FleetVolume.d.mts +1 -1
- package/dist/api/types/FleetVolume.d.ts +1 -1
- package/dist/api/types/ForecastData.d.mts +3 -3
- package/dist/api/types/ForecastData.d.ts +3 -3
- package/dist/api/types/HeldChange.d.mts +16 -0
- package/dist/api/types/HeldChange.d.ts +16 -0
- package/dist/api/types/HeldChange.js +13 -0
- package/dist/api/types/HeldChange.mjs +13 -0
- package/dist/api/types/HeldOutcome.d.mts +9 -0
- package/dist/api/types/HeldOutcome.d.ts +9 -0
- package/dist/api/types/HeldOutcome.js +17 -0
- package/dist/api/types/HeldOutcome.mjs +1 -0
- package/dist/api/types/Impact.d.mts +40 -0
- package/dist/api/types/Impact.d.ts +40 -0
- package/dist/api/types/Impact.js +36 -0
- package/dist/api/types/Impact.mjs +12 -0
- package/dist/api/types/ImpactBeforeNow.d.mts +5 -0
- package/dist/api/types/ImpactBeforeNow.d.ts +5 -0
- package/dist/api/types/ImpactBeforeNow.js +17 -0
- package/dist/api/types/ImpactBeforeNow.mjs +1 -0
- package/dist/api/types/ImpactChange.d.mts +47 -0
- package/dist/api/types/ImpactChange.d.ts +47 -0
- package/dist/api/types/ImpactChange.js +44 -0
- package/dist/api/types/ImpactChange.mjs +20 -0
- package/dist/api/types/ImpactChangeList.d.mts +5 -0
- package/dist/api/types/ImpactChangeList.d.ts +5 -0
- package/dist/api/types/ImpactChangeList.js +17 -0
- package/dist/api/types/ImpactChangeList.mjs +1 -0
- package/dist/api/types/ImpactChangeListResponse.d.mts +6 -0
- package/dist/api/types/ImpactChangeListResponse.d.ts +6 -0
- package/dist/api/types/ImpactChangeListResponse.js +17 -0
- package/dist/api/types/ImpactChangeListResponse.mjs +1 -0
- package/dist/api/types/ImpactChanges.d.mts +8 -0
- package/dist/api/types/ImpactChanges.d.ts +8 -0
- package/dist/api/types/ImpactChanges.js +17 -0
- package/dist/api/types/ImpactChanges.mjs +1 -0
- package/dist/api/types/ImpactCluster.d.mts +22 -0
- package/dist/api/types/ImpactCluster.d.ts +22 -0
- package/dist/api/types/ImpactCluster.js +35 -0
- package/dist/api/types/ImpactCluster.mjs +11 -0
- package/dist/api/types/ImpactClusterListResponse.d.mts +6 -0
- package/dist/api/types/ImpactClusterListResponse.d.ts +6 -0
- package/dist/api/types/ImpactClusterListResponse.js +17 -0
- package/dist/api/types/ImpactClusterListResponse.mjs +1 -0
- package/dist/api/types/ImpactClusters.d.mts +7 -0
- package/dist/api/types/ImpactClusters.d.ts +7 -0
- package/dist/api/types/ImpactClusters.js +17 -0
- package/dist/api/types/ImpactClusters.mjs +1 -0
- package/dist/api/types/ImpactCount.d.mts +16 -0
- package/dist/api/types/ImpactCount.d.ts +16 -0
- package/dist/api/types/ImpactCount.js +17 -0
- package/dist/api/types/ImpactCount.mjs +1 -0
- package/dist/api/types/ImpactDaySpan.d.mts +4 -0
- package/dist/api/types/ImpactDaySpan.d.ts +4 -0
- package/dist/api/types/ImpactDaySpan.js +17 -0
- package/dist/api/types/ImpactDaySpan.mjs +1 -0
- package/dist/api/types/ImpactDaysCompared.d.mts +4 -0
- package/dist/api/types/ImpactDaysCompared.d.ts +4 -0
- package/dist/api/types/ImpactDaysCompared.js +17 -0
- package/dist/api/types/ImpactDaysCompared.mjs +1 -0
- package/dist/api/types/ImpactExcluded.d.mts +14 -0
- package/dist/api/types/ImpactExcluded.d.ts +14 -0
- package/dist/api/types/ImpactExcluded.js +35 -0
- package/dist/api/types/ImpactExcluded.mjs +11 -0
- package/dist/api/types/ImpactMeasuredThrough.d.mts +6 -0
- package/dist/api/types/ImpactMeasuredThrough.d.ts +6 -0
- package/dist/api/types/ImpactMeasuredThrough.js +17 -0
- package/dist/api/types/ImpactMeasuredThrough.mjs +1 -0
- package/dist/api/types/ImpactMeasuring.d.mts +6 -0
- package/dist/api/types/ImpactMeasuring.d.ts +6 -0
- package/dist/api/types/ImpactMeasuring.js +17 -0
- package/dist/api/types/ImpactMeasuring.mjs +1 -0
- package/dist/api/types/ImpactNamespace.d.mts +11 -0
- package/dist/api/types/ImpactNamespace.d.ts +11 -0
- package/dist/api/types/ImpactNamespace.js +17 -0
- package/dist/api/types/ImpactNamespace.mjs +1 -0
- package/dist/api/types/ImpactNamespaceListResponse.d.mts +6 -0
- package/dist/api/types/ImpactNamespaceListResponse.d.ts +6 -0
- package/dist/api/types/ImpactNamespaceListResponse.js +17 -0
- package/dist/api/types/ImpactNamespaceListResponse.mjs +1 -0
- package/dist/api/types/ImpactNamespaces.d.mts +6 -0
- package/dist/api/types/ImpactNamespaces.d.ts +6 -0
- package/dist/api/types/ImpactNamespaces.js +17 -0
- package/dist/api/types/ImpactNamespaces.mjs +1 -0
- package/dist/api/types/ImpactPace.d.mts +6 -0
- package/dist/api/types/ImpactPace.d.ts +6 -0
- package/dist/api/types/ImpactPace.js +17 -0
- package/dist/api/types/ImpactPace.mjs +1 -0
- package/dist/api/types/ImpactPoint.d.mts +21 -0
- package/dist/api/types/ImpactPoint.d.ts +21 -0
- package/dist/api/types/ImpactPoint.js +17 -0
- package/dist/api/types/ImpactPoint.mjs +1 -0
- package/dist/api/types/ImpactRequests.d.mts +7 -0
- package/dist/api/types/ImpactRequests.d.ts +7 -0
- package/dist/api/types/ImpactRequests.js +17 -0
- package/dist/api/types/ImpactRequests.mjs +1 -0
- package/dist/api/types/ImpactRequestsMoved.d.mts +10 -0
- package/dist/api/types/ImpactRequestsMoved.d.ts +10 -0
- package/dist/api/types/ImpactRequestsMoved.js +17 -0
- package/dist/api/types/ImpactRequestsMoved.mjs +1 -0
- package/dist/api/types/ImpactResponse.d.mts +6 -0
- package/dist/api/types/ImpactResponse.d.ts +6 -0
- package/dist/api/types/ImpactResponse.js +17 -0
- package/dist/api/types/ImpactResponse.mjs +1 -0
- package/dist/api/types/ImpactResultWindows.d.mts +5 -0
- package/dist/api/types/ImpactResultWindows.d.ts +5 -0
- package/dist/api/types/ImpactResultWindows.js +17 -0
- package/dist/api/types/ImpactResultWindows.mjs +1 -0
- package/dist/api/types/ImpactRowTotals.d.mts +6 -0
- package/dist/api/types/ImpactRowTotals.d.ts +6 -0
- package/dist/api/types/ImpactRowTotals.js +17 -0
- package/dist/api/types/ImpactRowTotals.mjs +1 -0
- package/dist/api/types/ImpactSaved.d.mts +4 -0
- package/dist/api/types/ImpactSaved.d.ts +4 -0
- package/dist/api/types/ImpactSaved.js +17 -0
- package/dist/api/types/ImpactSaved.mjs +1 -0
- package/dist/api/types/ImpactScope.d.mts +9 -0
- package/dist/api/types/ImpactScope.d.ts +9 -0
- package/dist/api/types/ImpactScope.js +17 -0
- package/dist/api/types/ImpactScope.mjs +1 -0
- package/dist/api/types/ImpactSeries.d.mts +5 -0
- package/dist/api/types/ImpactSeries.d.ts +5 -0
- package/dist/api/types/ImpactSeries.js +17 -0
- package/dist/api/types/ImpactSeries.mjs +1 -0
- package/dist/api/types/ImpactSeriesResponse.d.mts +6 -0
- package/dist/api/types/ImpactSeriesResponse.d.ts +6 -0
- package/dist/api/types/ImpactSeriesResponse.js +17 -0
- package/dist/api/types/ImpactSeriesResponse.mjs +1 -0
- package/dist/api/types/ImpactWasNowCount.d.mts +4 -0
- package/dist/api/types/ImpactWasNowCount.d.ts +4 -0
- package/dist/api/types/ImpactWasNowCount.js +17 -0
- package/dist/api/types/ImpactWasNowCount.mjs +1 -0
- package/dist/api/types/ImpactWasNowUsd.d.mts +4 -0
- package/dist/api/types/ImpactWasNowUsd.d.ts +4 -0
- package/dist/api/types/ImpactWasNowUsd.js +17 -0
- package/dist/api/types/ImpactWasNowUsd.mjs +1 -0
- package/dist/api/types/ImpactWasWindow.d.mts +8 -0
- package/dist/api/types/ImpactWasWindow.d.ts +8 -0
- package/dist/api/types/ImpactWasWindow.js +17 -0
- package/dist/api/types/ImpactWasWindow.mjs +1 -0
- package/dist/api/types/ImpactWaste.d.mts +20 -0
- package/dist/api/types/ImpactWaste.d.ts +20 -0
- package/dist/api/types/ImpactWaste.js +17 -0
- package/dist/api/types/ImpactWaste.mjs +1 -0
- package/dist/api/types/ImpactWorkload.d.mts +27 -0
- package/dist/api/types/ImpactWorkload.d.ts +27 -0
- package/dist/api/types/ImpactWorkload.js +40 -0
- package/dist/api/types/ImpactWorkload.mjs +16 -0
- package/dist/api/types/ImpactWorkloadDetail.d.mts +34 -0
- package/dist/api/types/ImpactWorkloadDetail.d.ts +34 -0
- package/dist/api/types/ImpactWorkloadDetail.js +40 -0
- package/dist/api/types/ImpactWorkloadDetail.mjs +16 -0
- package/dist/api/types/ImpactWorkloadListResponse.d.mts +6 -0
- package/dist/api/types/ImpactWorkloadListResponse.d.ts +6 -0
- package/dist/api/types/ImpactWorkloadListResponse.js +17 -0
- package/dist/api/types/ImpactWorkloadListResponse.mjs +1 -0
- package/dist/api/types/ImpactWorkloadResponse.d.mts +6 -0
- package/dist/api/types/ImpactWorkloadResponse.d.ts +6 -0
- package/dist/api/types/ImpactWorkloadResponse.js +17 -0
- package/dist/api/types/ImpactWorkloadResponse.mjs +1 -0
- package/dist/api/types/ImpactWorkloads.d.mts +6 -0
- package/dist/api/types/ImpactWorkloads.d.ts +6 -0
- package/dist/api/types/ImpactWorkloads.js +17 -0
- package/dist/api/types/ImpactWorkloads.mjs +1 -0
- package/dist/api/types/Indicator.d.mts +16 -1
- package/dist/api/types/Indicator.d.ts +16 -1
- package/dist/api/types/Indicator.js +12 -0
- package/dist/api/types/Indicator.mjs +12 -0
- package/dist/api/types/IndicatorCount.d.mts +1 -0
- package/dist/api/types/IndicatorCount.d.ts +1 -0
- package/dist/api/types/IndicatorCount.js +1 -0
- package/dist/api/types/IndicatorCount.mjs +1 -0
- package/dist/api/types/NamespaceAutomation.d.mts +8 -0
- package/dist/api/types/NamespaceAutomation.d.ts +8 -0
- package/dist/api/types/NamespaceAutomation.js +5 -0
- package/dist/api/types/NamespaceAutomation.mjs +5 -0
- package/dist/api/types/NamespaceItem.d.mts +3 -1
- package/dist/api/types/NamespaceItem.d.ts +3 -1
- package/dist/api/types/NoReadyShare.d.mts +1 -1
- package/dist/api/types/NoReadyShare.d.ts +1 -1
- package/dist/api/types/ProviderBreakdownItem.d.mts +2 -0
- package/dist/api/types/ProviderBreakdownItem.d.ts +2 -0
- package/dist/api/types/RecommendationDetail.d.mts +2 -0
- package/dist/api/types/RecommendationDetail.d.ts +2 -0
- package/dist/api/types/ReliabilityLens.d.mts +2 -0
- package/dist/api/types/ReliabilityLens.d.ts +2 -0
- package/dist/api/types/ReliabilityThresholds.d.mts +23 -0
- package/dist/api/types/ReliabilityThresholds.d.ts +23 -0
- package/dist/api/types/ReliabilityThresholds.js +17 -0
- package/dist/api/types/ReliabilityThresholds.mjs +1 -0
- package/dist/api/types/RightsizedContainer.d.mts +2 -0
- package/dist/api/types/RightsizedContainer.d.ts +2 -0
- package/dist/api/types/RightsizingLever.d.mts +21 -0
- package/dist/api/types/RightsizingLever.d.ts +21 -0
- package/dist/api/types/RightsizingLever.js +17 -0
- package/dist/api/types/RightsizingLever.mjs +1 -0
- package/dist/api/types/SavingsBasis.d.mts +8 -0
- package/dist/api/types/SavingsBasis.d.ts +8 -0
- package/dist/api/types/SavingsBasis.js +17 -0
- package/dist/api/types/SavingsBasis.mjs +1 -0
- package/dist/api/types/SavingsCollecting.d.mts +6 -0
- package/dist/api/types/SavingsCollecting.d.ts +6 -0
- package/dist/api/types/SavingsCollecting.js +17 -0
- package/dist/api/types/SavingsCollecting.mjs +1 -0
- package/dist/api/types/SavingsItem.d.mts +8 -3
- package/dist/api/types/SavingsItem.d.ts +8 -3
- package/dist/api/types/SavingsMissing.d.mts +7 -1
- package/dist/api/types/SavingsMissing.d.ts +7 -1
- package/dist/api/types/SavingsNode.d.mts +13 -0
- package/dist/api/types/SavingsNode.d.ts +13 -0
- package/dist/api/types/SavingsNow.d.mts +12 -1
- package/dist/api/types/SavingsNow.d.ts +12 -1
- package/dist/api/types/SavingsNow.js +5 -0
- package/dist/api/types/SavingsNow.mjs +5 -0
- package/dist/api/types/SavingsSection.d.mts +4 -0
- package/dist/api/types/SavingsSection.d.ts +4 -0
- package/dist/api/types/SetWorkloadAutomationRequest.d.mts +2 -2
- package/dist/api/types/SetWorkloadAutomationRequest.d.ts +2 -2
- package/dist/api/types/UnpricedFindings.d.mts +1 -1
- package/dist/api/types/UnpricedFindings.d.ts +1 -1
- package/dist/api/types/VolumeItem.d.mts +1 -1
- package/dist/api/types/VolumeItem.d.ts +1 -1
- package/dist/api/types/WorkloadItem.d.mts +3 -1
- package/dist/api/types/WorkloadItem.d.ts +3 -1
- package/dist/api/types/WorkloadItem.js +2 -0
- package/dist/api/types/WorkloadItem.mjs +2 -0
- package/dist/api/types/WorkloadListItem.d.mts +3 -1
- package/dist/api/types/WorkloadListItem.d.ts +3 -1
- package/dist/api/types/WorkloadListItem.js +2 -0
- package/dist/api/types/WorkloadListItem.mjs +2 -0
- package/dist/api/types/index.d.mts +45 -0
- package/dist/api/types/index.d.ts +45 -0
- package/dist/api/types/index.js +90 -0
- package/dist/api/types/index.mjs +45 -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
|
@@ -7,6 +7,8 @@ export interface ConsolidationChangeDetail {
|
|
|
7
7
|
name: string;
|
|
8
8
|
/** The one fix the change needs, the first that applies: fix_or_scale_to_zero when its Deployment or StatefulSet wants replicas and has none ready; pdb_allows_no_eviction when a PodDisruptionBudget lets none of its pods leave; do_not_disrupt for Karpenter's annotation; other for the rest (affinity, taints, local storage, no controller) */
|
|
9
9
|
fix: ConsolidationChangeDetail.Fix;
|
|
10
|
+
/** With the fix other, the reason its sentence names: the first of its reasons in BlockerReason's order (do_not_disrupt, pdb, node_affinity, anti_affinity, topology_spread, taints, local_storage, safe_to_evict, kube_system, no_controller); null with any other fix, which names its own cause (dashboard#1689) */
|
|
11
|
+
fix_reason?: (ConsolidationChangeDetail.FixReason | null) | undefined;
|
|
10
12
|
/** The kinds of blocker its pods raise at the latest batch */
|
|
11
13
|
reasons: ConsolidationChangeDetail.Reasons.Item[];
|
|
12
14
|
/** Whether it holds a node now that would go once its blockers clear and no open recommendation covers */
|
|
@@ -45,6 +47,20 @@ export declare namespace ConsolidationChangeDetail {
|
|
|
45
47
|
readonly Other: "other";
|
|
46
48
|
};
|
|
47
49
|
type Fix = (typeof Fix)[keyof typeof Fix];
|
|
50
|
+
const FixReason: {
|
|
51
|
+
readonly DoNotDisrupt: "do_not_disrupt";
|
|
52
|
+
readonly Pdb: "pdb";
|
|
53
|
+
readonly NodeAffinity: "node_affinity";
|
|
54
|
+
readonly AntiAffinity: "anti_affinity";
|
|
55
|
+
readonly TopologySpread: "topology_spread";
|
|
56
|
+
readonly Taints: "taints";
|
|
57
|
+
readonly LocalStorage: "local_storage";
|
|
58
|
+
readonly SafeToEvict: "safe_to_evict";
|
|
59
|
+
readonly KubeSystem: "kube_system";
|
|
60
|
+
readonly NoController: "no_controller";
|
|
61
|
+
readonly StaticPod: "static_pod";
|
|
62
|
+
};
|
|
63
|
+
type FixReason = (typeof FixReason)[keyof typeof FixReason];
|
|
48
64
|
type Reasons = Reasons.Item[];
|
|
49
65
|
namespace Reasons {
|
|
50
66
|
const Item: {
|
|
@@ -29,6 +29,19 @@ var ConsolidationChangeDetail;
|
|
|
29
29
|
DoNotDisrupt: "do_not_disrupt",
|
|
30
30
|
Other: "other"
|
|
31
31
|
};
|
|
32
|
+
ConsolidationChangeDetail2.FixReason = {
|
|
33
|
+
DoNotDisrupt: "do_not_disrupt",
|
|
34
|
+
Pdb: "pdb",
|
|
35
|
+
NodeAffinity: "node_affinity",
|
|
36
|
+
AntiAffinity: "anti_affinity",
|
|
37
|
+
TopologySpread: "topology_spread",
|
|
38
|
+
Taints: "taints",
|
|
39
|
+
LocalStorage: "local_storage",
|
|
40
|
+
SafeToEvict: "safe_to_evict",
|
|
41
|
+
KubeSystem: "kube_system",
|
|
42
|
+
NoController: "no_controller",
|
|
43
|
+
StaticPod: "static_pod"
|
|
44
|
+
};
|
|
32
45
|
let Reasons;
|
|
33
46
|
((Reasons2) => {
|
|
34
47
|
Reasons2.Item = {
|
|
@@ -6,6 +6,19 @@ var ConsolidationChangeDetail;
|
|
|
6
6
|
DoNotDisrupt: "do_not_disrupt",
|
|
7
7
|
Other: "other"
|
|
8
8
|
};
|
|
9
|
+
ConsolidationChangeDetail2.FixReason = {
|
|
10
|
+
DoNotDisrupt: "do_not_disrupt",
|
|
11
|
+
Pdb: "pdb",
|
|
12
|
+
NodeAffinity: "node_affinity",
|
|
13
|
+
AntiAffinity: "anti_affinity",
|
|
14
|
+
TopologySpread: "topology_spread",
|
|
15
|
+
Taints: "taints",
|
|
16
|
+
LocalStorage: "local_storage",
|
|
17
|
+
SafeToEvict: "safe_to_evict",
|
|
18
|
+
KubeSystem: "kube_system",
|
|
19
|
+
NoController: "no_controller",
|
|
20
|
+
StaticPod: "static_pod"
|
|
21
|
+
};
|
|
9
22
|
let Reasons;
|
|
10
23
|
((Reasons2) => {
|
|
11
24
|
Reasons2.Item = {
|
|
@@ -8,12 +8,16 @@ export interface ConsolidationChangeTotals {
|
|
|
8
8
|
changes: number;
|
|
9
9
|
/** The changes listed: every one holding a node now */
|
|
10
10
|
listed: number;
|
|
11
|
-
/** The distinct nodes the listed changes hold
|
|
11
|
+
/** The distinct nodes held now, the levers.consolidation.count.of and the Nodes tab's figure: the ones the listed changes hold and the ones only workloads with an open recommendation hold, which are covered and count in no saving (dashboard#1689) */
|
|
12
12
|
nodes: number;
|
|
13
|
+
/** The workloads holding those nodes, the recommendation's own included though its change is listed nowhere: the M of 'N nodes can't scale down because of M workloads' (dashboard#1689) */
|
|
14
|
+
workloads?: number | undefined;
|
|
13
15
|
/** Of those, the ones that would go now and no recommendation covers: levers.consolidation.count.value */
|
|
14
16
|
nodes_would_free: number;
|
|
15
17
|
/** The changes that held a node that would go in the window and hold none now: not listed */
|
|
16
18
|
not_counted?: number | undefined;
|
|
19
|
+
/** The held nodes by outcome, each node once, so they add up to nodes: goes, covered, then the reasons a node stays and the reasons it is not known, in that order, only outcomes with a node; the fleet's summed by outcome (dashboard#1689) */
|
|
20
|
+
outcomes?: LevelFour.HeldOutcome[] | undefined;
|
|
17
21
|
/** History, outside every total; null when no hour was kept */
|
|
18
22
|
window?: (LevelFour.HeldWindow | null) | undefined;
|
|
19
23
|
/** The listed changes by the fix each needs, in that order, only fixes with one */
|
|
@@ -8,12 +8,16 @@ export interface ConsolidationChangeTotals {
|
|
|
8
8
|
changes: number;
|
|
9
9
|
/** The changes listed: every one holding a node now */
|
|
10
10
|
listed: number;
|
|
11
|
-
/** The distinct nodes the listed changes hold
|
|
11
|
+
/** The distinct nodes held now, the levers.consolidation.count.of and the Nodes tab's figure: the ones the listed changes hold and the ones only workloads with an open recommendation hold, which are covered and count in no saving (dashboard#1689) */
|
|
12
12
|
nodes: number;
|
|
13
|
+
/** The workloads holding those nodes, the recommendation's own included though its change is listed nowhere: the M of 'N nodes can't scale down because of M workloads' (dashboard#1689) */
|
|
14
|
+
workloads?: number | undefined;
|
|
13
15
|
/** Of those, the ones that would go now and no recommendation covers: levers.consolidation.count.value */
|
|
14
16
|
nodes_would_free: number;
|
|
15
17
|
/** The changes that held a node that would go in the window and hold none now: not listed */
|
|
16
18
|
not_counted?: number | undefined;
|
|
19
|
+
/** The held nodes by outcome, each node once, so they add up to nodes: goes, covered, then the reasons a node stays and the reasons it is not known, in that order, only outcomes with a node; the fleet's summed by outcome (dashboard#1689) */
|
|
20
|
+
outcomes?: LevelFour.HeldOutcome[] | undefined;
|
|
17
21
|
/** History, outside every total; null when no hour was kept */
|
|
18
22
|
window?: (LevelFour.HeldWindow | null) | undefined;
|
|
19
23
|
/** The listed changes by the fix each needs, in that order, only fixes with one */
|
|
@@ -17,4 +17,6 @@ export interface ConsolidationLever {
|
|
|
17
17
|
changes?: number | undefined;
|
|
18
18
|
/** The hours of the window its history counts (totals.window.hours_averaged); null with none */
|
|
19
19
|
hours_averaged?: (number | null) | undefined;
|
|
20
|
+
/** When the batch its count was read from ended, the held nodes' as_of, so a screen says which hourly check the count is (dashboard#1689). Null when the count is */
|
|
21
|
+
count_at?: (string | null) | undefined;
|
|
20
22
|
}
|
|
@@ -17,4 +17,6 @@ export interface ConsolidationLever {
|
|
|
17
17
|
changes?: number | undefined;
|
|
18
18
|
/** The hours of the window its history counts (totals.window.hours_averaged); null with none */
|
|
19
19
|
hours_averaged?: (number | null) | undefined;
|
|
20
|
+
/** When the batch its count was read from ended, the held nodes' as_of, so a screen says which hourly check the count is (dashboard#1689). Null when the count is */
|
|
21
|
+
count_at?: (string | null) | undefined;
|
|
20
22
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface FailingShare {
|
|
2
|
-
/** Current workloads that fail now: no replica ready in two batches in a row (the no_ready_replica and crash_looping indicators), or a container restarting at a crash loop's pace in the window's last two days, ready replica or not (the restarts indicator at high) */
|
|
2
|
+
/** Current workloads that fail now: no replica ready in two batches in a row (the never_started, no_ready_replica and crash_looping indicators), or a container restarting at a crash loop's pace in the window's last two days, ready replica or not (the restarts indicator at high) */
|
|
3
3
|
workloads: number;
|
|
4
4
|
/** Their restarts in the window: a crash loop restarts every few minutes */
|
|
5
5
|
restarts: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface FailingShare {
|
|
2
|
-
/** Current workloads that fail now: no replica ready in two batches in a row (the no_ready_replica and crash_looping indicators), or a container restarting at a crash loop's pace in the window's last two days, ready replica or not (the restarts indicator at high) */
|
|
2
|
+
/** Current workloads that fail now: no replica ready in two batches in a row (the never_started, no_ready_replica and crash_looping indicators), or a container restarting at a crash loop's pace in the window's last two days, ready replica or not (the restarts indicator at high) */
|
|
3
3
|
workloads: number;
|
|
4
4
|
/** Their restarts in the window: a crash loop restarts every few minutes */
|
|
5
5
|
restarts: number;
|
|
@@ -7,6 +7,8 @@ export interface FleetConsolidationChange {
|
|
|
7
7
|
name: string;
|
|
8
8
|
/** The one fix the change needs, the first that applies: fix_or_scale_to_zero when its Deployment or StatefulSet wants replicas and has none ready; pdb_allows_no_eviction when a PodDisruptionBudget lets none of its pods leave; do_not_disrupt for Karpenter's annotation; other for the rest (affinity, taints, local storage, no controller) */
|
|
9
9
|
fix: FleetConsolidationChange.Fix;
|
|
10
|
+
/** With the fix other, the reason its sentence names: the first of its reasons in BlockerReason's order (do_not_disrupt, pdb, node_affinity, anti_affinity, topology_spread, taints, local_storage, safe_to_evict, kube_system, no_controller); null with any other fix, which names its own cause (dashboard#1689) */
|
|
11
|
+
fix_reason?: (FleetConsolidationChange.FixReason | null) | undefined;
|
|
10
12
|
/** The kinds of blocker its pods raise at the latest batch */
|
|
11
13
|
reasons: FleetConsolidationChange.Reasons.Item[];
|
|
12
14
|
/** Whether it holds a node now that would go once its blockers clear and no open recommendation covers */
|
|
@@ -41,6 +43,20 @@ export declare namespace FleetConsolidationChange {
|
|
|
41
43
|
readonly Other: "other";
|
|
42
44
|
};
|
|
43
45
|
type Fix = (typeof Fix)[keyof typeof Fix];
|
|
46
|
+
const FixReason: {
|
|
47
|
+
readonly DoNotDisrupt: "do_not_disrupt";
|
|
48
|
+
readonly Pdb: "pdb";
|
|
49
|
+
readonly NodeAffinity: "node_affinity";
|
|
50
|
+
readonly AntiAffinity: "anti_affinity";
|
|
51
|
+
readonly TopologySpread: "topology_spread";
|
|
52
|
+
readonly Taints: "taints";
|
|
53
|
+
readonly LocalStorage: "local_storage";
|
|
54
|
+
readonly SafeToEvict: "safe_to_evict";
|
|
55
|
+
readonly KubeSystem: "kube_system";
|
|
56
|
+
readonly NoController: "no_controller";
|
|
57
|
+
readonly StaticPod: "static_pod";
|
|
58
|
+
};
|
|
59
|
+
type FixReason = (typeof FixReason)[keyof typeof FixReason];
|
|
44
60
|
type Reasons = Reasons.Item[];
|
|
45
61
|
namespace Reasons {
|
|
46
62
|
const Item: {
|
|
@@ -7,6 +7,8 @@ export interface FleetConsolidationChange {
|
|
|
7
7
|
name: string;
|
|
8
8
|
/** The one fix the change needs, the first that applies: fix_or_scale_to_zero when its Deployment or StatefulSet wants replicas and has none ready; pdb_allows_no_eviction when a PodDisruptionBudget lets none of its pods leave; do_not_disrupt for Karpenter's annotation; other for the rest (affinity, taints, local storage, no controller) */
|
|
9
9
|
fix: FleetConsolidationChange.Fix;
|
|
10
|
+
/** With the fix other, the reason its sentence names: the first of its reasons in BlockerReason's order (do_not_disrupt, pdb, node_affinity, anti_affinity, topology_spread, taints, local_storage, safe_to_evict, kube_system, no_controller); null with any other fix, which names its own cause (dashboard#1689) */
|
|
11
|
+
fix_reason?: (FleetConsolidationChange.FixReason | null) | undefined;
|
|
10
12
|
/** The kinds of blocker its pods raise at the latest batch */
|
|
11
13
|
reasons: FleetConsolidationChange.Reasons.Item[];
|
|
12
14
|
/** Whether it holds a node now that would go once its blockers clear and no open recommendation covers */
|
|
@@ -41,6 +43,20 @@ export declare namespace FleetConsolidationChange {
|
|
|
41
43
|
readonly Other: "other";
|
|
42
44
|
};
|
|
43
45
|
type Fix = (typeof Fix)[keyof typeof Fix];
|
|
46
|
+
const FixReason: {
|
|
47
|
+
readonly DoNotDisrupt: "do_not_disrupt";
|
|
48
|
+
readonly Pdb: "pdb";
|
|
49
|
+
readonly NodeAffinity: "node_affinity";
|
|
50
|
+
readonly AntiAffinity: "anti_affinity";
|
|
51
|
+
readonly TopologySpread: "topology_spread";
|
|
52
|
+
readonly Taints: "taints";
|
|
53
|
+
readonly LocalStorage: "local_storage";
|
|
54
|
+
readonly SafeToEvict: "safe_to_evict";
|
|
55
|
+
readonly KubeSystem: "kube_system";
|
|
56
|
+
readonly NoController: "no_controller";
|
|
57
|
+
readonly StaticPod: "static_pod";
|
|
58
|
+
};
|
|
59
|
+
type FixReason = (typeof FixReason)[keyof typeof FixReason];
|
|
44
60
|
type Reasons = Reasons.Item[];
|
|
45
61
|
namespace Reasons {
|
|
46
62
|
const Item: {
|
|
@@ -29,6 +29,19 @@ var FleetConsolidationChange;
|
|
|
29
29
|
DoNotDisrupt: "do_not_disrupt",
|
|
30
30
|
Other: "other"
|
|
31
31
|
};
|
|
32
|
+
FleetConsolidationChange2.FixReason = {
|
|
33
|
+
DoNotDisrupt: "do_not_disrupt",
|
|
34
|
+
Pdb: "pdb",
|
|
35
|
+
NodeAffinity: "node_affinity",
|
|
36
|
+
AntiAffinity: "anti_affinity",
|
|
37
|
+
TopologySpread: "topology_spread",
|
|
38
|
+
Taints: "taints",
|
|
39
|
+
LocalStorage: "local_storage",
|
|
40
|
+
SafeToEvict: "safe_to_evict",
|
|
41
|
+
KubeSystem: "kube_system",
|
|
42
|
+
NoController: "no_controller",
|
|
43
|
+
StaticPod: "static_pod"
|
|
44
|
+
};
|
|
32
45
|
let Reasons;
|
|
33
46
|
((Reasons2) => {
|
|
34
47
|
Reasons2.Item = {
|
|
@@ -6,6 +6,19 @@ var FleetConsolidationChange;
|
|
|
6
6
|
DoNotDisrupt: "do_not_disrupt",
|
|
7
7
|
Other: "other"
|
|
8
8
|
};
|
|
9
|
+
FleetConsolidationChange2.FixReason = {
|
|
10
|
+
DoNotDisrupt: "do_not_disrupt",
|
|
11
|
+
Pdb: "pdb",
|
|
12
|
+
NodeAffinity: "node_affinity",
|
|
13
|
+
AntiAffinity: "anti_affinity",
|
|
14
|
+
TopologySpread: "topology_spread",
|
|
15
|
+
Taints: "taints",
|
|
16
|
+
LocalStorage: "local_storage",
|
|
17
|
+
SafeToEvict: "safe_to_evict",
|
|
18
|
+
KubeSystem: "kube_system",
|
|
19
|
+
NoController: "no_controller",
|
|
20
|
+
StaticPod: "static_pod"
|
|
21
|
+
};
|
|
9
22
|
let Reasons;
|
|
10
23
|
((Reasons2) => {
|
|
11
24
|
Reasons2.Item = {
|
|
@@ -2,6 +2,8 @@ import type * as LevelFour from "../index.mjs";
|
|
|
2
2
|
export interface FleetConsolidationLever {
|
|
3
3
|
/** The clusters it is on in */
|
|
4
4
|
clusters_on: number;
|
|
5
|
+
/** The clusters it cannot be told for (on null), so a fleet of one reads as its cluster does (dashboard#1699) */
|
|
6
|
+
clusters_unknown?: number | undefined;
|
|
5
7
|
clusters: number;
|
|
6
8
|
/** What it yields a month, added up */
|
|
7
9
|
monthly?: (number | null) | undefined;
|
|
@@ -11,4 +13,6 @@ export interface FleetConsolidationLever {
|
|
|
11
13
|
monthly_net?: (number | null) | undefined;
|
|
12
14
|
/** The clusters' changes that free their held nodes over the window, added up */
|
|
13
15
|
changes?: number | undefined;
|
|
16
|
+
/** The oldest check the clusters' counts were read from, as the held nodes' fleet as_of (dashboard#1689); null when no count is */
|
|
17
|
+
count_at?: (string | null) | undefined;
|
|
14
18
|
}
|
|
@@ -2,6 +2,8 @@ import type * as LevelFour from "../index.js";
|
|
|
2
2
|
export interface FleetConsolidationLever {
|
|
3
3
|
/** The clusters it is on in */
|
|
4
4
|
clusters_on: number;
|
|
5
|
+
/** The clusters it cannot be told for (on null), so a fleet of one reads as its cluster does (dashboard#1699) */
|
|
6
|
+
clusters_unknown?: number | undefined;
|
|
5
7
|
clusters: number;
|
|
6
8
|
/** What it yields a month, added up */
|
|
7
9
|
monthly?: (number | null) | undefined;
|
|
@@ -11,4 +13,6 @@ export interface FleetConsolidationLever {
|
|
|
11
13
|
monthly_net?: (number | null) | undefined;
|
|
12
14
|
/** The clusters' changes that free their held nodes over the window, added up */
|
|
13
15
|
changes?: number | undefined;
|
|
16
|
+
/** The oldest check the clusters' counts were read from, as the held nodes' fleet as_of (dashboard#1689); null when no count is */
|
|
17
|
+
count_at?: (string | null) | undefined;
|
|
14
18
|
}
|
|
@@ -2,6 +2,8 @@ import type * as LevelFour from "../index.mjs";
|
|
|
2
2
|
export interface FleetLever {
|
|
3
3
|
/** The clusters it is on in */
|
|
4
4
|
clusters_on: number;
|
|
5
|
+
/** The clusters it cannot be told for (on null), so a fleet of one reads as its cluster does (dashboard#1699) */
|
|
6
|
+
clusters_unknown?: number | undefined;
|
|
5
7
|
clusters: number;
|
|
6
8
|
/** What it yields a month, added up */
|
|
7
9
|
monthly?: (number | null) | undefined;
|
|
@@ -2,6 +2,8 @@ import type * as LevelFour from "../index.js";
|
|
|
2
2
|
export interface FleetLever {
|
|
3
3
|
/** The clusters it is on in */
|
|
4
4
|
clusters_on: number;
|
|
5
|
+
/** The clusters it cannot be told for (on null), so a fleet of one reads as its cluster does (dashboard#1699) */
|
|
6
|
+
clusters_unknown?: number | undefined;
|
|
5
7
|
clusters: number;
|
|
6
8
|
/** What it yields a month, added up */
|
|
7
9
|
monthly?: (number | null) | undefined;
|
|
@@ -8,8 +8,10 @@ export interface FleetNamespace {
|
|
|
8
8
|
automation_step?: (FleetNamespace.AutomationStep | null) | undefined;
|
|
9
9
|
/** Why a blocked step cannot act: no automation component, a component that stopped reporting, the cluster's rightsizing off, another tool sizing the namespace, the levelfour.ai/automation=off label, the Helm install's namespaces leaving it out, or the approver gone; null unless blocked */
|
|
10
10
|
automation_blocked_by?: (FleetNamespace.AutomationBlockedBy | null) | undefined;
|
|
11
|
-
/** What the namespace'
|
|
11
|
+
/** What the namespace can save now a month: the sum of GET /savings' own items in it, a stopped workload at what its item is (the NodePool or node group it alone held included, its pods on a node that would go left out), its published recommendations and its orphaned claims. The nodes two or more stopped workloads hold and a NodePool's or node group's saving are their cluster's alone, so the namespaces add up to their cluster's available_savings_monthly less the Savings tab's nodes section */
|
|
12
12
|
available_savings_monthly?: (number | null) | undefined;
|
|
13
|
+
/** The same, net of the enterprise discount: GET /savings' monthly_net of the namespace's items */
|
|
14
|
+
available_savings_monthly_net?: (number | null) | undefined;
|
|
13
15
|
name: string;
|
|
14
16
|
/** idle is the nodes' unallocated capacity; node is the data transfer no workload sent */
|
|
15
17
|
kind: FleetNamespace.Kind;
|
|
@@ -8,8 +8,10 @@ export interface FleetNamespace {
|
|
|
8
8
|
automation_step?: (FleetNamespace.AutomationStep | null) | undefined;
|
|
9
9
|
/** Why a blocked step cannot act: no automation component, a component that stopped reporting, the cluster's rightsizing off, another tool sizing the namespace, the levelfour.ai/automation=off label, the Helm install's namespaces leaving it out, or the approver gone; null unless blocked */
|
|
10
10
|
automation_blocked_by?: (FleetNamespace.AutomationBlockedBy | null) | undefined;
|
|
11
|
-
/** What the namespace'
|
|
11
|
+
/** What the namespace can save now a month: the sum of GET /savings' own items in it, a stopped workload at what its item is (the NodePool or node group it alone held included, its pods on a node that would go left out), its published recommendations and its orphaned claims. The nodes two or more stopped workloads hold and a NodePool's or node group's saving are their cluster's alone, so the namespaces add up to their cluster's available_savings_monthly less the Savings tab's nodes section */
|
|
12
12
|
available_savings_monthly?: (number | null) | undefined;
|
|
13
|
+
/** The same, net of the enterprise discount: GET /savings' monthly_net of the namespace's items */
|
|
14
|
+
available_savings_monthly_net?: (number | null) | undefined;
|
|
13
15
|
name: string;
|
|
14
16
|
/** idle is the nodes' unallocated capacity; node is the data transfer no workload sent */
|
|
15
17
|
kind: FleetNamespace.Kind;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as LevelFour from "../index.mjs";
|
|
2
|
+
export interface FleetRightsizingLever {
|
|
3
|
+
/** The clusters it is on in */
|
|
4
|
+
clusters_on: number;
|
|
5
|
+
/** The clusters it cannot be told for (on null), so a fleet of one reads as its cluster does (dashboard#1699) */
|
|
6
|
+
clusters_unknown?: number | undefined;
|
|
7
|
+
clusters: number;
|
|
8
|
+
/** What it yields a month, added up */
|
|
9
|
+
monthly?: (number | null) | undefined;
|
|
10
|
+
/** Its counts added up; null when no cluster has them */
|
|
11
|
+
count?: (LevelFour.LeverCount | null) | undefined;
|
|
12
|
+
/** The namespaces set to Automated, added up over the clusters */
|
|
13
|
+
set?: (number | null) | undefined;
|
|
14
|
+
/** Each cluster's namespaces set to Automated that do not act, and why */
|
|
15
|
+
blocked?: LevelFour.BlockedNamespace[] | undefined;
|
|
16
|
+
/** The clusters whose automation component does not report */
|
|
17
|
+
not_reporting?: number | undefined;
|
|
18
|
+
/** The earliest last report among the clusters whose component does not report; null with none */
|
|
19
|
+
last_seen_at?: (string | null) | undefined;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as LevelFour from "../index.js";
|
|
2
|
+
export interface FleetRightsizingLever {
|
|
3
|
+
/** The clusters it is on in */
|
|
4
|
+
clusters_on: number;
|
|
5
|
+
/** The clusters it cannot be told for (on null), so a fleet of one reads as its cluster does (dashboard#1699) */
|
|
6
|
+
clusters_unknown?: number | undefined;
|
|
7
|
+
clusters: number;
|
|
8
|
+
/** What it yields a month, added up */
|
|
9
|
+
monthly?: (number | null) | undefined;
|
|
10
|
+
/** Its counts added up; null when no cluster has them */
|
|
11
|
+
count?: (LevelFour.LeverCount | null) | undefined;
|
|
12
|
+
/** The namespaces set to Automated, added up over the clusters */
|
|
13
|
+
set?: (number | null) | undefined;
|
|
14
|
+
/** Each cluster's namespaces set to Automated that do not act, and why */
|
|
15
|
+
blocked?: LevelFour.BlockedNamespace[] | undefined;
|
|
16
|
+
/** The clusters whose automation component does not report */
|
|
17
|
+
not_reporting?: number | undefined;
|
|
18
|
+
/** The earliest last report among the clusters whose component does not report; null with none */
|
|
19
|
+
last_seen_at?: (string | null) | undefined;
|
|
20
|
+
}
|
|
@@ -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 FleetRightsizingLever_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(FleetRightsizingLever_exports);
|
|
17
|
+
//# sourceMappingURL=FleetRightsizingLever.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=FleetRightsizingLever.mjs.map
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import type * as LevelFour from "../index.mjs";
|
|
2
2
|
export interface FleetSummary {
|
|
3
|
-
/** What can be saved now a month, GET /savings' totals.monthly: the available recommendations (as the savings page's Available tab counts them),
|
|
3
|
+
/** What can be saved now a month, GET /savings' totals.monthly for the same clusters, read from the same items (levelfour-api#2217): the available recommendations (as the savings page's Available tab counts them), the workloads that want replicas and have had none ready for a day, the nodes only they hold and the orphaned claims the bill prices now. The nodes other pods hold are not in it (levelfour-api#2203), added up over the connected clusters; null when none has any */
|
|
4
4
|
available_savings_monthly?: (number | null) | undefined;
|
|
5
|
+
/** The same, net of the enterprise discount: GET /savings' totals.monthly_net, which its cost_monthly_net divides, added up over the connected clusters; null when none has any */
|
|
6
|
+
available_savings_monthly_net?: (number | null) | undefined;
|
|
5
7
|
levers?: (LevelFour.FleetLevers | null) | undefined;
|
|
6
8
|
/** Every connected cluster's other savings, added up */
|
|
7
9
|
other_savings?: (LevelFour.OtherSavings | null) | undefined;
|
|
8
10
|
/** What the verified changes saved (GET /v1/k8s/realized); null when nothing is verified */
|
|
9
11
|
realized?: (LevelFour.KubernetesRealized | null) | undefined;
|
|
12
|
+
/** The namespaces set to Automated, whether or not they act (dashboard#1699) */
|
|
13
|
+
automation_namespaces_set?: (number | null) | undefined;
|
|
10
14
|
/** 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
15
|
automation_namespaces_acting?: (number | null) | undefined;
|
|
12
16
|
/** The namespaces the Automation tab lists: the current ones, system namespaces left out. Null when no cluster has the automation component */
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import type * as LevelFour from "../index.js";
|
|
2
2
|
export interface FleetSummary {
|
|
3
|
-
/** What can be saved now a month, GET /savings' totals.monthly: the available recommendations (as the savings page's Available tab counts them),
|
|
3
|
+
/** What can be saved now a month, GET /savings' totals.monthly for the same clusters, read from the same items (levelfour-api#2217): the available recommendations (as the savings page's Available tab counts them), the workloads that want replicas and have had none ready for a day, the nodes only they hold and the orphaned claims the bill prices now. The nodes other pods hold are not in it (levelfour-api#2203), added up over the connected clusters; null when none has any */
|
|
4
4
|
available_savings_monthly?: (number | null) | undefined;
|
|
5
|
+
/** The same, net of the enterprise discount: GET /savings' totals.monthly_net, which its cost_monthly_net divides, added up over the connected clusters; null when none has any */
|
|
6
|
+
available_savings_monthly_net?: (number | null) | undefined;
|
|
5
7
|
levers?: (LevelFour.FleetLevers | null) | undefined;
|
|
6
8
|
/** Every connected cluster's other savings, added up */
|
|
7
9
|
other_savings?: (LevelFour.OtherSavings | null) | undefined;
|
|
8
10
|
/** What the verified changes saved (GET /v1/k8s/realized); null when nothing is verified */
|
|
9
11
|
realized?: (LevelFour.KubernetesRealized | null) | undefined;
|
|
12
|
+
/** The namespaces set to Automated, whether or not they act (dashboard#1699) */
|
|
13
|
+
automation_namespaces_set?: (number | null) | undefined;
|
|
10
14
|
/** 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
15
|
automation_namespaces_acting?: (number | null) | undefined;
|
|
12
16
|
/** The namespaces the Automation tab lists: the current ones, system namespaces left out. Null when no cluster has the automation component */
|
|
@@ -33,7 +33,7 @@ export interface FleetVolume {
|
|
|
33
33
|
/** 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) */
|
|
34
34
|
cost_unknown_reason?: (FleetVolume.CostUnknownReason | null) | undefined;
|
|
35
35
|
/** Why the worker could not price the claim it found, from its open candidate: not_on_bill when the bill names no line for the volume while it prices the cluster's other claims; null otherwise (api#2074) */
|
|
36
|
-
unpriced_reason?: (
|
|
36
|
+
unpriced_reason?: (string | null) | undefined;
|
|
37
37
|
/** While period_cost is null, the last day any bill line named the volume; null if none ever */
|
|
38
38
|
last_billed_on?: (string | null) | undefined;
|
|
39
39
|
/** 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 */
|
|
@@ -33,7 +33,7 @@ export interface FleetVolume {
|
|
|
33
33
|
/** 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) */
|
|
34
34
|
cost_unknown_reason?: (FleetVolume.CostUnknownReason | null) | undefined;
|
|
35
35
|
/** Why the worker could not price the claim it found, from its open candidate: not_on_bill when the bill names no line for the volume while it prices the cluster's other claims; null otherwise (api#2074) */
|
|
36
|
-
unpriced_reason?: (
|
|
36
|
+
unpriced_reason?: (string | null) | undefined;
|
|
37
37
|
/** While period_cost is null, the last day any bill line named the volume; null if none ever */
|
|
38
38
|
last_billed_on?: (string | null) | undefined;
|
|
39
39
|
/** 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 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface ForecastData {
|
|
2
|
-
/** False when no cost data exists for the provider: every figure is then a placeholder zero, not a forecast */
|
|
2
|
+
/** False when no cost data exists for the provider, or none is recent enough to project from: every figure is then a placeholder zero, not a forecast */
|
|
3
3
|
has_cost_data?: boolean | undefined;
|
|
4
4
|
/** Forecasted value for the horizon */
|
|
5
5
|
forecast_value: number;
|
|
@@ -19,9 +19,9 @@ export interface ForecastData {
|
|
|
19
19
|
booked_to_date?: (number | null) | undefined;
|
|
20
20
|
/** Median daily spend the projection uses */
|
|
21
21
|
daily_rate?: (number | null) | undefined;
|
|
22
|
-
/** Days the projection covers
|
|
22
|
+
/** Days the projection covers: from the last actual to the month's end, or every day of the month while it has no row yet. For `all`, the longest of the providers. */
|
|
23
23
|
days_remaining?: (number | null) | undefined;
|
|
24
|
-
/** Last day with billing data, YYYY-MM-DD. Days after it are projected, not booked. */
|
|
24
|
+
/** Last day with billing data, YYYY-MM-DD. Days after it are projected, not booked. Before the month has a row it is a day of last month, and for `all` the oldest of the providers that project. */
|
|
25
25
|
actuals_through?: (string | null) | undefined;
|
|
26
26
|
/** How far behind today the billing data stops. Above zero means the projection covers days already past. */
|
|
27
27
|
days_since_last_actual?: (number | null) | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface ForecastData {
|
|
2
|
-
/** False when no cost data exists for the provider: every figure is then a placeholder zero, not a forecast */
|
|
2
|
+
/** False when no cost data exists for the provider, or none is recent enough to project from: every figure is then a placeholder zero, not a forecast */
|
|
3
3
|
has_cost_data?: boolean | undefined;
|
|
4
4
|
/** Forecasted value for the horizon */
|
|
5
5
|
forecast_value: number;
|
|
@@ -19,9 +19,9 @@ export interface ForecastData {
|
|
|
19
19
|
booked_to_date?: (number | null) | undefined;
|
|
20
20
|
/** Median daily spend the projection uses */
|
|
21
21
|
daily_rate?: (number | null) | undefined;
|
|
22
|
-
/** Days the projection covers
|
|
22
|
+
/** Days the projection covers: from the last actual to the month's end, or every day of the month while it has no row yet. For `all`, the longest of the providers. */
|
|
23
23
|
days_remaining?: (number | null) | undefined;
|
|
24
|
-
/** Last day with billing data, YYYY-MM-DD. Days after it are projected, not booked. */
|
|
24
|
+
/** Last day with billing data, YYYY-MM-DD. Days after it are projected, not booked. Before the month has a row it is a day of last month, and for `all` the oldest of the providers that project. */
|
|
25
25
|
actuals_through?: (string | null) | undefined;
|
|
26
26
|
/** How far behind today the billing data stops. Above zero means the projection covers days already past. */
|
|
27
27
|
days_since_last_actual?: (number | null) | undefined;
|
|
@@ -11,6 +11,8 @@ export interface HeldChange {
|
|
|
11
11
|
name: string;
|
|
12
12
|
/** The one fix the change needs, the first that applies: fix_or_scale_to_zero when its Deployment or StatefulSet wants replicas and has none ready; pdb_allows_no_eviction when a PodDisruptionBudget lets none of its pods leave; do_not_disrupt for Karpenter's annotation; other for the rest (affinity, taints, local storage, no controller) */
|
|
13
13
|
fix: HeldChange.Fix;
|
|
14
|
+
/** With the fix other, the reason its sentence names: the first of its reasons in BlockerReason's order (do_not_disrupt, pdb, node_affinity, anti_affinity, topology_spread, taints, local_storage, safe_to_evict, kube_system, no_controller); null with any other fix, which names its own cause (dashboard#1689) */
|
|
15
|
+
fix_reason?: (HeldChange.FixReason | null) | undefined;
|
|
14
16
|
/** The kinds of blocker its pods raise at the latest batch */
|
|
15
17
|
reasons: HeldChange.Reasons.Item[];
|
|
16
18
|
/** Whether it holds a node now that would go once its blockers clear and no open recommendation covers */
|
|
@@ -37,6 +39,20 @@ export declare namespace HeldChange {
|
|
|
37
39
|
readonly Other: "other";
|
|
38
40
|
};
|
|
39
41
|
type Fix = (typeof Fix)[keyof typeof Fix];
|
|
42
|
+
const FixReason: {
|
|
43
|
+
readonly DoNotDisrupt: "do_not_disrupt";
|
|
44
|
+
readonly Pdb: "pdb";
|
|
45
|
+
readonly NodeAffinity: "node_affinity";
|
|
46
|
+
readonly AntiAffinity: "anti_affinity";
|
|
47
|
+
readonly TopologySpread: "topology_spread";
|
|
48
|
+
readonly Taints: "taints";
|
|
49
|
+
readonly LocalStorage: "local_storage";
|
|
50
|
+
readonly SafeToEvict: "safe_to_evict";
|
|
51
|
+
readonly KubeSystem: "kube_system";
|
|
52
|
+
readonly NoController: "no_controller";
|
|
53
|
+
readonly StaticPod: "static_pod";
|
|
54
|
+
};
|
|
55
|
+
type FixReason = (typeof FixReason)[keyof typeof FixReason];
|
|
40
56
|
type Reasons = Reasons.Item[];
|
|
41
57
|
namespace Reasons {
|
|
42
58
|
const Item: {
|
|
@@ -11,6 +11,8 @@ export interface HeldChange {
|
|
|
11
11
|
name: string;
|
|
12
12
|
/** The one fix the change needs, the first that applies: fix_or_scale_to_zero when its Deployment or StatefulSet wants replicas and has none ready; pdb_allows_no_eviction when a PodDisruptionBudget lets none of its pods leave; do_not_disrupt for Karpenter's annotation; other for the rest (affinity, taints, local storage, no controller) */
|
|
13
13
|
fix: HeldChange.Fix;
|
|
14
|
+
/** With the fix other, the reason its sentence names: the first of its reasons in BlockerReason's order (do_not_disrupt, pdb, node_affinity, anti_affinity, topology_spread, taints, local_storage, safe_to_evict, kube_system, no_controller); null with any other fix, which names its own cause (dashboard#1689) */
|
|
15
|
+
fix_reason?: (HeldChange.FixReason | null) | undefined;
|
|
14
16
|
/** The kinds of blocker its pods raise at the latest batch */
|
|
15
17
|
reasons: HeldChange.Reasons.Item[];
|
|
16
18
|
/** Whether it holds a node now that would go once its blockers clear and no open recommendation covers */
|
|
@@ -37,6 +39,20 @@ export declare namespace HeldChange {
|
|
|
37
39
|
readonly Other: "other";
|
|
38
40
|
};
|
|
39
41
|
type Fix = (typeof Fix)[keyof typeof Fix];
|
|
42
|
+
const FixReason: {
|
|
43
|
+
readonly DoNotDisrupt: "do_not_disrupt";
|
|
44
|
+
readonly Pdb: "pdb";
|
|
45
|
+
readonly NodeAffinity: "node_affinity";
|
|
46
|
+
readonly AntiAffinity: "anti_affinity";
|
|
47
|
+
readonly TopologySpread: "topology_spread";
|
|
48
|
+
readonly Taints: "taints";
|
|
49
|
+
readonly LocalStorage: "local_storage";
|
|
50
|
+
readonly SafeToEvict: "safe_to_evict";
|
|
51
|
+
readonly KubeSystem: "kube_system";
|
|
52
|
+
readonly NoController: "no_controller";
|
|
53
|
+
readonly StaticPod: "static_pod";
|
|
54
|
+
};
|
|
55
|
+
type FixReason = (typeof FixReason)[keyof typeof FixReason];
|
|
40
56
|
type Reasons = Reasons.Item[];
|
|
41
57
|
namespace Reasons {
|
|
42
58
|
const Item: {
|
|
@@ -29,6 +29,19 @@ var HeldChange;
|
|
|
29
29
|
DoNotDisrupt: "do_not_disrupt",
|
|
30
30
|
Other: "other"
|
|
31
31
|
};
|
|
32
|
+
HeldChange2.FixReason = {
|
|
33
|
+
DoNotDisrupt: "do_not_disrupt",
|
|
34
|
+
Pdb: "pdb",
|
|
35
|
+
NodeAffinity: "node_affinity",
|
|
36
|
+
AntiAffinity: "anti_affinity",
|
|
37
|
+
TopologySpread: "topology_spread",
|
|
38
|
+
Taints: "taints",
|
|
39
|
+
LocalStorage: "local_storage",
|
|
40
|
+
SafeToEvict: "safe_to_evict",
|
|
41
|
+
KubeSystem: "kube_system",
|
|
42
|
+
NoController: "no_controller",
|
|
43
|
+
StaticPod: "static_pod"
|
|
44
|
+
};
|
|
32
45
|
let Reasons;
|
|
33
46
|
((Reasons2) => {
|
|
34
47
|
Reasons2.Item = {
|
|
@@ -6,6 +6,19 @@ var HeldChange;
|
|
|
6
6
|
DoNotDisrupt: "do_not_disrupt",
|
|
7
7
|
Other: "other"
|
|
8
8
|
};
|
|
9
|
+
HeldChange2.FixReason = {
|
|
10
|
+
DoNotDisrupt: "do_not_disrupt",
|
|
11
|
+
Pdb: "pdb",
|
|
12
|
+
NodeAffinity: "node_affinity",
|
|
13
|
+
AntiAffinity: "anti_affinity",
|
|
14
|
+
TopologySpread: "topology_spread",
|
|
15
|
+
Taints: "taints",
|
|
16
|
+
LocalStorage: "local_storage",
|
|
17
|
+
SafeToEvict: "safe_to_evict",
|
|
18
|
+
KubeSystem: "kube_system",
|
|
19
|
+
NoController: "no_controller",
|
|
20
|
+
StaticPod: "static_pod"
|
|
21
|
+
};
|
|
9
22
|
let Reasons;
|
|
10
23
|
((Reasons2) => {
|
|
11
24
|
Reasons2.Item = {
|