levelfour 1.8.0 → 1.10.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/accounts/client/Client.d.mts +34 -0
- package/dist/api/resources/accounts/client/Client.d.ts +34 -0
- package/dist/api/resources/accounts/client/Client.js +204 -0
- package/dist/api/resources/accounts/client/Client.mjs +204 -0
- package/dist/api/types/AutomationAction.d.mts +1 -0
- package/dist/api/types/AutomationAction.d.ts +1 -0
- package/dist/api/types/AutomationAction.js +2 -1
- package/dist/api/types/AutomationAction.mjs +2 -1
- package/dist/api/types/AzureSubscriptionItem.d.mts +2 -0
- package/dist/api/types/AzureSubscriptionItem.d.ts +2 -0
- package/dist/api/types/BlockerTotals.d.mts +31 -1
- package/dist/api/types/BlockerTotals.d.ts +31 -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 +17 -1
- package/dist/api/types/ClusterSummary.d.ts +17 -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 +32 -0
- package/dist/api/types/ConsolidationBlocker.d.ts +32 -0
- package/dist/api/types/ConsolidationBlocker.js +15 -0
- package/dist/api/types/ConsolidationBlocker.mjs +15 -0
- package/dist/api/types/ContainerDetail.d.mts +4 -0
- package/dist/api/types/ContainerDetail.d.ts +4 -0
- package/dist/api/types/ContainerJvmDay.d.mts +20 -0
- package/dist/api/types/ContainerJvmDay.d.ts +20 -0
- package/dist/api/types/ContainerJvmDay.js +17 -0
- package/dist/api/types/ContainerJvmDay.mjs +1 -0
- package/dist/api/types/ContainerJvmMeasured.d.mts +50 -0
- package/dist/api/types/ContainerJvmMeasured.d.ts +50 -0
- package/dist/api/types/ContainerJvmMeasured.js +41 -0
- package/dist/api/types/ContainerJvmMeasured.mjs +17 -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 +7 -0
- package/dist/api/types/FleetNamespace.d.ts +7 -0
- package/dist/api/types/FleetNamespace.js +4 -0
- package/dist/api/types/FleetNamespace.mjs +4 -0
- package/dist/api/types/FleetNodePool.d.mts +13 -5
- package/dist/api/types/FleetNodePool.d.ts +13 -5
- 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 +13 -1
- package/dist/api/types/FleetSummary.d.ts +13 -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/FleetWorkloadFacets.d.mts +5 -0
- package/dist/api/types/FleetWorkloadFacets.d.ts +5 -0
- package/dist/api/types/FleetWorkloadFacets.js +17 -0
- package/dist/api/types/FleetWorkloadFacets.mjs +1 -0
- package/dist/api/types/FleetWorkloadListData.d.mts +1 -0
- package/dist/api/types/FleetWorkloadListData.d.ts +1 -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 +4 -0
- package/dist/api/types/Indicator.d.ts +4 -0
- package/dist/api/types/Indicator.js +4 -0
- package/dist/api/types/Indicator.mjs +4 -0
- package/dist/api/types/IndicatorCount.d.mts +4 -0
- package/dist/api/types/IndicatorCount.d.ts +4 -0
- package/dist/api/types/IndicatorCount.js +4 -0
- package/dist/api/types/IndicatorCount.mjs +4 -0
- package/dist/api/types/JvmFlags.d.mts +38 -0
- package/dist/api/types/JvmFlags.d.ts +38 -0
- package/dist/api/types/JvmFlags.js +41 -0
- package/dist/api/types/JvmFlags.mjs +17 -0
- package/dist/api/types/JvmMeasured.d.mts +52 -0
- package/dist/api/types/JvmMeasured.d.ts +52 -0
- package/dist/api/types/JvmMeasured.js +41 -0
- package/dist/api/types/JvmMeasured.mjs +17 -0
- package/dist/api/types/JvmReaderHealth.d.mts +8 -0
- package/dist/api/types/JvmReaderHealth.d.ts +8 -0
- package/dist/api/types/JvmReaderHealth.js +17 -0
- package/dist/api/types/JvmReaderHealth.mjs +1 -0
- package/dist/api/types/JvmReaderNodeHealth.d.mts +21 -0
- package/dist/api/types/JvmReaderNodeHealth.d.ts +21 -0
- package/dist/api/types/JvmReaderNodeHealth.js +37 -0
- package/dist/api/types/JvmReaderNodeHealth.mjs +13 -0
- package/dist/api/types/JvmReaderResponse.d.mts +6 -0
- package/dist/api/types/JvmReaderResponse.d.ts +6 -0
- package/dist/api/types/JvmReaderResponse.js +17 -0
- package/dist/api/types/JvmReaderResponse.mjs +1 -0
- package/dist/api/types/KarpenterPool.d.mts +2 -0
- package/dist/api/types/KarpenterPool.d.ts +2 -0
- 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 +3 -0
- package/dist/api/types/NamespaceAutomation.d.ts +3 -0
- package/dist/api/types/NamespaceItem.d.mts +7 -0
- package/dist/api/types/NamespaceItem.d.ts +7 -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 +2 -0
- package/dist/api/types/NodeFacets.d.ts +2 -0
- package/dist/api/types/NodeItem.d.mts +3 -1
- package/dist/api/types/NodeItem.d.ts +3 -1
- 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/NodePoolUsage.d.mts +13 -5
- package/dist/api/types/NodePoolUsage.d.ts +13 -5
- 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 +1 -1
- package/dist/api/types/PurchaseTypeShare.d.ts +1 -1
- 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/ReliabilityFacetCount.d.mts +17 -0
- package/dist/api/types/ReliabilityFacetCount.d.ts +17 -0
- package/dist/api/types/ReliabilityFacetCount.js +41 -0
- package/dist/api/types/ReliabilityFacetCount.mjs +17 -0
- 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 +12 -3
- package/dist/api/types/ReliabilityTotals.d.ts +12 -3
- package/dist/api/types/RequestsAverage.d.mts +3 -1
- package/dist/api/types/RequestsAverage.d.ts +3 -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/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/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/TerraformIntegrationData.d.mts +13 -0
- package/dist/api/types/TerraformIntegrationData.d.ts +13 -0
- package/dist/api/types/TerraformIntegrationData.js +17 -0
- package/dist/api/types/TerraformIntegrationData.mjs +1 -0
- package/dist/api/types/TerraformIntegrationResponse.d.mts +6 -0
- package/dist/api/types/TerraformIntegrationResponse.d.ts +6 -0
- package/dist/api/types/TerraformIntegrationResponse.js +17 -0
- package/dist/api/types/TerraformIntegrationResponse.mjs +1 -0
- package/dist/api/types/UnhealthyReason.d.mts +16 -0
- package/dist/api/types/UnhealthyReason.d.ts +16 -0
- package/dist/api/types/UnhealthyReason.js +35 -0
- package/dist/api/types/UnhealthyReason.mjs +11 -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/WorkloadJvm.d.mts +15 -0
- package/dist/api/types/WorkloadJvm.d.ts +15 -0
- package/dist/api/types/WorkloadJvm.js +17 -0
- package/dist/api/types/WorkloadJvm.mjs +1 -0
- package/dist/api/types/WorkloadListData.d.mts +1 -1
- package/dist/api/types/WorkloadListData.d.ts +1 -1
- package/dist/api/types/WorkloadListItem.d.mts +132 -0
- package/dist/api/types/WorkloadListItem.d.ts +132 -0
- package/dist/api/types/WorkloadListItem.js +62 -0
- package/dist/api/types/WorkloadListItem.mjs +38 -0
- package/dist/api/types/index.d.mts +26 -0
- package/dist/api/types/index.d.ts +26 -0
- package/dist/api/types/index.js +52 -0
- package/dist/api/types/index.mjs +26 -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
|
@@ -1,14 +1,44 @@
|
|
|
1
1
|
export interface UtilizationTarget {
|
|
2
2
|
resource: string;
|
|
3
|
+
/** The one container a ContainerResource metric reads, or a KEDA trigger's containerName as the HPA KEDA made reads it; null when it reads the whole pod */
|
|
4
|
+
container?: (string | null) | undefined;
|
|
5
|
+
/** The configured utilization, in percent of the requests */
|
|
3
6
|
target?: (string | null) | undefined;
|
|
4
|
-
/**
|
|
5
|
-
|
|
7
|
+
/** What the targeted workload's pods, or the one container, used of their requests over the window, in percent as target is, the measure an HPA scales on: each hour weighed by its pod-seconds, over the hours with a reading and a request above 0. A pod hour counts only when every container has both, as an HPA reads no pod missing one. Null when no hour of the window does */
|
|
8
|
+
measured?: (number | null) | undefined;
|
|
9
|
+
/** The hours measured covers */
|
|
10
|
+
measured_hours?: number | undefined;
|
|
11
|
+
/** measured over only the hours the autoscaler's observed replicas sat strictly between its minimum and maximum, the hours an HPA holds its target; at a bound it cannot. Null when no such hour was measured */
|
|
12
|
+
measured_scaling?: (number | null) | undefined;
|
|
13
|
+
/** The hours measured_scaling covers */
|
|
14
|
+
scaling_hours?: number | undefined;
|
|
15
|
+
/** measured_scaling against target: over above 110% of it, past the 10% an HPA tolerates before it adds replicas; near from 80% to 110%; under from 60% to 80%; far_under below 60%. Null with against_target_reason when not graded */
|
|
16
|
+
against_target?: (UtilizationTarget.AgainstTarget | null) | undefined;
|
|
17
|
+
/** Why against_target is null. An HPA runs the most replicas any of its metrics asks for, so of several CPU and memory utilization targets only the one whose measured_scaling stands highest against its target (the first listed on a tie) is graded, and the others read not_binding. other_metrics when the autoscaler also scales on a metric whose use is not measured (External, Object or Pods, a KEDA trigger other than cpu or memory, or a target in absolute values), or when another of its targets could not be read over the window, so the binding one is unknown; target_not_a_percent; not_measured when no hour was measured; never_scaling when no measured hour had it between its minimum and maximum */
|
|
18
|
+
against_target_reason?: (UtilizationTarget.AgainstTargetReason | null) | undefined;
|
|
19
|
+
/** The configured target alone, whatever was measured: green above 80%, amber from 60% to 80%, red below 60%. A lower target holds each pod further below its requests by design */
|
|
20
|
+
target_band?: (UtilizationTarget.TargetBand | null) | undefined;
|
|
6
21
|
}
|
|
7
22
|
export declare namespace UtilizationTarget {
|
|
8
|
-
const
|
|
23
|
+
const AgainstTarget: {
|
|
24
|
+
readonly Over: "over";
|
|
25
|
+
readonly Near: "near";
|
|
26
|
+
readonly Under: "under";
|
|
27
|
+
readonly FarUnder: "far_under";
|
|
28
|
+
};
|
|
29
|
+
type AgainstTarget = (typeof AgainstTarget)[keyof typeof AgainstTarget];
|
|
30
|
+
const AgainstTargetReason: {
|
|
31
|
+
readonly NotBinding: "not_binding";
|
|
32
|
+
readonly OtherMetrics: "other_metrics";
|
|
33
|
+
readonly TargetNotAPercent: "target_not_a_percent";
|
|
34
|
+
readonly NotMeasured: "not_measured";
|
|
35
|
+
readonly NeverScaling: "never_scaling";
|
|
36
|
+
};
|
|
37
|
+
type AgainstTargetReason = (typeof AgainstTargetReason)[keyof typeof AgainstTargetReason];
|
|
38
|
+
const TargetBand: {
|
|
9
39
|
readonly Green: "green";
|
|
10
40
|
readonly Amber: "amber";
|
|
11
41
|
readonly Red: "red";
|
|
12
42
|
};
|
|
13
|
-
type
|
|
43
|
+
type TargetBand = (typeof TargetBand)[keyof typeof TargetBand];
|
|
14
44
|
}
|
|
@@ -1,14 +1,44 @@
|
|
|
1
1
|
export interface UtilizationTarget {
|
|
2
2
|
resource: string;
|
|
3
|
+
/** The one container a ContainerResource metric reads, or a KEDA trigger's containerName as the HPA KEDA made reads it; null when it reads the whole pod */
|
|
4
|
+
container?: (string | null) | undefined;
|
|
5
|
+
/** The configured utilization, in percent of the requests */
|
|
3
6
|
target?: (string | null) | undefined;
|
|
4
|
-
/**
|
|
5
|
-
|
|
7
|
+
/** What the targeted workload's pods, or the one container, used of their requests over the window, in percent as target is, the measure an HPA scales on: each hour weighed by its pod-seconds, over the hours with a reading and a request above 0. A pod hour counts only when every container has both, as an HPA reads no pod missing one. Null when no hour of the window does */
|
|
8
|
+
measured?: (number | null) | undefined;
|
|
9
|
+
/** The hours measured covers */
|
|
10
|
+
measured_hours?: number | undefined;
|
|
11
|
+
/** measured over only the hours the autoscaler's observed replicas sat strictly between its minimum and maximum, the hours an HPA holds its target; at a bound it cannot. Null when no such hour was measured */
|
|
12
|
+
measured_scaling?: (number | null) | undefined;
|
|
13
|
+
/** The hours measured_scaling covers */
|
|
14
|
+
scaling_hours?: number | undefined;
|
|
15
|
+
/** measured_scaling against target: over above 110% of it, past the 10% an HPA tolerates before it adds replicas; near from 80% to 110%; under from 60% to 80%; far_under below 60%. Null with against_target_reason when not graded */
|
|
16
|
+
against_target?: (UtilizationTarget.AgainstTarget | null) | undefined;
|
|
17
|
+
/** Why against_target is null. An HPA runs the most replicas any of its metrics asks for, so of several CPU and memory utilization targets only the one whose measured_scaling stands highest against its target (the first listed on a tie) is graded, and the others read not_binding. other_metrics when the autoscaler also scales on a metric whose use is not measured (External, Object or Pods, a KEDA trigger other than cpu or memory, or a target in absolute values), or when another of its targets could not be read over the window, so the binding one is unknown; target_not_a_percent; not_measured when no hour was measured; never_scaling when no measured hour had it between its minimum and maximum */
|
|
18
|
+
against_target_reason?: (UtilizationTarget.AgainstTargetReason | null) | undefined;
|
|
19
|
+
/** The configured target alone, whatever was measured: green above 80%, amber from 60% to 80%, red below 60%. A lower target holds each pod further below its requests by design */
|
|
20
|
+
target_band?: (UtilizationTarget.TargetBand | null) | undefined;
|
|
6
21
|
}
|
|
7
22
|
export declare namespace UtilizationTarget {
|
|
8
|
-
const
|
|
23
|
+
const AgainstTarget: {
|
|
24
|
+
readonly Over: "over";
|
|
25
|
+
readonly Near: "near";
|
|
26
|
+
readonly Under: "under";
|
|
27
|
+
readonly FarUnder: "far_under";
|
|
28
|
+
};
|
|
29
|
+
type AgainstTarget = (typeof AgainstTarget)[keyof typeof AgainstTarget];
|
|
30
|
+
const AgainstTargetReason: {
|
|
31
|
+
readonly NotBinding: "not_binding";
|
|
32
|
+
readonly OtherMetrics: "other_metrics";
|
|
33
|
+
readonly TargetNotAPercent: "target_not_a_percent";
|
|
34
|
+
readonly NotMeasured: "not_measured";
|
|
35
|
+
readonly NeverScaling: "never_scaling";
|
|
36
|
+
};
|
|
37
|
+
type AgainstTargetReason = (typeof AgainstTargetReason)[keyof typeof AgainstTargetReason];
|
|
38
|
+
const TargetBand: {
|
|
9
39
|
readonly Green: "green";
|
|
10
40
|
readonly Amber: "amber";
|
|
11
41
|
readonly Red: "red";
|
|
12
42
|
};
|
|
13
|
-
type
|
|
43
|
+
type TargetBand = (typeof TargetBand)[keyof typeof TargetBand];
|
|
14
44
|
}
|
|
@@ -23,7 +23,20 @@ __export(UtilizationTarget_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(UtilizationTarget_exports);
|
|
24
24
|
var UtilizationTarget;
|
|
25
25
|
((UtilizationTarget2) => {
|
|
26
|
-
UtilizationTarget2.
|
|
26
|
+
UtilizationTarget2.AgainstTarget = {
|
|
27
|
+
Over: "over",
|
|
28
|
+
Near: "near",
|
|
29
|
+
Under: "under",
|
|
30
|
+
FarUnder: "far_under"
|
|
31
|
+
};
|
|
32
|
+
UtilizationTarget2.AgainstTargetReason = {
|
|
33
|
+
NotBinding: "not_binding",
|
|
34
|
+
OtherMetrics: "other_metrics",
|
|
35
|
+
TargetNotAPercent: "target_not_a_percent",
|
|
36
|
+
NotMeasured: "not_measured",
|
|
37
|
+
NeverScaling: "never_scaling"
|
|
38
|
+
};
|
|
39
|
+
UtilizationTarget2.TargetBand = {
|
|
27
40
|
Green: "green",
|
|
28
41
|
Amber: "amber",
|
|
29
42
|
Red: "red"
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
var UtilizationTarget;
|
|
2
2
|
((UtilizationTarget2) => {
|
|
3
|
-
UtilizationTarget2.
|
|
3
|
+
UtilizationTarget2.AgainstTarget = {
|
|
4
|
+
Over: "over",
|
|
5
|
+
Near: "near",
|
|
6
|
+
Under: "under",
|
|
7
|
+
FarUnder: "far_under"
|
|
8
|
+
};
|
|
9
|
+
UtilizationTarget2.AgainstTargetReason = {
|
|
10
|
+
NotBinding: "not_binding",
|
|
11
|
+
OtherMetrics: "other_metrics",
|
|
12
|
+
TargetNotAPercent: "target_not_a_percent",
|
|
13
|
+
NotMeasured: "not_measured",
|
|
14
|
+
NeverScaling: "never_scaling"
|
|
15
|
+
};
|
|
16
|
+
UtilizationTarget2.TargetBand = {
|
|
4
17
|
Green: "green",
|
|
5
18
|
Amber: "amber",
|
|
6
19
|
Red: "red"
|
|
@@ -13,8 +13,11 @@ export interface VolumeItem {
|
|
|
13
13
|
requested_bytes?: (number | null) | undefined;
|
|
14
14
|
/** What its volume provides */
|
|
15
15
|
capacity_bytes?: (number | null) | undefined;
|
|
16
|
+
/** What the kubelet read; null while its use is unknown */
|
|
16
17
|
used_bytes?: (number | null) | undefined;
|
|
17
|
-
/**
|
|
18
|
+
/** Why used_bytes is null: not_mounted when no pod mounts the claim, so the kubelet reads nothing of it, no_reading when a pod mounts it and the kubelet sent no reading. Unknown use is never 0 */
|
|
19
|
+
use_unknown_reason?: (VolumeItem.UseUnknownReason | null) | undefined;
|
|
20
|
+
/** (capacity - used) / capacity; null while its use is unknown */
|
|
18
21
|
over_provisioned_pct?: (number | null) | undefined;
|
|
19
22
|
mounted_by: LevelFour.WorkloadRef[];
|
|
20
23
|
/** Bound, yet no workload mounts it */
|
|
@@ -23,5 +26,24 @@ export interface VolumeItem {
|
|
|
23
26
|
csi_driver?: (string | null) | undefined;
|
|
24
27
|
volume_handle?: (string | null) | undefined;
|
|
25
28
|
created_at?: (string | null) | undefined;
|
|
29
|
+
/** What the bill charged its volume over the window, every line naming the volume handle, whether or not the bill has priced the cluster's nodes yet */
|
|
26
30
|
period_cost?: (number | null) | undefined;
|
|
31
|
+
/** Why period_cost is null: not_on_bill when the bill of the cluster's account arrives over the window and no line of it names the volume, no_bill when no bill for that account arrives (none connected, not there yet, or a cloud whose bill this does not read for volumes) */
|
|
32
|
+
cost_unknown_reason?: (VolumeItem.CostUnknownReason | null) | undefined;
|
|
33
|
+
/** While period_cost is null, the last day any bill line named the volume; null if none ever */
|
|
34
|
+
last_billed_on?: (string | null) | undefined;
|
|
35
|
+
/** While period_cost is null, what the tenant's own bill charged a GiB-month of the claim's volume type in the cluster's region over the window; null when the bill charged nothing for that type there. Never a list price */
|
|
36
|
+
bill_rate?: (LevelFour.ClaimBillRate | null) | undefined;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace VolumeItem {
|
|
39
|
+
const UseUnknownReason: {
|
|
40
|
+
readonly NotMounted: "not_mounted";
|
|
41
|
+
readonly NoReading: "no_reading";
|
|
42
|
+
};
|
|
43
|
+
type UseUnknownReason = (typeof UseUnknownReason)[keyof typeof UseUnknownReason];
|
|
44
|
+
const CostUnknownReason: {
|
|
45
|
+
readonly NotOnBill: "not_on_bill";
|
|
46
|
+
readonly NoBill: "no_bill";
|
|
47
|
+
};
|
|
48
|
+
type CostUnknownReason = (typeof CostUnknownReason)[keyof typeof CostUnknownReason];
|
|
27
49
|
}
|
|
@@ -13,8 +13,11 @@ export interface VolumeItem {
|
|
|
13
13
|
requested_bytes?: (number | null) | undefined;
|
|
14
14
|
/** What its volume provides */
|
|
15
15
|
capacity_bytes?: (number | null) | undefined;
|
|
16
|
+
/** What the kubelet read; null while its use is unknown */
|
|
16
17
|
used_bytes?: (number | null) | undefined;
|
|
17
|
-
/**
|
|
18
|
+
/** Why used_bytes is null: not_mounted when no pod mounts the claim, so the kubelet reads nothing of it, no_reading when a pod mounts it and the kubelet sent no reading. Unknown use is never 0 */
|
|
19
|
+
use_unknown_reason?: (VolumeItem.UseUnknownReason | null) | undefined;
|
|
20
|
+
/** (capacity - used) / capacity; null while its use is unknown */
|
|
18
21
|
over_provisioned_pct?: (number | null) | undefined;
|
|
19
22
|
mounted_by: LevelFour.WorkloadRef[];
|
|
20
23
|
/** Bound, yet no workload mounts it */
|
|
@@ -23,5 +26,24 @@ export interface VolumeItem {
|
|
|
23
26
|
csi_driver?: (string | null) | undefined;
|
|
24
27
|
volume_handle?: (string | null) | undefined;
|
|
25
28
|
created_at?: (string | null) | undefined;
|
|
29
|
+
/** What the bill charged its volume over the window, every line naming the volume handle, whether or not the bill has priced the cluster's nodes yet */
|
|
26
30
|
period_cost?: (number | null) | undefined;
|
|
31
|
+
/** Why period_cost is null: not_on_bill when the bill of the cluster's account arrives over the window and no line of it names the volume, no_bill when no bill for that account arrives (none connected, not there yet, or a cloud whose bill this does not read for volumes) */
|
|
32
|
+
cost_unknown_reason?: (VolumeItem.CostUnknownReason | null) | undefined;
|
|
33
|
+
/** While period_cost is null, the last day any bill line named the volume; null if none ever */
|
|
34
|
+
last_billed_on?: (string | null) | undefined;
|
|
35
|
+
/** While period_cost is null, what the tenant's own bill charged a GiB-month of the claim's volume type in the cluster's region over the window; null when the bill charged nothing for that type there. Never a list price */
|
|
36
|
+
bill_rate?: (LevelFour.ClaimBillRate | null) | undefined;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace VolumeItem {
|
|
39
|
+
const UseUnknownReason: {
|
|
40
|
+
readonly NotMounted: "not_mounted";
|
|
41
|
+
readonly NoReading: "no_reading";
|
|
42
|
+
};
|
|
43
|
+
type UseUnknownReason = (typeof UseUnknownReason)[keyof typeof UseUnknownReason];
|
|
44
|
+
const CostUnknownReason: {
|
|
45
|
+
readonly NotOnBill: "not_on_bill";
|
|
46
|
+
readonly NoBill: "no_bill";
|
|
47
|
+
};
|
|
48
|
+
type CostUnknownReason = (typeof CostUnknownReason)[keyof typeof CostUnknownReason];
|
|
27
49
|
}
|
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -13,5 +17,23 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
17
|
};
|
|
14
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
19
|
var VolumeItem_exports = {};
|
|
20
|
+
__export(VolumeItem_exports, {
|
|
21
|
+
VolumeItem: () => VolumeItem
|
|
22
|
+
});
|
|
16
23
|
module.exports = __toCommonJS(VolumeItem_exports);
|
|
24
|
+
var VolumeItem;
|
|
25
|
+
((VolumeItem2) => {
|
|
26
|
+
VolumeItem2.UseUnknownReason = {
|
|
27
|
+
NotMounted: "not_mounted",
|
|
28
|
+
NoReading: "no_reading"
|
|
29
|
+
};
|
|
30
|
+
VolumeItem2.CostUnknownReason = {
|
|
31
|
+
NotOnBill: "not_on_bill",
|
|
32
|
+
NoBill: "no_bill"
|
|
33
|
+
};
|
|
34
|
+
})(VolumeItem || (VolumeItem = {}));
|
|
35
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
+
0 && (module.exports = {
|
|
37
|
+
VolumeItem
|
|
38
|
+
});
|
|
17
39
|
//# sourceMappingURL=VolumeItem.js.map
|
|
@@ -1 +1,15 @@
|
|
|
1
|
+
var VolumeItem;
|
|
2
|
+
((VolumeItem2) => {
|
|
3
|
+
VolumeItem2.UseUnknownReason = {
|
|
4
|
+
NotMounted: "not_mounted",
|
|
5
|
+
NoReading: "no_reading"
|
|
6
|
+
};
|
|
7
|
+
VolumeItem2.CostUnknownReason = {
|
|
8
|
+
NotOnBill: "not_on_bill",
|
|
9
|
+
NoBill: "no_bill"
|
|
10
|
+
};
|
|
11
|
+
})(VolumeItem || (VolumeItem = {}));
|
|
12
|
+
export {
|
|
13
|
+
VolumeItem
|
|
14
|
+
};
|
|
1
15
|
//# sourceMappingURL=VolumeItem.mjs.map
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
export interface Waste {
|
|
2
|
-
/** Core-hours requested and not used, summed hourly */
|
|
2
|
+
/** Core-hours requested and not used, summed hourly over every hour the agent watched in the window, today's included */
|
|
3
3
|
cpu_hours?: (number | null) | undefined;
|
|
4
4
|
memory_gib_hours?: (number | null) | undefined;
|
|
5
|
-
/** cpu_cost
|
|
5
|
+
/** The core-hours wasted on the days the bill priced, which cpu_cost prices: below cpu_hours while the window holds a day it has not priced yet, such as today; null while it priced none */
|
|
6
|
+
cpu_hours_priced?: (number | null) | undefined;
|
|
7
|
+
/** The GiB-hours wasted on the days the bill priced, which memory_cost prices */
|
|
8
|
+
memory_gib_hours_priced?: (number | null) | undefined;
|
|
9
|
+
/** cpu_cost + memory_cost, over the days the bill priced, so a day it has not priced yet adds hours and no cost; GPU use is not measured, so never waste */
|
|
6
10
|
cost?: (number | null) | undefined;
|
|
7
11
|
cpu_cost?: (number | null) | undefined;
|
|
8
12
|
memory_cost?: (number | null) | undefined;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
export interface Waste {
|
|
2
|
-
/** Core-hours requested and not used, summed hourly */
|
|
2
|
+
/** Core-hours requested and not used, summed hourly over every hour the agent watched in the window, today's included */
|
|
3
3
|
cpu_hours?: (number | null) | undefined;
|
|
4
4
|
memory_gib_hours?: (number | null) | undefined;
|
|
5
|
-
/** cpu_cost
|
|
5
|
+
/** The core-hours wasted on the days the bill priced, which cpu_cost prices: below cpu_hours while the window holds a day it has not priced yet, such as today; null while it priced none */
|
|
6
|
+
cpu_hours_priced?: (number | null) | undefined;
|
|
7
|
+
/** The GiB-hours wasted on the days the bill priced, which memory_cost prices */
|
|
8
|
+
memory_gib_hours_priced?: (number | null) | undefined;
|
|
9
|
+
/** cpu_cost + memory_cost, over the days the bill priced, so a day it has not priced yet adds hours and no cost; GPU use is not measured, so never waste */
|
|
6
10
|
cost?: (number | null) | undefined;
|
|
7
11
|
cpu_cost?: (number | null) | undefined;
|
|
8
12
|
memory_cost?: (number | null) | undefined;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export interface WasteDay {
|
|
2
2
|
day: string;
|
|
3
|
+
/** Every hour the agent watched that day, whether or not the worker has priced it */
|
|
3
4
|
cpu_hours?: (number | null) | undefined;
|
|
4
5
|
memory_gib_hours?: (number | null) | undefined;
|
|
6
|
+
/** Null until the worker prices the day, which it does once it closes */
|
|
5
7
|
cost?: (number | null) | undefined;
|
|
6
8
|
cpu_cost?: (number | null) | undefined;
|
|
7
9
|
memory_cost?: (number | null) | undefined;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export interface WasteDay {
|
|
2
2
|
day: string;
|
|
3
|
+
/** Every hour the agent watched that day, whether or not the worker has priced it */
|
|
3
4
|
cpu_hours?: (number | null) | undefined;
|
|
4
5
|
memory_gib_hours?: (number | null) | undefined;
|
|
6
|
+
/** Null until the worker prices the day, which it does once it closes */
|
|
5
7
|
cost?: (number | null) | undefined;
|
|
6
8
|
cpu_cost?: (number | null) | undefined;
|
|
7
9
|
memory_cost?: (number | null) | undefined;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export interface WasteTotal {
|
|
2
|
-
/** Unit-hours requested and not used */
|
|
2
|
+
/** Unit-hours requested and not used, over every hour the agent watched in the window */
|
|
3
3
|
hours?: (number | null) | undefined;
|
|
4
|
-
/**
|
|
4
|
+
/** The unit-hours wasted on the days cost covers, which cost prices: below hours while the window holds a day the worker has not priced yet; storage's equal hours once a GiB-hour of its claims has a price; null while nothing is priced */
|
|
5
|
+
hours_priced?: (number | null) | undefined;
|
|
6
|
+
/** As the worker priced CPU and memory waste, over the days it priced: waste_days says which, a day it has not priced holding hours and a null cost; storage's at its provisioned unit cost */
|
|
5
7
|
cost?: (number | null) | undefined;
|
|
6
8
|
/** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
|
|
7
9
|
cost_net?: (number | null) | undefined;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export interface WasteTotal {
|
|
2
|
-
/** Unit-hours requested and not used */
|
|
2
|
+
/** Unit-hours requested and not used, over every hour the agent watched in the window */
|
|
3
3
|
hours?: (number | null) | undefined;
|
|
4
|
-
/**
|
|
4
|
+
/** The unit-hours wasted on the days cost covers, which cost prices: below hours while the window holds a day the worker has not priced yet; storage's equal hours once a GiB-hour of its claims has a price; null while nothing is priced */
|
|
5
|
+
hours_priced?: (number | null) | undefined;
|
|
6
|
+
/** As the worker priced CPU and memory waste, over the days it priced: waste_days says which, a day it has not priced holding hours and a null cost; storage's at its provisioned unit cost */
|
|
5
7
|
cost?: (number | null) | undefined;
|
|
6
8
|
/** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
|
|
7
9
|
cost_net?: (number | null) | undefined;
|
|
@@ -5,7 +5,11 @@ export interface WorkloadDay {
|
|
|
5
5
|
/** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
|
|
6
6
|
cost_net?: (number | null) | undefined;
|
|
7
7
|
by_purchase_type: LevelFour.PurchaseTypeCosts;
|
|
8
|
+
/** Pods running on average over the seconds the agent watched in the hours they ran that day */
|
|
8
9
|
pods_avg?: (number | null) | undefined;
|
|
10
|
+
/** The most pods running at once that day; null from an agent before 0.6.2 */
|
|
11
|
+
pods_max?: (number | null) | undefined;
|
|
12
|
+
/** Every hour the agent watched that day, whether or not the bill has priced it */
|
|
9
13
|
cpu_requested_hours?: (number | null) | undefined;
|
|
10
14
|
cpu_used_hours?: (number | null) | undefined;
|
|
11
15
|
memory_requested_gib_hours?: (number | null) | undefined;
|
|
@@ -23,7 +27,10 @@ export interface WorkloadDay {
|
|
|
23
27
|
cpu_waste_cost_net?: (number | null) | undefined;
|
|
24
28
|
/** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
|
|
25
29
|
memory_waste_cost_net?: (number | null) | undefined;
|
|
30
|
+
/** Pods the kubelet evicted for node pressure */
|
|
26
31
|
evictions?: (number | null) | undefined;
|
|
32
|
+
/** At most the pods moved off a node that a Spot interruption, an instance event or a Karpenter disruption (consolidation, drift, expiry) removed. They leave through the Eviction API, so evictions does not count them. Per removal, each workload counts the most of its pods that ran on the node at once in the hour the removal began, a pod that left the node earlier in that hour included. DaemonSet and static pods go with their node and are not counted, nor is a removal that began while the agent was not watching. A day is measured from agent 0.6.2 on, when every watched hour a removal's pods are read from carries the pods' peaks. Null on a day its cluster did not measure */
|
|
33
|
+
drained_pods?: (number | null) | undefined;
|
|
27
34
|
pending_seconds?: (number | null) | undefined;
|
|
28
35
|
ephemeral_volume_max_bytes?: (number | null) | undefined;
|
|
29
36
|
}
|
|
@@ -5,7 +5,11 @@ export interface WorkloadDay {
|
|
|
5
5
|
/** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
|
|
6
6
|
cost_net?: (number | null) | undefined;
|
|
7
7
|
by_purchase_type: LevelFour.PurchaseTypeCosts;
|
|
8
|
+
/** Pods running on average over the seconds the agent watched in the hours they ran that day */
|
|
8
9
|
pods_avg?: (number | null) | undefined;
|
|
10
|
+
/** The most pods running at once that day; null from an agent before 0.6.2 */
|
|
11
|
+
pods_max?: (number | null) | undefined;
|
|
12
|
+
/** Every hour the agent watched that day, whether or not the bill has priced it */
|
|
9
13
|
cpu_requested_hours?: (number | null) | undefined;
|
|
10
14
|
cpu_used_hours?: (number | null) | undefined;
|
|
11
15
|
memory_requested_gib_hours?: (number | null) | undefined;
|
|
@@ -23,7 +27,10 @@ export interface WorkloadDay {
|
|
|
23
27
|
cpu_waste_cost_net?: (number | null) | undefined;
|
|
24
28
|
/** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
|
|
25
29
|
memory_waste_cost_net?: (number | null) | undefined;
|
|
30
|
+
/** Pods the kubelet evicted for node pressure */
|
|
26
31
|
evictions?: (number | null) | undefined;
|
|
32
|
+
/** At most the pods moved off a node that a Spot interruption, an instance event or a Karpenter disruption (consolidation, drift, expiry) removed. They leave through the Eviction API, so evictions does not count them. Per removal, each workload counts the most of its pods that ran on the node at once in the hour the removal began, a pod that left the node earlier in that hour included. DaemonSet and static pods go with their node and are not counted, nor is a removal that began while the agent was not watching. A day is measured from agent 0.6.2 on, when every watched hour a removal's pods are read from carries the pods' peaks. Null on a day its cluster did not measure */
|
|
33
|
+
drained_pods?: (number | null) | undefined;
|
|
27
34
|
pending_seconds?: (number | null) | undefined;
|
|
28
35
|
ephemeral_volume_max_bytes?: (number | null) | undefined;
|
|
29
36
|
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type * as LevelFour from "../index.mjs";
|
|
2
2
|
export interface WorkloadDetail {
|
|
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
|
workload: LevelFour.WorkloadItem;
|
|
4
10
|
/** The stored group, serving.knative.dev/v1 for a KNative Service, else derived from the kind */
|
|
5
11
|
api_version?: (string | null) | undefined;
|
|
@@ -31,4 +37,6 @@ export interface WorkloadDetail {
|
|
|
31
37
|
events: LevelFour.WorkloadEvent[];
|
|
32
38
|
/** Every recommendation published for this workload, newest first; never an unreviewed candidate */
|
|
33
39
|
recommendations: LevelFour.PublishedRecommendation[];
|
|
40
|
+
/** What shows each tool in workload.sized_by sizes it, per container and request */
|
|
41
|
+
sizing?: LevelFour.SizingEvidence[] | undefined;
|
|
34
42
|
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type * as LevelFour from "../index.js";
|
|
2
2
|
export interface WorkloadDetail {
|
|
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
|
workload: LevelFour.WorkloadItem;
|
|
4
10
|
/** The stored group, serving.knative.dev/v1 for a KNative Service, else derived from the kind */
|
|
5
11
|
api_version?: (string | null) | undefined;
|
|
@@ -31,4 +37,6 @@ export interface WorkloadDetail {
|
|
|
31
37
|
events: LevelFour.WorkloadEvent[];
|
|
32
38
|
/** Every recommendation published for this workload, newest first; never an unreviewed candidate */
|
|
33
39
|
recommendations: LevelFour.PublishedRecommendation[];
|
|
40
|
+
/** What shows each tool in workload.sized_by sizes it, per container and request */
|
|
41
|
+
sizing?: LevelFour.SizingEvidence[] | undefined;
|
|
34
42
|
}
|
|
@@ -4,4 +4,8 @@ export interface WorkloadFacets {
|
|
|
4
4
|
kind: LevelFour.FacetCount[];
|
|
5
5
|
/** Rows per value over the rows every other filter keeps, so a chip reads what choosing it gives */
|
|
6
6
|
indicator: LevelFour.FacetCount[];
|
|
7
|
+
/** Current workloads per risk, as the risk filter keeps them: an ephemeral one only with include_ephemeral */
|
|
8
|
+
risk?: LevelFour.FacetCount[] | undefined;
|
|
9
|
+
/** current for a workload still in the cluster, removed for one that left it during the window */
|
|
10
|
+
state?: LevelFour.FacetCount[] | undefined;
|
|
7
11
|
}
|
|
@@ -4,4 +4,8 @@ export interface WorkloadFacets {
|
|
|
4
4
|
kind: LevelFour.FacetCount[];
|
|
5
5
|
/** Rows per value over the rows every other filter keeps, so a chip reads what choosing it gives */
|
|
6
6
|
indicator: LevelFour.FacetCount[];
|
|
7
|
+
/** Current workloads per risk, as the risk filter keeps them: an ephemeral one only with include_ephemeral */
|
|
8
|
+
risk?: LevelFour.FacetCount[] | undefined;
|
|
9
|
+
/** current for a workload still in the cluster, removed for one that left it during the window */
|
|
10
|
+
state?: LevelFour.FacetCount[] | undefined;
|
|
7
11
|
}
|
|
@@ -5,13 +5,23 @@ export interface WorkloadItem {
|
|
|
5
5
|
name: string;
|
|
6
6
|
/** No longer in the cluster, listed for its cost in the window */
|
|
7
7
|
removed?: boolean | undefined;
|
|
8
|
+
/** A pull-request environment, which lives a few days: a label channel, or one ending in /channel, valued pr-<number>. The counts of workloads at risk leave it out unless the request passes include_ephemeral */
|
|
9
|
+
ephemeral?: boolean | undefined;
|
|
8
10
|
replicas: number;
|
|
9
11
|
ready_replicas: number;
|
|
10
12
|
container_count: number;
|
|
13
|
+
/** The CPU requests the pods hold, summed over containers */
|
|
11
14
|
cpu_request_milli?: (number | null) | undefined;
|
|
15
|
+
/** The CPU limits the pods hold, summed over containers */
|
|
12
16
|
cpu_limit_milli?: (number | null) | undefined;
|
|
17
|
+
/** The memory requests the pods hold, summed over containers */
|
|
13
18
|
memory_request_bytes?: (number | null) | undefined;
|
|
19
|
+
/** The memory limits the pods hold, summed over containers */
|
|
14
20
|
memory_limit_bytes?: (number | null) | undefined;
|
|
21
|
+
/** Who set what the pods hold when the template did not: limit_range when the namespace's LimitRange defaults filled what the template leaves out, admission when the pods hold anything else (a webhook, or a resize in place). Null when the pods hold the template's values */
|
|
22
|
+
cpu_set_by?: (WorkloadItem.CpuSetBy | null) | undefined;
|
|
23
|
+
/** Who set what the pods hold when the template did not: limit_range when the namespace's LimitRange defaults filled what the template leaves out, admission when the pods hold anything else (a webhook, or a resize in place). Null when the pods hold the template's values */
|
|
24
|
+
memory_set_by?: (WorkloadItem.MemorySetBy | null) | undefined;
|
|
15
25
|
ephemeral_request_bytes?: (number | null) | undefined;
|
|
16
26
|
gpu_request?: (number | null) | undefined;
|
|
17
27
|
cpu_p95_milli?: (number | null) | undefined;
|
|
@@ -30,6 +40,8 @@ export interface WorkloadItem {
|
|
|
30
40
|
source: LevelFour.WorkloadSource;
|
|
31
41
|
/** 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 */
|
|
32
42
|
cost?: (number | null) | undefined;
|
|
43
|
+
/** 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 */
|
|
44
|
+
cost_unknown_reason?: (WorkloadItem.CostUnknownReason | null) | undefined;
|
|
33
45
|
/** Against the previous window of equal length, before any idle is shared */
|
|
34
46
|
cost_change_pct?: (number | null) | undefined;
|
|
35
47
|
cpu_cost?: (number | null) | undefined;
|
|
@@ -73,8 +85,20 @@ export interface WorkloadItem {
|
|
|
73
85
|
api_version?: (string | null) | undefined;
|
|
74
86
|
/** A KNative Service's current revisions; null otherwise */
|
|
75
87
|
revision_count?: (number | null) | undefined;
|
|
88
|
+
/** Who sizes its containers besides its template: vpa, a VPA that writes their requests; addon_resizer, an addon-resizer container beside them; admission, another tool that set what its pods hold as they were admitted or in place (a container's cpu_set_by or memory_set_by admission that neither a VPA nor LevelFour's own automation explains). Empty when only the template does, and for a workload gone from the cluster. Automation never acts in a namespace addon-resizer or another tool at admission sizes */
|
|
89
|
+
sized_by?: WorkloadItem.SizedBy.Item[] | undefined;
|
|
76
90
|
}
|
|
77
91
|
export declare namespace WorkloadItem {
|
|
92
|
+
const CpuSetBy: {
|
|
93
|
+
readonly LimitRange: "limit_range";
|
|
94
|
+
readonly Admission: "admission";
|
|
95
|
+
};
|
|
96
|
+
type CpuSetBy = (typeof CpuSetBy)[keyof typeof CpuSetBy];
|
|
97
|
+
const MemorySetBy: {
|
|
98
|
+
readonly LimitRange: "limit_range";
|
|
99
|
+
readonly Admission: "admission";
|
|
100
|
+
};
|
|
101
|
+
type MemorySetBy = (typeof MemorySetBy)[keyof typeof MemorySetBy];
|
|
78
102
|
/** The worst severity among its indicators: high, medium or low; none when only info indicators or none are raised. The risk filter keeps current workloads only */
|
|
79
103
|
const Risk: {
|
|
80
104
|
readonly High: "high";
|
|
@@ -83,10 +107,24 @@ export declare namespace WorkloadItem {
|
|
|
83
107
|
readonly None: "none";
|
|
84
108
|
};
|
|
85
109
|
type Risk = (typeof Risk)[keyof typeof Risk];
|
|
110
|
+
const CostUnknownReason: {
|
|
111
|
+
readonly ComputeUnpriced: "compute_unpriced";
|
|
112
|
+
readonly NothingPriced: "nothing_priced";
|
|
113
|
+
};
|
|
114
|
+
type CostUnknownReason = (typeof CostUnknownReason)[keyof typeof CostUnknownReason];
|
|
86
115
|
const Recommendations: {
|
|
87
116
|
readonly Enabled: "enabled";
|
|
88
117
|
readonly Disabled: "disabled";
|
|
89
118
|
readonly System: "system";
|
|
90
119
|
};
|
|
91
120
|
type Recommendations = (typeof Recommendations)[keyof typeof Recommendations];
|
|
121
|
+
type SizedBy = SizedBy.Item[];
|
|
122
|
+
namespace SizedBy {
|
|
123
|
+
const Item: {
|
|
124
|
+
readonly Vpa: "vpa";
|
|
125
|
+
readonly AddonResizer: "addon_resizer";
|
|
126
|
+
readonly Admission: "admission";
|
|
127
|
+
};
|
|
128
|
+
type Item = (typeof Item)[keyof typeof Item];
|
|
129
|
+
}
|
|
92
130
|
}
|
|
@@ -5,13 +5,23 @@ export interface WorkloadItem {
|
|
|
5
5
|
name: string;
|
|
6
6
|
/** No longer in the cluster, listed for its cost in the window */
|
|
7
7
|
removed?: boolean | undefined;
|
|
8
|
+
/** A pull-request environment, which lives a few days: a label channel, or one ending in /channel, valued pr-<number>. The counts of workloads at risk leave it out unless the request passes include_ephemeral */
|
|
9
|
+
ephemeral?: boolean | undefined;
|
|
8
10
|
replicas: number;
|
|
9
11
|
ready_replicas: number;
|
|
10
12
|
container_count: number;
|
|
13
|
+
/** The CPU requests the pods hold, summed over containers */
|
|
11
14
|
cpu_request_milli?: (number | null) | undefined;
|
|
15
|
+
/** The CPU limits the pods hold, summed over containers */
|
|
12
16
|
cpu_limit_milli?: (number | null) | undefined;
|
|
17
|
+
/** The memory requests the pods hold, summed over containers */
|
|
13
18
|
memory_request_bytes?: (number | null) | undefined;
|
|
19
|
+
/** The memory limits the pods hold, summed over containers */
|
|
14
20
|
memory_limit_bytes?: (number | null) | undefined;
|
|
21
|
+
/** Who set what the pods hold when the template did not: limit_range when the namespace's LimitRange defaults filled what the template leaves out, admission when the pods hold anything else (a webhook, or a resize in place). Null when the pods hold the template's values */
|
|
22
|
+
cpu_set_by?: (WorkloadItem.CpuSetBy | null) | undefined;
|
|
23
|
+
/** Who set what the pods hold when the template did not: limit_range when the namespace's LimitRange defaults filled what the template leaves out, admission when the pods hold anything else (a webhook, or a resize in place). Null when the pods hold the template's values */
|
|
24
|
+
memory_set_by?: (WorkloadItem.MemorySetBy | null) | undefined;
|
|
15
25
|
ephemeral_request_bytes?: (number | null) | undefined;
|
|
16
26
|
gpu_request?: (number | null) | undefined;
|
|
17
27
|
cpu_p95_milli?: (number | null) | undefined;
|
|
@@ -30,6 +40,8 @@ export interface WorkloadItem {
|
|
|
30
40
|
source: LevelFour.WorkloadSource;
|
|
31
41
|
/** 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 */
|
|
32
42
|
cost?: (number | null) | undefined;
|
|
43
|
+
/** 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 */
|
|
44
|
+
cost_unknown_reason?: (WorkloadItem.CostUnknownReason | null) | undefined;
|
|
33
45
|
/** Against the previous window of equal length, before any idle is shared */
|
|
34
46
|
cost_change_pct?: (number | null) | undefined;
|
|
35
47
|
cpu_cost?: (number | null) | undefined;
|
|
@@ -73,8 +85,20 @@ export interface WorkloadItem {
|
|
|
73
85
|
api_version?: (string | null) | undefined;
|
|
74
86
|
/** A KNative Service's current revisions; null otherwise */
|
|
75
87
|
revision_count?: (number | null) | undefined;
|
|
88
|
+
/** Who sizes its containers besides its template: vpa, a VPA that writes their requests; addon_resizer, an addon-resizer container beside them; admission, another tool that set what its pods hold as they were admitted or in place (a container's cpu_set_by or memory_set_by admission that neither a VPA nor LevelFour's own automation explains). Empty when only the template does, and for a workload gone from the cluster. Automation never acts in a namespace addon-resizer or another tool at admission sizes */
|
|
89
|
+
sized_by?: WorkloadItem.SizedBy.Item[] | undefined;
|
|
76
90
|
}
|
|
77
91
|
export declare namespace WorkloadItem {
|
|
92
|
+
const CpuSetBy: {
|
|
93
|
+
readonly LimitRange: "limit_range";
|
|
94
|
+
readonly Admission: "admission";
|
|
95
|
+
};
|
|
96
|
+
type CpuSetBy = (typeof CpuSetBy)[keyof typeof CpuSetBy];
|
|
97
|
+
const MemorySetBy: {
|
|
98
|
+
readonly LimitRange: "limit_range";
|
|
99
|
+
readonly Admission: "admission";
|
|
100
|
+
};
|
|
101
|
+
type MemorySetBy = (typeof MemorySetBy)[keyof typeof MemorySetBy];
|
|
78
102
|
/** The worst severity among its indicators: high, medium or low; none when only info indicators or none are raised. The risk filter keeps current workloads only */
|
|
79
103
|
const Risk: {
|
|
80
104
|
readonly High: "high";
|
|
@@ -83,10 +107,24 @@ export declare namespace WorkloadItem {
|
|
|
83
107
|
readonly None: "none";
|
|
84
108
|
};
|
|
85
109
|
type Risk = (typeof Risk)[keyof typeof Risk];
|
|
110
|
+
const CostUnknownReason: {
|
|
111
|
+
readonly ComputeUnpriced: "compute_unpriced";
|
|
112
|
+
readonly NothingPriced: "nothing_priced";
|
|
113
|
+
};
|
|
114
|
+
type CostUnknownReason = (typeof CostUnknownReason)[keyof typeof CostUnknownReason];
|
|
86
115
|
const Recommendations: {
|
|
87
116
|
readonly Enabled: "enabled";
|
|
88
117
|
readonly Disabled: "disabled";
|
|
89
118
|
readonly System: "system";
|
|
90
119
|
};
|
|
91
120
|
type Recommendations = (typeof Recommendations)[keyof typeof Recommendations];
|
|
121
|
+
type SizedBy = SizedBy.Item[];
|
|
122
|
+
namespace SizedBy {
|
|
123
|
+
const Item: {
|
|
124
|
+
readonly Vpa: "vpa";
|
|
125
|
+
readonly AddonResizer: "addon_resizer";
|
|
126
|
+
readonly Admission: "admission";
|
|
127
|
+
};
|
|
128
|
+
type Item = (typeof Item)[keyof typeof Item];
|
|
129
|
+
}
|
|
92
130
|
}
|