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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface TakeoverBlocker {
|
|
2
|
+
/** Null for what holds the whole namespace */
|
|
3
|
+
workload_kind?: (string | null) | undefined;
|
|
4
|
+
workload_name?: (string | null) | undefined;
|
|
5
|
+
container?: (string | null) | undefined;
|
|
6
|
+
/** For the whole namespace: component_too_old (no automation component of 0.8.0 or later, so nothing is served), labelled_off (labelled levelfour.ai/automation=off), not_permitted (outside the component's RBAC), other_tool_label (it still carries the other tool's label, so it does not freeze, and once frozen the automation stays out), label_not_reported (until the freeze: the component reports no label, so it never freezes), unvouched (until the freeze: the component does not report which guard bases it vouched for, so it never freezes). For one container: unvouched (the component could not vouch for its guard basis, since most current pods do not hold it, so it does not freeze); kind_not_servable (not a Deployment's or a StatefulSet's, which the webhook cannot serve, so new pods get the template); no_baseline (no pod ran in the last 14 days, so new pods get the template, and the baselines cannot freeze); other_tool (until the freeze, its pods held a value only another tool explains after the mark) */
|
|
7
|
+
reason: TakeoverBlocker.Reason;
|
|
8
|
+
/** For other_tool, when that value was first seen after the mark */
|
|
9
|
+
since?: (string | null) | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace TakeoverBlocker {
|
|
12
|
+
/** For the whole namespace: component_too_old (no automation component of 0.8.0 or later, so nothing is served), labelled_off (labelled levelfour.ai/automation=off), not_permitted (outside the component's RBAC), other_tool_label (it still carries the other tool's label, so it does not freeze, and once frozen the automation stays out), label_not_reported (until the freeze: the component reports no label, so it never freezes), unvouched (until the freeze: the component does not report which guard bases it vouched for, so it never freezes). For one container: unvouched (the component could not vouch for its guard basis, since most current pods do not hold it, so it does not freeze); kind_not_servable (not a Deployment's or a StatefulSet's, which the webhook cannot serve, so new pods get the template); no_baseline (no pod ran in the last 14 days, so new pods get the template, and the baselines cannot freeze); other_tool (until the freeze, its pods held a value only another tool explains after the mark) */
|
|
13
|
+
const Reason: {
|
|
14
|
+
readonly ComponentTooOld: "component_too_old";
|
|
15
|
+
readonly LabelledOff: "labelled_off";
|
|
16
|
+
readonly NotPermitted: "not_permitted";
|
|
17
|
+
readonly OtherToolLabel: "other_tool_label";
|
|
18
|
+
readonly LabelNotReported: "label_not_reported";
|
|
19
|
+
readonly Unvouched: "unvouched";
|
|
20
|
+
readonly KindNotServable: "kind_not_servable";
|
|
21
|
+
readonly NoBaseline: "no_baseline";
|
|
22
|
+
readonly OtherTool: "other_tool";
|
|
23
|
+
};
|
|
24
|
+
type Reason = (typeof Reason)[keyof typeof Reason];
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface TakeoverBlocker {
|
|
2
|
+
/** Null for what holds the whole namespace */
|
|
3
|
+
workload_kind?: (string | null) | undefined;
|
|
4
|
+
workload_name?: (string | null) | undefined;
|
|
5
|
+
container?: (string | null) | undefined;
|
|
6
|
+
/** For the whole namespace: component_too_old (no automation component of 0.8.0 or later, so nothing is served), labelled_off (labelled levelfour.ai/automation=off), not_permitted (outside the component's RBAC), other_tool_label (it still carries the other tool's label, so it does not freeze, and once frozen the automation stays out), label_not_reported (until the freeze: the component reports no label, so it never freezes), unvouched (until the freeze: the component does not report which guard bases it vouched for, so it never freezes). For one container: unvouched (the component could not vouch for its guard basis, since most current pods do not hold it, so it does not freeze); kind_not_servable (not a Deployment's or a StatefulSet's, which the webhook cannot serve, so new pods get the template); no_baseline (no pod ran in the last 14 days, so new pods get the template, and the baselines cannot freeze); other_tool (until the freeze, its pods held a value only another tool explains after the mark) */
|
|
7
|
+
reason: TakeoverBlocker.Reason;
|
|
8
|
+
/** For other_tool, when that value was first seen after the mark */
|
|
9
|
+
since?: (string | null) | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace TakeoverBlocker {
|
|
12
|
+
/** For the whole namespace: component_too_old (no automation component of 0.8.0 or later, so nothing is served), labelled_off (labelled levelfour.ai/automation=off), not_permitted (outside the component's RBAC), other_tool_label (it still carries the other tool's label, so it does not freeze, and once frozen the automation stays out), label_not_reported (until the freeze: the component reports no label, so it never freezes), unvouched (until the freeze: the component does not report which guard bases it vouched for, so it never freezes). For one container: unvouched (the component could not vouch for its guard basis, since most current pods do not hold it, so it does not freeze); kind_not_servable (not a Deployment's or a StatefulSet's, which the webhook cannot serve, so new pods get the template); no_baseline (no pod ran in the last 14 days, so new pods get the template, and the baselines cannot freeze); other_tool (until the freeze, its pods held a value only another tool explains after the mark) */
|
|
13
|
+
const Reason: {
|
|
14
|
+
readonly ComponentTooOld: "component_too_old";
|
|
15
|
+
readonly LabelledOff: "labelled_off";
|
|
16
|
+
readonly NotPermitted: "not_permitted";
|
|
17
|
+
readonly OtherToolLabel: "other_tool_label";
|
|
18
|
+
readonly LabelNotReported: "label_not_reported";
|
|
19
|
+
readonly Unvouched: "unvouched";
|
|
20
|
+
readonly KindNotServable: "kind_not_servable";
|
|
21
|
+
readonly NoBaseline: "no_baseline";
|
|
22
|
+
readonly OtherTool: "other_tool";
|
|
23
|
+
};
|
|
24
|
+
type Reason = (typeof Reason)[keyof typeof Reason];
|
|
25
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 TakeoverBlocker_exports = {};
|
|
20
|
+
__export(TakeoverBlocker_exports, {
|
|
21
|
+
TakeoverBlocker: () => TakeoverBlocker
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(TakeoverBlocker_exports);
|
|
24
|
+
var TakeoverBlocker;
|
|
25
|
+
((TakeoverBlocker2) => {
|
|
26
|
+
TakeoverBlocker2.Reason = {
|
|
27
|
+
ComponentTooOld: "component_too_old",
|
|
28
|
+
LabelledOff: "labelled_off",
|
|
29
|
+
NotPermitted: "not_permitted",
|
|
30
|
+
OtherToolLabel: "other_tool_label",
|
|
31
|
+
LabelNotReported: "label_not_reported",
|
|
32
|
+
Unvouched: "unvouched",
|
|
33
|
+
KindNotServable: "kind_not_servable",
|
|
34
|
+
NoBaseline: "no_baseline",
|
|
35
|
+
OtherTool: "other_tool"
|
|
36
|
+
};
|
|
37
|
+
})(TakeoverBlocker || (TakeoverBlocker = {}));
|
|
38
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
+
0 && (module.exports = {
|
|
40
|
+
TakeoverBlocker
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=TakeoverBlocker.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var TakeoverBlocker;
|
|
2
|
+
((TakeoverBlocker2) => {
|
|
3
|
+
TakeoverBlocker2.Reason = {
|
|
4
|
+
ComponentTooOld: "component_too_old",
|
|
5
|
+
LabelledOff: "labelled_off",
|
|
6
|
+
NotPermitted: "not_permitted",
|
|
7
|
+
OtherToolLabel: "other_tool_label",
|
|
8
|
+
LabelNotReported: "label_not_reported",
|
|
9
|
+
Unvouched: "unvouched",
|
|
10
|
+
KindNotServable: "kind_not_servable",
|
|
11
|
+
NoBaseline: "no_baseline",
|
|
12
|
+
OtherTool: "other_tool"
|
|
13
|
+
};
|
|
14
|
+
})(TakeoverBlocker || (TakeoverBlocker = {}));
|
|
15
|
+
export {
|
|
16
|
+
TakeoverBlocker
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=TakeoverBlocker.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface UnitCosts {
|
|
2
2
|
/** The nodes' cost split, per allocatable unit-hour */
|
|
3
3
|
provisioned?: (number | null) | undefined;
|
|
4
|
-
/** The containers' allocated cost, per requested unit-hour */
|
|
4
|
+
/** The containers' allocated cost, per requested unit-hour of the days the bill priced */
|
|
5
5
|
requested?: (number | null) | undefined;
|
|
6
6
|
/** The containers' allocated cost, per used unit-hour */
|
|
7
7
|
used?: (number | null) | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface UnitCosts {
|
|
2
2
|
/** The nodes' cost split, per allocatable unit-hour */
|
|
3
3
|
provisioned?: (number | null) | undefined;
|
|
4
|
-
/** The containers' allocated cost, per requested unit-hour */
|
|
4
|
+
/** The containers' allocated cost, per requested unit-hour of the days the bill priced */
|
|
5
5
|
requested?: (number | null) | undefined;
|
|
6
6
|
/** The containers' allocated cost, per used unit-hour */
|
|
7
7
|
used?: (number | null) | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as LevelFour from "../index.mjs";
|
|
2
|
+
export interface UsageCoverage {
|
|
3
|
+
/** The nodes the agent counted at its last heartbeat */
|
|
4
|
+
nodes?: (number | null) | undefined;
|
|
5
|
+
/** The nodes whose kubelet the agent could not read usage from at its last heartbeat */
|
|
6
|
+
nodes_without_usage: number;
|
|
7
|
+
/** The kubelet collector's message at that heartbeat: how many nodes failed and why */
|
|
8
|
+
error?: (string | null) | undefined;
|
|
9
|
+
window: LevelFour.UsageCoverageWindow;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as LevelFour from "../index.js";
|
|
2
|
+
export interface UsageCoverage {
|
|
3
|
+
/** The nodes the agent counted at its last heartbeat */
|
|
4
|
+
nodes?: (number | null) | undefined;
|
|
5
|
+
/** The nodes whose kubelet the agent could not read usage from at its last heartbeat */
|
|
6
|
+
nodes_without_usage: number;
|
|
7
|
+
/** The kubelet collector's message at that heartbeat: how many nodes failed and why */
|
|
8
|
+
error?: (string | null) | undefined;
|
|
9
|
+
window: LevelFour.UsageCoverageWindow;
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var UsageCoverage_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(UsageCoverage_exports);
|
|
17
|
+
//# sourceMappingURL=UsageCoverage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=UsageCoverage.mjs.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var UsageCoverageResponse_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(UsageCoverageResponse_exports);
|
|
17
|
+
//# sourceMappingURL=UsageCoverageResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=UsageCoverageResponse.mjs.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface UsageCoverageWindow {
|
|
2
|
+
/** The nodes the agent saw Ready for five minutes or more in an hour of the window */
|
|
3
|
+
nodes: number;
|
|
4
|
+
/** Of them, the nodes with such an hour that carried no usage sample: their pods' requests read as idle in the window's efficiency, used p95 and waste */
|
|
5
|
+
nodes_without_usage: number;
|
|
6
|
+
/** The share of those node-hours, by the seconds each node was up, that carried usage, 0 to 1 */
|
|
7
|
+
measured_share?: (number | null) | undefined;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface UsageCoverageWindow {
|
|
2
|
+
/** The nodes the agent saw Ready for five minutes or more in an hour of the window */
|
|
3
|
+
nodes: number;
|
|
4
|
+
/** Of them, the nodes with such an hour that carried no usage sample: their pods' requests read as idle in the window's efficiency, used p95 and waste */
|
|
5
|
+
nodes_without_usage: number;
|
|
6
|
+
/** The share of those node-hours, by the seconds each node was up, that carried usage, 0 to 1 */
|
|
7
|
+
measured_share?: (number | null) | undefined;
|
|
8
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var UsageCoverageWindow_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(UsageCoverageWindow_exports);
|
|
17
|
+
//# sourceMappingURL=UsageCoverageWindow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=UsageCoverageWindow.mjs.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The provisioned and requested GiB of the claims the kubelet read, averaged as the figures beside them are.
|
|
3
|
+
* Used is out of these: a claim no pod mounts, or one with no reading, has use unknown, neither used nor wasted.
|
|
4
|
+
*/
|
|
5
|
+
export interface UseMeasured {
|
|
6
|
+
/** The fleet and a cluster only */
|
|
7
|
+
provisioned?: (number | null) | undefined;
|
|
8
|
+
requested?: (number | null) | undefined;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The provisioned and requested GiB of the claims the kubelet read, averaged as the figures beside them are.
|
|
3
|
+
* Used is out of these: a claim no pod mounts, or one with no reading, has use unknown, neither used nor wasted.
|
|
4
|
+
*/
|
|
5
|
+
export interface UseMeasured {
|
|
6
|
+
/** The fleet and a cluster only */
|
|
7
|
+
provisioned?: (number | null) | undefined;
|
|
8
|
+
requested?: (number | null) | undefined;
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var UseMeasured_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(UseMeasured_exports);
|
|
17
|
+
//# sourceMappingURL=UseMeasured.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=UseMeasured.mjs.map
|
|
@@ -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 the agent watched in the hours measured covers, from the seconds it watched in each, as the window's hours_watched adds them: an hour watched for 600 seconds counts 0.1667, never more than hours_watched */
|
|
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 the agent watched in the hours measured_scaling covers, as measured_hours counts them */
|
|
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 the agent watched in the hours measured covers, from the seconds it watched in each, as the window's hours_watched adds them: an hour watched for 600 seconds counts 0.1667, never more than hours_watched */
|
|
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 the agent watched in the hours measured_scaling covers, as measured_hours counts them */
|
|
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;
|