levelfour 1.9.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/types/AutomationAction.d.mts +1 -0
- package/dist/api/types/AutomationAction.d.ts +1 -0
- package/dist/api/types/AutomationAction.js +2 -1
- package/dist/api/types/AutomationAction.mjs +2 -1
- package/dist/api/types/AutomationEvent.d.mts +1 -1
- package/dist/api/types/AutomationEvent.d.ts +1 -1
- package/dist/api/types/AutoscalerInsight.d.mts +4 -1
- package/dist/api/types/AutoscalerInsight.d.ts +4 -1
- package/dist/api/types/BlockerTotals.d.mts +19 -1
- package/dist/api/types/BlockerTotals.d.ts +19 -1
- package/dist/api/types/ClaimBillRate.d.mts +15 -0
- package/dist/api/types/ClaimBillRate.d.ts +15 -0
- package/dist/api/types/ClaimBillRate.js +17 -0
- package/dist/api/types/ClaimBillRate.mjs +1 -0
- package/dist/api/types/ClusterFilterOptions.d.mts +1 -0
- package/dist/api/types/ClusterFilterOptions.d.ts +1 -0
- package/dist/api/types/ClusterFilterOptions.js +1 -0
- package/dist/api/types/ClusterFilterOptions.mjs +1 -0
- package/dist/api/types/ClusterHealth.d.mts +1 -1
- package/dist/api/types/ClusterHealth.d.ts +1 -1
- package/dist/api/types/ClusterItem.d.mts +18 -5
- package/dist/api/types/ClusterItem.d.ts +18 -5
- package/dist/api/types/ClusterItem.js +6 -0
- package/dist/api/types/ClusterItem.mjs +6 -0
- package/dist/api/types/ClusterSummary.d.mts +19 -1
- package/dist/api/types/ClusterSummary.d.ts +19 -1
- package/dist/api/types/ClusterSummary.js +5 -0
- package/dist/api/types/ClusterSummary.mjs +5 -0
- package/dist/api/types/ClusterUsageDay.d.mts +1 -1
- package/dist/api/types/ClusterUsageDay.d.ts +1 -1
- package/dist/api/types/ComputeMonth.d.mts +3 -2
- package/dist/api/types/ComputeMonth.d.ts +3 -2
- package/dist/api/types/ConsolidationBlocker.d.mts +19 -0
- package/dist/api/types/ConsolidationBlocker.d.ts +19 -0
- package/dist/api/types/ConsolidationBlocker.js +11 -0
- package/dist/api/types/ConsolidationBlocker.mjs +11 -0
- package/dist/api/types/ContainerDetail.d.mts +2 -0
- package/dist/api/types/ContainerDetail.d.ts +2 -0
- package/dist/api/types/CostSeries.d.mts +3 -2
- package/dist/api/types/CostSeries.d.ts +3 -2
- package/dist/api/types/CostSeries.js +2 -1
- package/dist/api/types/CostSeries.mjs +2 -1
- package/dist/api/types/DestinationTraffic.d.mts +17 -0
- package/dist/api/types/DestinationTraffic.d.ts +17 -0
- package/dist/api/types/DestinationTraffic.js +38 -0
- package/dist/api/types/DestinationTraffic.mjs +14 -0
- package/dist/api/types/Efficiency.d.mts +6 -0
- package/dist/api/types/Efficiency.d.ts +6 -0
- package/dist/api/types/EfficiencyPoint.d.mts +1 -0
- package/dist/api/types/EfficiencyPoint.d.ts +1 -0
- package/dist/api/types/FleetNamespace.d.mts +9 -0
- package/dist/api/types/FleetNamespace.d.ts +9 -0
- package/dist/api/types/FleetNamespace.js +4 -0
- package/dist/api/types/FleetNamespace.mjs +4 -0
- package/dist/api/types/FleetNodePool.d.mts +16 -6
- package/dist/api/types/FleetNodePool.d.ts +16 -6
- package/dist/api/types/FleetStorage.d.mts +3 -0
- package/dist/api/types/FleetStorage.d.ts +3 -0
- package/dist/api/types/FleetSummary.d.mts +15 -1
- package/dist/api/types/FleetSummary.d.ts +15 -1
- package/dist/api/types/FleetSummary.js +5 -0
- package/dist/api/types/FleetSummary.mjs +5 -0
- package/dist/api/types/FleetVolume.d.mts +23 -1
- package/dist/api/types/FleetVolume.d.ts +23 -1
- package/dist/api/types/FleetVolume.js +22 -0
- package/dist/api/types/FleetVolume.mjs +14 -0
- package/dist/api/types/FleetWorkload.d.mts +9 -0
- package/dist/api/types/FleetWorkload.d.ts +9 -0
- package/dist/api/types/FleetWorkload.js +4 -0
- package/dist/api/types/FleetWorkload.mjs +4 -0
- package/dist/api/types/HeldResources.d.mts +23 -0
- package/dist/api/types/HeldResources.d.ts +23 -0
- package/dist/api/types/HeldResources.js +39 -0
- package/dist/api/types/HeldResources.mjs +15 -0
- package/dist/api/types/Indicator.d.mts +6 -4
- package/dist/api/types/Indicator.d.ts +6 -4
- package/dist/api/types/Indicator.js +4 -4
- package/dist/api/types/Indicator.mjs +4 -4
- package/dist/api/types/IndicatorCount.d.mts +4 -4
- package/dist/api/types/IndicatorCount.d.ts +4 -4
- package/dist/api/types/IndicatorCount.js +4 -4
- package/dist/api/types/IndicatorCount.mjs +4 -4
- package/dist/api/types/KubernetesDataAvailability.d.mts +4 -0
- package/dist/api/types/KubernetesDataAvailability.d.ts +4 -0
- package/dist/api/types/NamespaceAutomation.d.mts +21 -0
- package/dist/api/types/NamespaceAutomation.d.ts +21 -0
- package/dist/api/types/NamespaceAutomation.js +4 -0
- package/dist/api/types/NamespaceAutomation.mjs +4 -0
- package/dist/api/types/NamespaceItem.d.mts +9 -0
- package/dist/api/types/NamespaceItem.d.ts +9 -0
- package/dist/api/types/NamespaceItem.js +4 -0
- package/dist/api/types/NamespaceItem.mjs +4 -0
- package/dist/api/types/NamespaceReliability.d.mts +4 -1
- package/dist/api/types/NamespaceReliability.d.ts +4 -1
- package/dist/api/types/NetworkLens.d.mts +2 -0
- package/dist/api/types/NetworkLens.d.ts +2 -0
- package/dist/api/types/NetworkTotals.d.mts +5 -1
- package/dist/api/types/NetworkTotals.d.ts +5 -1
- package/dist/api/types/NoReadyShare.d.mts +12 -0
- package/dist/api/types/NoReadyShare.d.ts +12 -0
- package/dist/api/types/NoReadyShare.js +17 -0
- package/dist/api/types/NoReadyShare.mjs +1 -0
- package/dist/api/types/NodeDetail.d.mts +2 -0
- package/dist/api/types/NodeDetail.d.ts +2 -0
- package/dist/api/types/NodeFacets.d.mts +3 -1
- package/dist/api/types/NodeFacets.d.ts +3 -1
- package/dist/api/types/NodeItem.d.mts +8 -4
- package/dist/api/types/NodeItem.d.ts +8 -4
- package/dist/api/types/NodeMonthlyPrice.d.mts +24 -0
- package/dist/api/types/NodeMonthlyPrice.d.ts +24 -0
- package/dist/api/types/NodeMonthlyPrice.js +35 -0
- package/dist/api/types/NodeMonthlyPrice.mjs +11 -0
- package/dist/api/types/NodePoolDay.d.mts +1 -1
- package/dist/api/types/NodePoolDay.d.ts +1 -1
- package/dist/api/types/NodePoolNode.d.mts +1 -1
- package/dist/api/types/NodePoolNode.d.ts +1 -1
- package/dist/api/types/NodePoolUsage.d.mts +16 -6
- package/dist/api/types/NodePoolUsage.d.ts +16 -6
- package/dist/api/types/OtherRightsizer.d.mts +14 -0
- package/dist/api/types/OtherRightsizer.d.ts +14 -0
- package/dist/api/types/OtherRightsizer.js +35 -0
- package/dist/api/types/OtherRightsizer.mjs +11 -0
- package/dist/api/types/PendingShare.d.mts +6 -0
- package/dist/api/types/PendingShare.d.ts +6 -0
- package/dist/api/types/PendingShare.js +17 -0
- package/dist/api/types/PendingShare.mjs +1 -0
- package/dist/api/types/PodCounts.d.mts +2 -2
- package/dist/api/types/PodCounts.d.ts +2 -2
- package/dist/api/types/PodsHour.d.mts +3 -1
- package/dist/api/types/PodsHour.d.ts +3 -1
- package/dist/api/types/PurchaseTypeShare.d.mts +4 -4
- package/dist/api/types/PurchaseTypeShare.d.ts +4 -4
- package/dist/api/types/ReliabilityCounts.d.mts +3 -0
- package/dist/api/types/ReliabilityCounts.d.ts +3 -0
- package/dist/api/types/ReliabilityDay.d.mts +8 -5
- package/dist/api/types/ReliabilityDay.d.ts +8 -5
- package/dist/api/types/ReliabilityEventDay.d.mts +4 -3
- package/dist/api/types/ReliabilityEventDay.d.ts +4 -3
- package/dist/api/types/ReliabilityLens.d.mts +2 -1
- package/dist/api/types/ReliabilityLens.d.ts +2 -1
- package/dist/api/types/ReliabilityTotals.d.mts +10 -1
- package/dist/api/types/ReliabilityTotals.d.ts +10 -1
- package/dist/api/types/ReplicaScaler.d.mts +4 -1
- package/dist/api/types/ReplicaScaler.d.ts +4 -1
- package/dist/api/types/RequestsAverage.d.mts +3 -1
- package/dist/api/types/RequestsAverage.d.ts +3 -1
- package/dist/api/types/ResourceCapacity.d.mts +1 -1
- package/dist/api/types/ResourceCapacity.d.ts +1 -1
- package/dist/api/types/ResourceEfficiency.d.mts +7 -1
- package/dist/api/types/ResourceEfficiency.d.ts +7 -1
- package/dist/api/types/RightsizedContainer.d.mts +19 -5
- package/dist/api/types/RightsizedContainer.d.ts +19 -5
- package/dist/api/types/RightsizedContainer.js +10 -1
- package/dist/api/types/RightsizedContainer.mjs +10 -1
- package/dist/api/types/SetTakeoverRequest.d.mts +13 -0
- package/dist/api/types/SetTakeoverRequest.d.ts +13 -0
- package/dist/api/types/SetTakeoverRequest.js +35 -0
- package/dist/api/types/SetTakeoverRequest.mjs +11 -0
- package/dist/api/types/SizingEvidence.d.mts +30 -0
- package/dist/api/types/SizingEvidence.d.ts +30 -0
- package/dist/api/types/SizingEvidence.js +40 -0
- package/dist/api/types/SizingEvidence.mjs +16 -0
- package/dist/api/types/SnapshotRange.d.mts +6 -0
- package/dist/api/types/SnapshotRange.d.ts +6 -0
- package/dist/api/types/SnapshotRange.js +17 -0
- package/dist/api/types/SnapshotRange.mjs +1 -0
- package/dist/api/types/SpendDay.d.mts +17 -2
- package/dist/api/types/SpendDay.d.ts +17 -2
- package/dist/api/types/SpendDay.js +18 -0
- package/dist/api/types/SpendDay.mjs +10 -0
- package/dist/api/types/SpendKpis.d.mts +13 -2
- package/dist/api/types/SpendKpis.d.ts +13 -2
- package/dist/api/types/SpendKpis.js +18 -0
- package/dist/api/types/SpendKpis.mjs +10 -0
- package/dist/api/types/SpendUnitCost.d.mts +1 -0
- package/dist/api/types/SpendUnitCost.d.ts +1 -0
- package/dist/api/types/SpotBalance.d.mts +4 -0
- package/dist/api/types/SpotBalance.d.ts +4 -0
- package/dist/api/types/StatusCount.d.mts +1 -0
- package/dist/api/types/StatusCount.d.ts +1 -0
- package/dist/api/types/StatusCount.js +1 -0
- package/dist/api/types/StatusCount.mjs +1 -0
- package/dist/api/types/StorageClassTotals.d.mts +2 -0
- package/dist/api/types/StorageClassTotals.d.ts +2 -0
- package/dist/api/types/StorageClassUsage.d.mts +4 -1
- package/dist/api/types/StorageClassUsage.d.ts +4 -1
- package/dist/api/types/TakeoverBlocker.d.mts +25 -0
- package/dist/api/types/TakeoverBlocker.d.ts +25 -0
- package/dist/api/types/TakeoverBlocker.js +42 -0
- package/dist/api/types/TakeoverBlocker.mjs +18 -0
- package/dist/api/types/UnitCosts.d.mts +1 -1
- package/dist/api/types/UnitCosts.d.ts +1 -1
- package/dist/api/types/UsageCoverage.d.mts +10 -0
- package/dist/api/types/UsageCoverage.d.ts +10 -0
- package/dist/api/types/UsageCoverage.js +17 -0
- package/dist/api/types/UsageCoverage.mjs +1 -0
- package/dist/api/types/UsageCoverageResponse.d.mts +6 -0
- package/dist/api/types/UsageCoverageResponse.d.ts +6 -0
- package/dist/api/types/UsageCoverageResponse.js +17 -0
- package/dist/api/types/UsageCoverageResponse.mjs +1 -0
- package/dist/api/types/UsageCoverageWindow.d.mts +8 -0
- package/dist/api/types/UsageCoverageWindow.d.ts +8 -0
- package/dist/api/types/UsageCoverageWindow.js +17 -0
- package/dist/api/types/UsageCoverageWindow.mjs +1 -0
- package/dist/api/types/UseMeasured.d.mts +9 -0
- package/dist/api/types/UseMeasured.d.ts +9 -0
- package/dist/api/types/UseMeasured.js +17 -0
- package/dist/api/types/UseMeasured.mjs +1 -0
- package/dist/api/types/UtilizationTarget.d.mts +34 -4
- package/dist/api/types/UtilizationTarget.d.ts +34 -4
- package/dist/api/types/UtilizationTarget.js +14 -1
- package/dist/api/types/UtilizationTarget.mjs +14 -1
- package/dist/api/types/VolumeItem.d.mts +23 -1
- package/dist/api/types/VolumeItem.d.ts +23 -1
- package/dist/api/types/VolumeItem.js +22 -0
- package/dist/api/types/VolumeItem.mjs +14 -0
- package/dist/api/types/Waste.d.mts +6 -2
- package/dist/api/types/Waste.d.ts +6 -2
- package/dist/api/types/WasteDay.d.mts +2 -0
- package/dist/api/types/WasteDay.d.ts +2 -0
- package/dist/api/types/WasteTotal.d.mts +4 -2
- package/dist/api/types/WasteTotal.d.ts +4 -2
- package/dist/api/types/WorkloadDay.d.mts +7 -0
- package/dist/api/types/WorkloadDay.d.ts +7 -0
- package/dist/api/types/WorkloadDetail.d.mts +8 -0
- package/dist/api/types/WorkloadDetail.d.ts +8 -0
- package/dist/api/types/WorkloadFacets.d.mts +4 -0
- package/dist/api/types/WorkloadFacets.d.ts +4 -0
- package/dist/api/types/WorkloadItem.d.mts +38 -0
- package/dist/api/types/WorkloadItem.d.ts +38 -0
- package/dist/api/types/WorkloadItem.js +20 -0
- package/dist/api/types/WorkloadItem.mjs +20 -0
- package/dist/api/types/WorkloadListItem.d.mts +38 -0
- package/dist/api/types/WorkloadListItem.d.ts +38 -0
- package/dist/api/types/WorkloadListItem.js +20 -0
- package/dist/api/types/WorkloadListItem.mjs +20 -0
- package/dist/api/types/index.d.mts +15 -0
- package/dist/api/types/index.d.ts +15 -0
- package/dist/api/types/index.js +30 -0
- package/dist/api/types/index.mjs +15 -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
|
@@ -25,6 +25,12 @@ export interface ConsolidationBlocker {
|
|
|
25
25
|
node_monthly_cost_net?: (number | null) | undefined;
|
|
26
26
|
/** node_bill: the node's own bill. bill_rate: the bill's rate for its instance type */
|
|
27
27
|
node_priced_by?: (ConsolidationBlocker.NodePricedBy | null) | undefined;
|
|
28
|
+
/** Whether its node would go once every pod holding it is freed: every pod that would have to move finds a node that takes it, and its NodePool lets Karpenter remove a node that is not empty, or Cluster Autoscaler's threshold lets it remove a node group's node. Worked out at ingest from the batch's snapshot. Null for a node no pod holds, and for one whose answer is not known (node_not_known_reason) */
|
|
29
|
+
node_would_free?: (boolean | null) | undefined;
|
|
30
|
+
/** Why its node would stay once its blockers clear, set only when node_would_free is false. pods_need_room: a pod that would have to move finds no node to take it, placed largest first by CPU and memory requests on a ready, schedulable node with a pod slot free whose selector, affinity, taints, anti-affinity and spread let it run there, within its own zone when its workload mounts a claim, after the pending pods and those of nodes being deleted. pool_removes_only_empty: its NodePool's consolidationPolicy is WhenEmpty. pool_never_consolidates: its NodePool's consolidateAfter is Never. autoscaler_threshold: a node group's node whose pods request half its CPU or memory or more, which Cluster Autoscaler's default scale-down threshold keeps */
|
|
31
|
+
node_kept_reason?: (ConsolidationBlocker.NodeKeptReason | null) | undefined;
|
|
32
|
+
/** 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
|
+
node_not_known_reason?: (ConsolidationBlocker.NodeNotKnownReason | null) | undefined;
|
|
28
34
|
}
|
|
29
35
|
export declare namespace ConsolidationBlocker {
|
|
30
36
|
/** karpenter when the node belongs to a NodePool */
|
|
@@ -38,4 +44,17 @@ export declare namespace ConsolidationBlocker {
|
|
|
38
44
|
readonly BillRate: "bill_rate";
|
|
39
45
|
};
|
|
40
46
|
type NodePricedBy = (typeof NodePricedBy)[keyof typeof NodePricedBy];
|
|
47
|
+
const NodeKeptReason: {
|
|
48
|
+
readonly PodsNeedRoom: "pods_need_room";
|
|
49
|
+
readonly PoolRemovesOnlyEmpty: "pool_removes_only_empty";
|
|
50
|
+
readonly PoolNeverConsolidates: "pool_never_consolidates";
|
|
51
|
+
readonly AutoscalerThreshold: "autoscaler_threshold";
|
|
52
|
+
};
|
|
53
|
+
type NodeKeptReason = (typeof NodeKeptReason)[keyof typeof NodeKeptReason];
|
|
54
|
+
const NodeNotKnownReason: {
|
|
55
|
+
readonly PoolNotReported: "pool_not_reported";
|
|
56
|
+
readonly BudgetNotReported: "budget_not_reported";
|
|
57
|
+
readonly NotWorkedOut: "not_worked_out";
|
|
58
|
+
};
|
|
59
|
+
type NodeNotKnownReason = (typeof NodeNotKnownReason)[keyof typeof NodeNotKnownReason];
|
|
41
60
|
}
|
|
@@ -25,6 +25,12 @@ export interface ConsolidationBlocker {
|
|
|
25
25
|
node_monthly_cost_net?: (number | null) | undefined;
|
|
26
26
|
/** node_bill: the node's own bill. bill_rate: the bill's rate for its instance type */
|
|
27
27
|
node_priced_by?: (ConsolidationBlocker.NodePricedBy | null) | undefined;
|
|
28
|
+
/** Whether its node would go once every pod holding it is freed: every pod that would have to move finds a node that takes it, and its NodePool lets Karpenter remove a node that is not empty, or Cluster Autoscaler's threshold lets it remove a node group's node. Worked out at ingest from the batch's snapshot. Null for a node no pod holds, and for one whose answer is not known (node_not_known_reason) */
|
|
29
|
+
node_would_free?: (boolean | null) | undefined;
|
|
30
|
+
/** Why its node would stay once its blockers clear, set only when node_would_free is false. pods_need_room: a pod that would have to move finds no node to take it, placed largest first by CPU and memory requests on a ready, schedulable node with a pod slot free whose selector, affinity, taints, anti-affinity and spread let it run there, within its own zone when its workload mounts a claim, after the pending pods and those of nodes being deleted. pool_removes_only_empty: its NodePool's consolidationPolicy is WhenEmpty. pool_never_consolidates: its NodePool's consolidateAfter is Never. autoscaler_threshold: a node group's node whose pods request half its CPU or memory or more, which Cluster Autoscaler's default scale-down threshold keeps */
|
|
31
|
+
node_kept_reason?: (ConsolidationBlocker.NodeKeptReason | null) | undefined;
|
|
32
|
+
/** 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
|
+
node_not_known_reason?: (ConsolidationBlocker.NodeNotKnownReason | null) | undefined;
|
|
28
34
|
}
|
|
29
35
|
export declare namespace ConsolidationBlocker {
|
|
30
36
|
/** karpenter when the node belongs to a NodePool */
|
|
@@ -38,4 +44,17 @@ export declare namespace ConsolidationBlocker {
|
|
|
38
44
|
readonly BillRate: "bill_rate";
|
|
39
45
|
};
|
|
40
46
|
type NodePricedBy = (typeof NodePricedBy)[keyof typeof NodePricedBy];
|
|
47
|
+
const NodeKeptReason: {
|
|
48
|
+
readonly PodsNeedRoom: "pods_need_room";
|
|
49
|
+
readonly PoolRemovesOnlyEmpty: "pool_removes_only_empty";
|
|
50
|
+
readonly PoolNeverConsolidates: "pool_never_consolidates";
|
|
51
|
+
readonly AutoscalerThreshold: "autoscaler_threshold";
|
|
52
|
+
};
|
|
53
|
+
type NodeKeptReason = (typeof NodeKeptReason)[keyof typeof NodeKeptReason];
|
|
54
|
+
const NodeNotKnownReason: {
|
|
55
|
+
readonly PoolNotReported: "pool_not_reported";
|
|
56
|
+
readonly BudgetNotReported: "budget_not_reported";
|
|
57
|
+
readonly NotWorkedOut: "not_worked_out";
|
|
58
|
+
};
|
|
59
|
+
type NodeNotKnownReason = (typeof NodeNotKnownReason)[keyof typeof NodeNotKnownReason];
|
|
41
60
|
}
|
|
@@ -31,6 +31,17 @@ var ConsolidationBlocker;
|
|
|
31
31
|
NodeBill: "node_bill",
|
|
32
32
|
BillRate: "bill_rate"
|
|
33
33
|
};
|
|
34
|
+
ConsolidationBlocker2.NodeKeptReason = {
|
|
35
|
+
PodsNeedRoom: "pods_need_room",
|
|
36
|
+
PoolRemovesOnlyEmpty: "pool_removes_only_empty",
|
|
37
|
+
PoolNeverConsolidates: "pool_never_consolidates",
|
|
38
|
+
AutoscalerThreshold: "autoscaler_threshold"
|
|
39
|
+
};
|
|
40
|
+
ConsolidationBlocker2.NodeNotKnownReason = {
|
|
41
|
+
PoolNotReported: "pool_not_reported",
|
|
42
|
+
BudgetNotReported: "budget_not_reported",
|
|
43
|
+
NotWorkedOut: "not_worked_out"
|
|
44
|
+
};
|
|
34
45
|
})(ConsolidationBlocker || (ConsolidationBlocker = {}));
|
|
35
46
|
// Annotate the CommonJS export names for ESM import in node:
|
|
36
47
|
0 && (module.exports = {
|
|
@@ -8,6 +8,17 @@ var ConsolidationBlocker;
|
|
|
8
8
|
NodeBill: "node_bill",
|
|
9
9
|
BillRate: "bill_rate"
|
|
10
10
|
};
|
|
11
|
+
ConsolidationBlocker2.NodeKeptReason = {
|
|
12
|
+
PodsNeedRoom: "pods_need_room",
|
|
13
|
+
PoolRemovesOnlyEmpty: "pool_removes_only_empty",
|
|
14
|
+
PoolNeverConsolidates: "pool_never_consolidates",
|
|
15
|
+
AutoscalerThreshold: "autoscaler_threshold"
|
|
16
|
+
};
|
|
17
|
+
ConsolidationBlocker2.NodeNotKnownReason = {
|
|
18
|
+
PoolNotReported: "pool_not_reported",
|
|
19
|
+
BudgetNotReported: "budget_not_reported",
|
|
20
|
+
NotWorkedOut: "not_worked_out"
|
|
21
|
+
};
|
|
11
22
|
})(ConsolidationBlocker || (ConsolidationBlocker = {}));
|
|
12
23
|
export {
|
|
13
24
|
ConsolidationBlocker
|
|
@@ -9,6 +9,8 @@ export interface ContainerDetail {
|
|
|
9
9
|
/** What the VPA targeting the workload currently recommends, beside the current requests */
|
|
10
10
|
vpa?: (LevelFour.ContainerVpa | null) | undefined;
|
|
11
11
|
limits: LevelFour.ResourceList;
|
|
12
|
+
/** What the pods hold, which differs from the template's requests and limits when a LimitRange or admission set them */
|
|
13
|
+
held: LevelFour.HeldResources;
|
|
12
14
|
/** Null where the agent did not report them */
|
|
13
15
|
probes: LevelFour.ContainerProbes;
|
|
14
16
|
/** Null when the agent reported no JVM heap setting */
|
|
@@ -9,6 +9,8 @@ export interface ContainerDetail {
|
|
|
9
9
|
/** What the VPA targeting the workload currently recommends, beside the current requests */
|
|
10
10
|
vpa?: (LevelFour.ContainerVpa | null) | undefined;
|
|
11
11
|
limits: LevelFour.ResourceList;
|
|
12
|
+
/** What the pods hold, which differs from the template's requests and limits when a LimitRange or admission set them */
|
|
13
|
+
held: LevelFour.HeldResources;
|
|
12
14
|
/** Null where the agent did not report them */
|
|
13
15
|
probes: LevelFour.ContainerProbes;
|
|
14
16
|
/** Null when the agent reported no JVM heap setting */
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import type * as LevelFour from "../index.mjs";
|
|
2
2
|
export interface CostSeries {
|
|
3
3
|
group_by: string;
|
|
4
|
-
/** What each group's cost holds: dollars,
|
|
4
|
+
/** What each group's cost holds: dollars; for risk its restarts, evictions and throttled hours, never adding the OOM kills a restart already counts; for requested a share from 0 to 1 of the CPU and memory requested, each period's of that period's requests and the totals' of the window's */
|
|
5
5
|
metric?: CostSeries.Metric | undefined;
|
|
6
6
|
granularity?: CostSeries.Granularity | undefined;
|
|
7
7
|
days: LevelFour.CostDay[];
|
|
8
8
|
totals: LevelFour.CostGroup[];
|
|
9
9
|
}
|
|
10
10
|
export declare namespace CostSeries {
|
|
11
|
-
/** What each group's cost holds: dollars,
|
|
11
|
+
/** What each group's cost holds: dollars; for risk its restarts, evictions and throttled hours, never adding the OOM kills a restart already counts; for requested a share from 0 to 1 of the CPU and memory requested, each period's of that period's requests and the totals' of the window's */
|
|
12
12
|
const Metric: {
|
|
13
13
|
readonly Cost: "cost";
|
|
14
14
|
readonly Waste: "waste";
|
|
15
15
|
readonly Network: "network";
|
|
16
16
|
readonly Risk: "risk";
|
|
17
|
+
readonly Requested: "requested";
|
|
17
18
|
};
|
|
18
19
|
type Metric = (typeof Metric)[keyof typeof Metric];
|
|
19
20
|
const Granularity: {
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import type * as LevelFour from "../index.js";
|
|
2
2
|
export interface CostSeries {
|
|
3
3
|
group_by: string;
|
|
4
|
-
/** What each group's cost holds: dollars,
|
|
4
|
+
/** What each group's cost holds: dollars; for risk its restarts, evictions and throttled hours, never adding the OOM kills a restart already counts; for requested a share from 0 to 1 of the CPU and memory requested, each period's of that period's requests and the totals' of the window's */
|
|
5
5
|
metric?: CostSeries.Metric | undefined;
|
|
6
6
|
granularity?: CostSeries.Granularity | undefined;
|
|
7
7
|
days: LevelFour.CostDay[];
|
|
8
8
|
totals: LevelFour.CostGroup[];
|
|
9
9
|
}
|
|
10
10
|
export declare namespace CostSeries {
|
|
11
|
-
/** What each group's cost holds: dollars,
|
|
11
|
+
/** What each group's cost holds: dollars; for risk its restarts, evictions and throttled hours, never adding the OOM kills a restart already counts; for requested a share from 0 to 1 of the CPU and memory requested, each period's of that period's requests and the totals' of the window's */
|
|
12
12
|
const Metric: {
|
|
13
13
|
readonly Cost: "cost";
|
|
14
14
|
readonly Waste: "waste";
|
|
15
15
|
readonly Network: "network";
|
|
16
16
|
readonly Risk: "risk";
|
|
17
|
+
readonly Requested: "requested";
|
|
17
18
|
};
|
|
18
19
|
type Metric = (typeof Metric)[keyof typeof Metric];
|
|
19
20
|
const Granularity: {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface DestinationTraffic {
|
|
2
|
+
/** same_zone: a pod or node of the cluster in the sender's zone, which no cloud charges for; cross_zone: one in another zone; internet; outside_cluster: a private address outside the cluster, zone unknown; unknown: a flow whose zone is missing, or bytes the pods sent that no flow accounts for */
|
|
3
|
+
destination: DestinationTraffic.Destination;
|
|
4
|
+
/** Bytes the pods sent there */
|
|
5
|
+
bytes: number;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace DestinationTraffic {
|
|
8
|
+
/** same_zone: a pod or node of the cluster in the sender's zone, which no cloud charges for; cross_zone: one in another zone; internet; outside_cluster: a private address outside the cluster, zone unknown; unknown: a flow whose zone is missing, or bytes the pods sent that no flow accounts for */
|
|
9
|
+
const Destination: {
|
|
10
|
+
readonly SameZone: "same_zone";
|
|
11
|
+
readonly CrossZone: "cross_zone";
|
|
12
|
+
readonly Internet: "internet";
|
|
13
|
+
readonly OutsideCluster: "outside_cluster";
|
|
14
|
+
readonly Unknown: "unknown";
|
|
15
|
+
};
|
|
16
|
+
type Destination = (typeof Destination)[keyof typeof Destination];
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface DestinationTraffic {
|
|
2
|
+
/** same_zone: a pod or node of the cluster in the sender's zone, which no cloud charges for; cross_zone: one in another zone; internet; outside_cluster: a private address outside the cluster, zone unknown; unknown: a flow whose zone is missing, or bytes the pods sent that no flow accounts for */
|
|
3
|
+
destination: DestinationTraffic.Destination;
|
|
4
|
+
/** Bytes the pods sent there */
|
|
5
|
+
bytes: number;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace DestinationTraffic {
|
|
8
|
+
/** same_zone: a pod or node of the cluster in the sender's zone, which no cloud charges for; cross_zone: one in another zone; internet; outside_cluster: a private address outside the cluster, zone unknown; unknown: a flow whose zone is missing, or bytes the pods sent that no flow accounts for */
|
|
9
|
+
const Destination: {
|
|
10
|
+
readonly SameZone: "same_zone";
|
|
11
|
+
readonly CrossZone: "cross_zone";
|
|
12
|
+
readonly Internet: "internet";
|
|
13
|
+
readonly OutsideCluster: "outside_cluster";
|
|
14
|
+
readonly Unknown: "unknown";
|
|
15
|
+
};
|
|
16
|
+
type Destination = (typeof Destination)[keyof typeof Destination];
|
|
17
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var DestinationTraffic_exports = {};
|
|
20
|
+
__export(DestinationTraffic_exports, {
|
|
21
|
+
DestinationTraffic: () => DestinationTraffic
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(DestinationTraffic_exports);
|
|
24
|
+
var DestinationTraffic;
|
|
25
|
+
((DestinationTraffic2) => {
|
|
26
|
+
DestinationTraffic2.Destination = {
|
|
27
|
+
SameZone: "same_zone",
|
|
28
|
+
CrossZone: "cross_zone",
|
|
29
|
+
Internet: "internet",
|
|
30
|
+
OutsideCluster: "outside_cluster",
|
|
31
|
+
Unknown: "unknown"
|
|
32
|
+
};
|
|
33
|
+
})(DestinationTraffic || (DestinationTraffic = {}));
|
|
34
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
35
|
+
0 && (module.exports = {
|
|
36
|
+
DestinationTraffic
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=DestinationTraffic.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var DestinationTraffic;
|
|
2
|
+
((DestinationTraffic2) => {
|
|
3
|
+
DestinationTraffic2.Destination = {
|
|
4
|
+
SameZone: "same_zone",
|
|
5
|
+
CrossZone: "cross_zone",
|
|
6
|
+
Internet: "internet",
|
|
7
|
+
OutsideCluster: "outside_cluster",
|
|
8
|
+
Unknown: "unknown"
|
|
9
|
+
};
|
|
10
|
+
})(DestinationTraffic || (DestinationTraffic = {}));
|
|
11
|
+
export {
|
|
12
|
+
DestinationTraffic
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=DestinationTraffic.mjs.map
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type * as LevelFour from "../index.mjs";
|
|
2
2
|
export interface Efficiency {
|
|
3
|
+
/** Hours the agent watched in the window, which every average divides by; for several clusters, each hour counts the longest any of them was watched */
|
|
4
|
+
hours_watched?: number | undefined;
|
|
5
|
+
/** The first moment the agent watched in the window */
|
|
6
|
+
watched_from?: (string | null) | undefined;
|
|
7
|
+
/** The last moment the agent watched in the window */
|
|
8
|
+
watched_until?: (string | null) | undefined;
|
|
3
9
|
/** Cores */
|
|
4
10
|
cpu: LevelFour.ResourceEfficiency;
|
|
5
11
|
/** GiB */
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type * as LevelFour from "../index.js";
|
|
2
2
|
export interface Efficiency {
|
|
3
|
+
/** Hours the agent watched in the window, which every average divides by; for several clusters, each hour counts the longest any of them was watched */
|
|
4
|
+
hours_watched?: number | undefined;
|
|
5
|
+
/** The first moment the agent watched in the window */
|
|
6
|
+
watched_from?: (string | null) | undefined;
|
|
7
|
+
/** The last moment the agent watched in the window */
|
|
8
|
+
watched_until?: (string | null) | undefined;
|
|
3
9
|
/** Cores */
|
|
4
10
|
cpu: LevelFour.ResourceEfficiency;
|
|
5
11
|
/** GiB */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface EfficiencyPoint {
|
|
2
2
|
t: string;
|
|
3
|
+
/** What the scope held at once on average: its unit-seconds over the seconds the agent watched it in the hour or day, an hour of several clusters counting the longest any of them was watched */
|
|
3
4
|
provisioned?: (number | null) | undefined;
|
|
4
5
|
requested?: (number | null) | undefined;
|
|
5
6
|
used?: (number | null) | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface EfficiencyPoint {
|
|
2
2
|
t: string;
|
|
3
|
+
/** What the scope held at once on average: its unit-seconds over the seconds the agent watched it in the hour or day, an hour of several clusters counting the longest any of them was watched */
|
|
3
4
|
provisioned?: (number | null) | undefined;
|
|
4
5
|
requested?: (number | null) | undefined;
|
|
5
6
|
used?: (number | null) | undefined;
|
|
@@ -8,7 +8,11 @@ export interface FleetNamespace {
|
|
|
8
8
|
created_at?: (string | null) | undefined;
|
|
9
9
|
/** Containers, volumes and data transfer; with include_idle, each day's container cost grows by that day's node idle over everything the cluster's containers cost that day */
|
|
10
10
|
cost?: (number | null) | undefined;
|
|
11
|
+
/** Why the cost total beside it is null, and null when it is not. compute_unpriced: its own containers, or its cluster's nodes, ran and the bill has priced none of them, yet or at all, as the cluster's bill_status tells; its storage and data transfer alone are no total. nothing_priced: its cluster's nodes are priced, or did not run, and nothing of it carries a priced cost */
|
|
12
|
+
cost_unknown_reason?: (FleetNamespace.CostUnknownReason | null) | undefined;
|
|
11
13
|
cost_share?: (number | null) | undefined;
|
|
14
|
+
/** Its share, from 0 to 1, of the CPU and memory the listed clusters' containers requested in the window: the average of its share of each resource they requested any of, the basis the cost series' requested metric shares out. Whatever the search or the recommendations chips keep, so it does not move with them. Null for __idle__ and __node__, and when nothing was requested */
|
|
15
|
+
request_share?: (number | null) | undefined;
|
|
12
16
|
/** Against the previous window of equal length, before any idle is shared */
|
|
13
17
|
cost_change_pct?: (number | null) | undefined;
|
|
14
18
|
cpu_cost?: (number | null) | undefined;
|
|
@@ -61,6 +65,11 @@ export declare namespace FleetNamespace {
|
|
|
61
65
|
readonly Node: "node";
|
|
62
66
|
};
|
|
63
67
|
type Kind = (typeof Kind)[keyof typeof Kind];
|
|
68
|
+
const CostUnknownReason: {
|
|
69
|
+
readonly ComputeUnpriced: "compute_unpriced";
|
|
70
|
+
readonly NothingPriced: "nothing_priced";
|
|
71
|
+
};
|
|
72
|
+
type CostUnknownReason = (typeof CostUnknownReason)[keyof typeof CostUnknownReason];
|
|
64
73
|
const Recommendations: {
|
|
65
74
|
readonly Enabled: "enabled";
|
|
66
75
|
readonly Disabled: "disabled";
|
|
@@ -8,7 +8,11 @@ export interface FleetNamespace {
|
|
|
8
8
|
created_at?: (string | null) | undefined;
|
|
9
9
|
/** Containers, volumes and data transfer; with include_idle, each day's container cost grows by that day's node idle over everything the cluster's containers cost that day */
|
|
10
10
|
cost?: (number | null) | undefined;
|
|
11
|
+
/** Why the cost total beside it is null, and null when it is not. compute_unpriced: its own containers, or its cluster's nodes, ran and the bill has priced none of them, yet or at all, as the cluster's bill_status tells; its storage and data transfer alone are no total. nothing_priced: its cluster's nodes are priced, or did not run, and nothing of it carries a priced cost */
|
|
12
|
+
cost_unknown_reason?: (FleetNamespace.CostUnknownReason | null) | undefined;
|
|
11
13
|
cost_share?: (number | null) | undefined;
|
|
14
|
+
/** Its share, from 0 to 1, of the CPU and memory the listed clusters' containers requested in the window: the average of its share of each resource they requested any of, the basis the cost series' requested metric shares out. Whatever the search or the recommendations chips keep, so it does not move with them. Null for __idle__ and __node__, and when nothing was requested */
|
|
15
|
+
request_share?: (number | null) | undefined;
|
|
12
16
|
/** Against the previous window of equal length, before any idle is shared */
|
|
13
17
|
cost_change_pct?: (number | null) | undefined;
|
|
14
18
|
cpu_cost?: (number | null) | undefined;
|
|
@@ -61,6 +65,11 @@ export declare namespace FleetNamespace {
|
|
|
61
65
|
readonly Node: "node";
|
|
62
66
|
};
|
|
63
67
|
type Kind = (typeof Kind)[keyof typeof Kind];
|
|
68
|
+
const CostUnknownReason: {
|
|
69
|
+
readonly ComputeUnpriced: "compute_unpriced";
|
|
70
|
+
readonly NothingPriced: "nothing_priced";
|
|
71
|
+
};
|
|
72
|
+
type CostUnknownReason = (typeof CostUnknownReason)[keyof typeof CostUnknownReason];
|
|
64
73
|
const Recommendations: {
|
|
65
74
|
readonly Enabled: "enabled";
|
|
66
75
|
readonly Disabled: "disabled";
|
|
@@ -29,6 +29,10 @@ var FleetNamespace;
|
|
|
29
29
|
System: "system",
|
|
30
30
|
Node: "node"
|
|
31
31
|
};
|
|
32
|
+
FleetNamespace2.CostUnknownReason = {
|
|
33
|
+
ComputeUnpriced: "compute_unpriced",
|
|
34
|
+
NothingPriced: "nothing_priced"
|
|
35
|
+
};
|
|
32
36
|
FleetNamespace2.Recommendations = {
|
|
33
37
|
Enabled: "enabled",
|
|
34
38
|
Disabled: "disabled",
|
|
@@ -6,6 +6,10 @@ var FleetNamespace;
|
|
|
6
6
|
System: "system",
|
|
7
7
|
Node: "node"
|
|
8
8
|
};
|
|
9
|
+
FleetNamespace2.CostUnknownReason = {
|
|
10
|
+
ComputeUnpriced: "compute_unpriced",
|
|
11
|
+
NothingPriced: "nothing_priced"
|
|
12
|
+
};
|
|
9
13
|
FleetNamespace2.Recommendations = {
|
|
10
14
|
Enabled: "enabled",
|
|
11
15
|
Disabled: "disabled",
|
|
@@ -5,29 +5,35 @@ export interface FleetNodePool {
|
|
|
5
5
|
/** Set when grouped by instance type */
|
|
6
6
|
instance_type?: (string | null) | undefined;
|
|
7
7
|
arch?: (string | null) | undefined;
|
|
8
|
-
/**
|
|
8
|
+
/** The instances the agent saw in the group in the window's hours, as the Nodes list lists them */
|
|
9
9
|
nodes: number;
|
|
10
10
|
spot_nodes: number;
|
|
11
11
|
/** Nodes in the group running now, as the cluster's node_count counts them */
|
|
12
12
|
nodes_now?: (number | null) | undefined;
|
|
13
|
-
/**
|
|
13
|
+
/** What the group's nodes running now can give pods, from each node's allocatable */
|
|
14
|
+
cpu_allocatable_milli_now?: (number | null) | undefined;
|
|
15
|
+
/** What the pods on the group's nodes running now hold: the pods of the latest batch, at their own requests, as the Nodes list's rows and the fleet's clusters read it; null while no pod with a request runs on them */
|
|
16
|
+
cpu_requested_milli_now?: (number | null) | undefined;
|
|
17
|
+
memory_allocatable_bytes_now?: (number | null) | undefined;
|
|
18
|
+
memory_requested_bytes_now?: (number | null) | undefined;
|
|
19
|
+
/** Nodes running at once on average over the seconds the agent watched in the hours the group ran */
|
|
14
20
|
nodes_avg?: (number | null) | undefined;
|
|
15
|
-
/**
|
|
21
|
+
/** Its busiest hour's nodes running at once: the hour's node seconds over the seconds the agent watched in it, so a node replaced within the hour does not count twice */
|
|
16
22
|
nodes_max?: (number | null) | undefined;
|
|
17
23
|
pods_per_node?: (number | null) | undefined;
|
|
18
24
|
/** Cores per GiB the pods asked for */
|
|
19
25
|
requested_cpu_per_gib?: (number | null) | undefined;
|
|
20
26
|
/** Cores per GiB the nodes launched provide */
|
|
21
27
|
allocatable_cpu_per_gib?: (number | null) | undefined;
|
|
22
|
-
/** Average over the
|
|
28
|
+
/** Average over the seconds the agent watched the cluster */
|
|
23
29
|
cpu_allocatable_milli?: (number | null) | undefined;
|
|
24
|
-
/** Average over the
|
|
30
|
+
/** Average over the seconds the agent watched the cluster */
|
|
25
31
|
cpu_requested_milli?: (number | null) | undefined;
|
|
26
32
|
cpu_used_milli?: (number | null) | undefined;
|
|
27
33
|
memory_allocatable_bytes?: (number | null) | undefined;
|
|
28
34
|
memory_requested_bytes?: (number | null) | undefined;
|
|
29
35
|
memory_used_bytes?: (number | null) | undefined;
|
|
30
|
-
/** p95 over the days the group ran, each day averaged over the
|
|
36
|
+
/** p95 over the days the group ran, each day averaged over the seconds the agent watched */
|
|
31
37
|
cpu_allocatable_milli_p95?: (number | null) | undefined;
|
|
32
38
|
cpu_requested_milli_p95?: (number | null) | undefined;
|
|
33
39
|
cpu_used_milli_p95?: (number | null) | undefined;
|
|
@@ -39,6 +45,10 @@ export interface FleetNodePool {
|
|
|
39
45
|
/** Cost per node-hour */
|
|
40
46
|
cost_per_hour?: (number | null) | undefined;
|
|
41
47
|
purchase_types: LevelFour.PurchaseTypeHours[];
|
|
48
|
+
/** The capacity types the group's Karpenter NodePool, self-managed or EKS Auto Mode, may launch as of the latest batch, of on-demand, reserved (a capacity reservation) and spot, sorted: what its karpenter.sh/capacity-type requirements and template labels leave. A NodePool that names no capacity type may launch all three, Karpenter's default. Null for a managed node group or any other group, whose capacity type the agent does not report, for a NodePool the latest batch no longer has, and for an instance type */
|
|
49
|
+
allowed_capacity_types?: (string[] | null) | undefined;
|
|
50
|
+
/** The capacity types the group's nodes ran on in the window's hours, sorted: on-demand, spot, and unknown for an hour whose node carried no capacity-type label. A node in a capacity reservation reads on-demand, as the agent reads its label. Empty for a group the agent saw no hour of */
|
|
51
|
+
ran_capacity_types: string[];
|
|
42
52
|
karpenter?: (LevelFour.KarpenterPool | null) | undefined;
|
|
43
53
|
/** Day by day, with series=day */
|
|
44
54
|
series?: (LevelFour.NodePoolDay[] | null) | undefined;
|
|
@@ -5,29 +5,35 @@ export interface FleetNodePool {
|
|
|
5
5
|
/** Set when grouped by instance type */
|
|
6
6
|
instance_type?: (string | null) | undefined;
|
|
7
7
|
arch?: (string | null) | undefined;
|
|
8
|
-
/**
|
|
8
|
+
/** The instances the agent saw in the group in the window's hours, as the Nodes list lists them */
|
|
9
9
|
nodes: number;
|
|
10
10
|
spot_nodes: number;
|
|
11
11
|
/** Nodes in the group running now, as the cluster's node_count counts them */
|
|
12
12
|
nodes_now?: (number | null) | undefined;
|
|
13
|
-
/**
|
|
13
|
+
/** What the group's nodes running now can give pods, from each node's allocatable */
|
|
14
|
+
cpu_allocatable_milli_now?: (number | null) | undefined;
|
|
15
|
+
/** What the pods on the group's nodes running now hold: the pods of the latest batch, at their own requests, as the Nodes list's rows and the fleet's clusters read it; null while no pod with a request runs on them */
|
|
16
|
+
cpu_requested_milli_now?: (number | null) | undefined;
|
|
17
|
+
memory_allocatable_bytes_now?: (number | null) | undefined;
|
|
18
|
+
memory_requested_bytes_now?: (number | null) | undefined;
|
|
19
|
+
/** Nodes running at once on average over the seconds the agent watched in the hours the group ran */
|
|
14
20
|
nodes_avg?: (number | null) | undefined;
|
|
15
|
-
/**
|
|
21
|
+
/** Its busiest hour's nodes running at once: the hour's node seconds over the seconds the agent watched in it, so a node replaced within the hour does not count twice */
|
|
16
22
|
nodes_max?: (number | null) | undefined;
|
|
17
23
|
pods_per_node?: (number | null) | undefined;
|
|
18
24
|
/** Cores per GiB the pods asked for */
|
|
19
25
|
requested_cpu_per_gib?: (number | null) | undefined;
|
|
20
26
|
/** Cores per GiB the nodes launched provide */
|
|
21
27
|
allocatable_cpu_per_gib?: (number | null) | undefined;
|
|
22
|
-
/** Average over the
|
|
28
|
+
/** Average over the seconds the agent watched the cluster */
|
|
23
29
|
cpu_allocatable_milli?: (number | null) | undefined;
|
|
24
|
-
/** Average over the
|
|
30
|
+
/** Average over the seconds the agent watched the cluster */
|
|
25
31
|
cpu_requested_milli?: (number | null) | undefined;
|
|
26
32
|
cpu_used_milli?: (number | null) | undefined;
|
|
27
33
|
memory_allocatable_bytes?: (number | null) | undefined;
|
|
28
34
|
memory_requested_bytes?: (number | null) | undefined;
|
|
29
35
|
memory_used_bytes?: (number | null) | undefined;
|
|
30
|
-
/** p95 over the days the group ran, each day averaged over the
|
|
36
|
+
/** p95 over the days the group ran, each day averaged over the seconds the agent watched */
|
|
31
37
|
cpu_allocatable_milli_p95?: (number | null) | undefined;
|
|
32
38
|
cpu_requested_milli_p95?: (number | null) | undefined;
|
|
33
39
|
cpu_used_milli_p95?: (number | null) | undefined;
|
|
@@ -39,6 +45,10 @@ export interface FleetNodePool {
|
|
|
39
45
|
/** Cost per node-hour */
|
|
40
46
|
cost_per_hour?: (number | null) | undefined;
|
|
41
47
|
purchase_types: LevelFour.PurchaseTypeHours[];
|
|
48
|
+
/** The capacity types the group's Karpenter NodePool, self-managed or EKS Auto Mode, may launch as of the latest batch, of on-demand, reserved (a capacity reservation) and spot, sorted: what its karpenter.sh/capacity-type requirements and template labels leave. A NodePool that names no capacity type may launch all three, Karpenter's default. Null for a managed node group or any other group, whose capacity type the agent does not report, for a NodePool the latest batch no longer has, and for an instance type */
|
|
49
|
+
allowed_capacity_types?: (string[] | null) | undefined;
|
|
50
|
+
/** The capacity types the group's nodes ran on in the window's hours, sorted: on-demand, spot, and unknown for an hour whose node carried no capacity-type label. A node in a capacity reservation reads on-demand, as the agent reads its label. Empty for a group the agent saw no hour of */
|
|
51
|
+
ran_capacity_types: string[];
|
|
42
52
|
karpenter?: (LevelFour.KarpenterPool | null) | undefined;
|
|
43
53
|
/** Day by day, with series=day */
|
|
44
54
|
series?: (LevelFour.NodePoolDay[] | null) | undefined;
|
|
@@ -6,7 +6,10 @@ export interface FleetStorage {
|
|
|
6
6
|
pvcs?: number | undefined;
|
|
7
7
|
provisioned_bytes?: (number | null) | undefined;
|
|
8
8
|
requested_bytes?: (number | null) | undefined;
|
|
9
|
+
/** What the kubelet read of the claims it has a reading for */
|
|
9
10
|
used_bytes?: (number | null) | undefined;
|
|
11
|
+
/** The capacity of the claims the kubelet read, which used_bytes is out of */
|
|
12
|
+
measured_bytes?: (number | null) | undefined;
|
|
10
13
|
cost?: (number | null) | undefined;
|
|
11
14
|
not_mounted?: number | undefined;
|
|
12
15
|
/** The 3 costliest storage classes */
|
|
@@ -6,7 +6,10 @@ export interface FleetStorage {
|
|
|
6
6
|
pvcs?: number | undefined;
|
|
7
7
|
provisioned_bytes?: (number | null) | undefined;
|
|
8
8
|
requested_bytes?: (number | null) | undefined;
|
|
9
|
+
/** What the kubelet read of the claims it has a reading for */
|
|
9
10
|
used_bytes?: (number | null) | undefined;
|
|
11
|
+
/** The capacity of the claims the kubelet read, which used_bytes is out of */
|
|
12
|
+
measured_bytes?: (number | null) | undefined;
|
|
10
13
|
cost?: (number | null) | undefined;
|
|
11
14
|
not_mounted?: number | undefined;
|
|
12
15
|
/** The 3 costliest storage classes */
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type * as LevelFour from "../index.mjs";
|
|
2
2
|
export interface FleetSummary {
|
|
3
|
+
/** The batches the current-state figures reflect (nodes, namespaces, workloads, pods and workloads at risk): each connected cluster's latest, newest and oldest across them. Null until a cluster reports a batch; a cluster without the agent reports none */
|
|
4
|
+
as_of?: (LevelFour.SnapshotRange | null) | undefined;
|
|
5
|
+
/** The clusters' cost added up, as the clusters list reads it */
|
|
3
6
|
total_cost?: (number | null) | undefined;
|
|
4
7
|
idle_cost?: (number | null) | undefined;
|
|
5
8
|
idle_share?: (number | null) | undefined;
|
|
@@ -28,7 +31,11 @@ export interface FleetSummary {
|
|
|
28
31
|
cost_basis: FleetSummary.CostBasis;
|
|
29
32
|
/** The last day every priced cluster is priced through */
|
|
30
33
|
priced_through?: (string | null) | undefined;
|
|
31
|
-
/**
|
|
34
|
+
/** priced when any cluster is priced in the window; else awaiting_bill when any is waiting for its bill; else no_account, each cluster read as the clusters list reads it */
|
|
35
|
+
bill_status: FleetSummary.BillStatus;
|
|
36
|
+
/** While awaiting_bill, the earliest day a waiting cluster's first priced day should show */
|
|
37
|
+
bill_expected_by?: (string | null) | undefined;
|
|
38
|
+
/** Current workloads at high risk: an OOM kill, an eviction, no ready replica in two batches in a row, or a crash loop. Medium and low never count. An ephemeral one, a pull-request environment, counts only with include_ephemeral */
|
|
32
39
|
workloads_at_risk?: number | undefined;
|
|
33
40
|
potential_savings?: (LevelFour.PotentialSavings | null) | undefined;
|
|
34
41
|
realized_savings: LevelFour.RealizedTotal;
|
|
@@ -50,4 +57,11 @@ export declare namespace FleetSummary {
|
|
|
50
57
|
readonly None: "none";
|
|
51
58
|
};
|
|
52
59
|
type CostBasis = (typeof CostBasis)[keyof typeof CostBasis];
|
|
60
|
+
/** priced when any cluster is priced in the window; else awaiting_bill when any is waiting for its bill; else no_account, each cluster read as the clusters list reads it */
|
|
61
|
+
const BillStatus: {
|
|
62
|
+
readonly Priced: "priced";
|
|
63
|
+
readonly AwaitingBill: "awaiting_bill";
|
|
64
|
+
readonly NoAccount: "no_account";
|
|
65
|
+
};
|
|
66
|
+
type BillStatus = (typeof BillStatus)[keyof typeof BillStatus];
|
|
53
67
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type * as LevelFour from "../index.js";
|
|
2
2
|
export interface FleetSummary {
|
|
3
|
+
/** The batches the current-state figures reflect (nodes, namespaces, workloads, pods and workloads at risk): each connected cluster's latest, newest and oldest across them. Null until a cluster reports a batch; a cluster without the agent reports none */
|
|
4
|
+
as_of?: (LevelFour.SnapshotRange | null) | undefined;
|
|
5
|
+
/** The clusters' cost added up, as the clusters list reads it */
|
|
3
6
|
total_cost?: (number | null) | undefined;
|
|
4
7
|
idle_cost?: (number | null) | undefined;
|
|
5
8
|
idle_share?: (number | null) | undefined;
|
|
@@ -28,7 +31,11 @@ export interface FleetSummary {
|
|
|
28
31
|
cost_basis: FleetSummary.CostBasis;
|
|
29
32
|
/** The last day every priced cluster is priced through */
|
|
30
33
|
priced_through?: (string | null) | undefined;
|
|
31
|
-
/**
|
|
34
|
+
/** priced when any cluster is priced in the window; else awaiting_bill when any is waiting for its bill; else no_account, each cluster read as the clusters list reads it */
|
|
35
|
+
bill_status: FleetSummary.BillStatus;
|
|
36
|
+
/** While awaiting_bill, the earliest day a waiting cluster's first priced day should show */
|
|
37
|
+
bill_expected_by?: (string | null) | undefined;
|
|
38
|
+
/** Current workloads at high risk: an OOM kill, an eviction, no ready replica in two batches in a row, or a crash loop. Medium and low never count. An ephemeral one, a pull-request environment, counts only with include_ephemeral */
|
|
32
39
|
workloads_at_risk?: number | undefined;
|
|
33
40
|
potential_savings?: (LevelFour.PotentialSavings | null) | undefined;
|
|
34
41
|
realized_savings: LevelFour.RealizedTotal;
|
|
@@ -50,4 +57,11 @@ export declare namespace FleetSummary {
|
|
|
50
57
|
readonly None: "none";
|
|
51
58
|
};
|
|
52
59
|
type CostBasis = (typeof CostBasis)[keyof typeof CostBasis];
|
|
60
|
+
/** priced when any cluster is priced in the window; else awaiting_bill when any is waiting for its bill; else no_account, each cluster read as the clusters list reads it */
|
|
61
|
+
const BillStatus: {
|
|
62
|
+
readonly Priced: "priced";
|
|
63
|
+
readonly AwaitingBill: "awaiting_bill";
|
|
64
|
+
readonly NoAccount: "no_account";
|
|
65
|
+
};
|
|
66
|
+
type BillStatus = (typeof BillStatus)[keyof typeof BillStatus];
|
|
53
67
|
}
|
|
@@ -34,6 +34,11 @@ var FleetSummary;
|
|
|
34
34
|
Pending: "pending",
|
|
35
35
|
None: "none"
|
|
36
36
|
};
|
|
37
|
+
FleetSummary2.BillStatus = {
|
|
38
|
+
Priced: "priced",
|
|
39
|
+
AwaitingBill: "awaiting_bill",
|
|
40
|
+
NoAccount: "no_account"
|
|
41
|
+
};
|
|
37
42
|
})(FleetSummary || (FleetSummary = {}));
|
|
38
43
|
// Annotate the CommonJS export names for ESM import in node:
|
|
39
44
|
0 && (module.exports = {
|