levelfour 1.9.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/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/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 +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 +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 +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 +11 -5
- package/dist/api/types/FleetNodePool.d.ts +11 -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/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 +3 -0
- package/dist/api/types/Indicator.d.ts +3 -0
- package/dist/api/types/Indicator.js +3 -0
- package/dist/api/types/Indicator.mjs +3 -0
- package/dist/api/types/IndicatorCount.d.mts +3 -0
- package/dist/api/types/IndicatorCount.d.ts +3 -0
- package/dist/api/types/IndicatorCount.js +3 -0
- package/dist/api/types/IndicatorCount.mjs +3 -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 +11 -5
- package/dist/api/types/NodePoolUsage.d.ts +11 -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/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/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/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 +12 -0
- package/dist/api/types/index.d.ts +12 -0
- package/dist/api/types/index.js +24 -0
- package/dist/api/types/index.mjs +12 -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,20 @@
|
|
|
1
1
|
import type * as LevelFour from "../index.mjs";
|
|
2
2
|
export interface ResourceEfficiency {
|
|
3
|
-
/**
|
|
3
|
+
/** What the scope held at once on average: its unit-seconds over hours_watched, so a cluster watched for part of the window adds that part and the figure is the series' points weighed by their seconds; the fleet and a cluster only */
|
|
4
4
|
provisioned?: (number | null) | undefined;
|
|
5
5
|
requested?: (number | null) | undefined;
|
|
6
6
|
used?: (number | null) | undefined;
|
|
7
|
+
/** Storage only: no_claims when the agent watched the scope in the window and none of its volume claims held storage, so the storage figures are null because there is nothing to measure; null otherwise */
|
|
8
|
+
unknown_reason?: ("no_claims" | null) | undefined;
|
|
9
|
+
/** Storage only: the sizes used is out of; null for CPU and memory */
|
|
10
|
+
use_measured?: (LevelFour.UseMeasured | null) | undefined;
|
|
7
11
|
/** (provisioned - requested) / provisioned */
|
|
8
12
|
overprovisioned_pct?: (number | null) | undefined;
|
|
13
|
+
/** For storage, provisioned alone, at every scope: the claims' bill per provisioned GiB-hour, over the claims the bill priced and the agent reported every hour of that day. The bill charges a volume by its capacity, so requested and used are null */
|
|
9
14
|
unit_cost: LevelFour.UnitCosts;
|
|
10
15
|
/** The same on the net basis */
|
|
11
16
|
unit_cost_net: LevelFour.UnitCosts;
|
|
17
|
+
/** Storage's over the claims the kubelet read, never a claim of unknown use */
|
|
12
18
|
waste: LevelFour.WasteTotal;
|
|
13
19
|
series: LevelFour.EfficiencyPoint[];
|
|
14
20
|
}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import type * as LevelFour from "../index.js";
|
|
2
2
|
export interface ResourceEfficiency {
|
|
3
|
-
/**
|
|
3
|
+
/** What the scope held at once on average: its unit-seconds over hours_watched, so a cluster watched for part of the window adds that part and the figure is the series' points weighed by their seconds; the fleet and a cluster only */
|
|
4
4
|
provisioned?: (number | null) | undefined;
|
|
5
5
|
requested?: (number | null) | undefined;
|
|
6
6
|
used?: (number | null) | undefined;
|
|
7
|
+
/** Storage only: no_claims when the agent watched the scope in the window and none of its volume claims held storage, so the storage figures are null because there is nothing to measure; null otherwise */
|
|
8
|
+
unknown_reason?: ("no_claims" | null) | undefined;
|
|
9
|
+
/** Storage only: the sizes used is out of; null for CPU and memory */
|
|
10
|
+
use_measured?: (LevelFour.UseMeasured | null) | undefined;
|
|
7
11
|
/** (provisioned - requested) / provisioned */
|
|
8
12
|
overprovisioned_pct?: (number | null) | undefined;
|
|
13
|
+
/** For storage, provisioned alone, at every scope: the claims' bill per provisioned GiB-hour, over the claims the bill priced and the agent reported every hour of that day. The bill charges a volume by its capacity, so requested and used are null */
|
|
9
14
|
unit_cost: LevelFour.UnitCosts;
|
|
10
15
|
/** The same on the net basis */
|
|
11
16
|
unit_cost_net: LevelFour.UnitCosts;
|
|
17
|
+
/** Storage's over the claims the kubelet read, never a claim of unknown use */
|
|
12
18
|
waste: LevelFour.WasteTotal;
|
|
13
19
|
series: LevelFour.EfficiencyPoint[];
|
|
14
20
|
}
|
|
@@ -6,19 +6,23 @@ export interface RightsizedContainer {
|
|
|
6
6
|
container: string;
|
|
7
7
|
/** off when a person took the workload out of the namespace's rightsizing */
|
|
8
8
|
mode: RightsizedContainer.Mode;
|
|
9
|
-
/** off where the namespace only raises in place */
|
|
9
|
+
/** off where the namespace only raises in place, or where nothing turned its rightsizing on */
|
|
10
10
|
namespace_mode: RightsizedContainer.NamespaceMode;
|
|
11
|
+
/** True where the API walks the container toward its target, only on paper in a preview namespace: the worker marked the target walked (its workload is opted in to recommendations and in preview or apply), its namespace is in preview or apply or an object decides the workload (Disabled reads as preview), no other tool sizes the namespace and nothing takes it out. A container with no target yet reads true where its namespace or an object would walk it. False where LevelFour only shows the target: the API never walks it, serves it to the webhook or takes a step for it, and phase, next and held_by_settings are null unless excluded_reason says why the loop leaves it. Whether the Savings page opens a candidate for it follows the namespace's opt-in to recommendations, not walked */
|
|
12
|
+
walked: boolean;
|
|
13
|
+
/** Who sizes the container today besides its template: vpa, a VPA that writes its requests; addon_resizer, an addon-resizer container in its pod; admission, another tool that set what its pods hold as they were admitted or in place, which neither a VPA nor LevelFour's own automation explains. Empty when only the template does */
|
|
14
|
+
sized_by?: RightsizedContainer.SizedBy.Item[] | undefined;
|
|
11
15
|
/** Why the loop leaves it alone: workload_off when a person took the workload out, label_off when it carries levelfour.ai/automation=off, job for a Job or CronJob */
|
|
12
16
|
excluded_reason?: (RightsizedContainer.ExcludedReason | null) | undefined;
|
|
13
17
|
/** What the owner's template sets */
|
|
14
18
|
manifest: LevelFour.ContainerResources;
|
|
15
19
|
/** What the pods held for most of the last batch */
|
|
16
20
|
live: LevelFour.ContainerResources;
|
|
17
|
-
/** Where the worker's daily scan wants it */
|
|
21
|
+
/** Where the worker's daily scan wants it. Every workload outside the system namespaces and those a person turned off gets one, walked or not; null while the worker has not sized it */
|
|
18
22
|
target?: (LevelFour.ContainerResources | null) | undefined;
|
|
19
23
|
/** The step the API would take next */
|
|
20
24
|
next?: (LevelFour.ContainerResources | null) | undefined;
|
|
21
|
-
/** Null where the
|
|
25
|
+
/** Null where the loop does not walk it (walked false) and no excluded_reason applies */
|
|
22
26
|
phase?: (RightsizedContainer.Phase | null) | undefined;
|
|
23
27
|
/** Why the target is held where it is */
|
|
24
28
|
held_reason?: (RightsizedContainer.HeldReason | null) | undefined;
|
|
@@ -34,7 +38,7 @@ export interface RightsizedContainer {
|
|
|
34
38
|
computed_at?: (string | null) | undefined;
|
|
35
39
|
/** When the template's resources last changed */
|
|
36
40
|
template_changed_at?: (string | null) | undefined;
|
|
37
|
-
/** What the bill drops a month once it reaches the target; null unless every pool is priced */
|
|
41
|
+
/** What the bill drops a month once it reaches the target; null unless every pool is priced. For a container LevelFour only shows, what it takes off on top of the walked targets and the open candidates, so every container's effects together price sizing every workload; one with an open pull request candidate carries the candidate's effect */
|
|
38
42
|
bill_effect?: (LevelFour.CostPair | null) | undefined;
|
|
39
43
|
/** The same by node pool and resource */
|
|
40
44
|
bill_effects: LevelFour.PoolBillEffect[];
|
|
@@ -58,13 +62,22 @@ export declare namespace RightsizedContainer {
|
|
|
58
62
|
readonly Off: "off";
|
|
59
63
|
};
|
|
60
64
|
type Mode = (typeof Mode)[keyof typeof Mode];
|
|
61
|
-
/** off where the namespace only raises in place */
|
|
65
|
+
/** off where the namespace only raises in place, or where nothing turned its rightsizing on */
|
|
62
66
|
const NamespaceMode: {
|
|
63
67
|
readonly Off: "off";
|
|
64
68
|
readonly Preview: "preview";
|
|
65
69
|
readonly Apply: "apply";
|
|
66
70
|
};
|
|
67
71
|
type NamespaceMode = (typeof NamespaceMode)[keyof typeof NamespaceMode];
|
|
72
|
+
type SizedBy = SizedBy.Item[];
|
|
73
|
+
namespace SizedBy {
|
|
74
|
+
const Item: {
|
|
75
|
+
readonly Vpa: "vpa";
|
|
76
|
+
readonly AddonResizer: "addon_resizer";
|
|
77
|
+
readonly Admission: "admission";
|
|
78
|
+
};
|
|
79
|
+
type Item = (typeof Item)[keyof typeof Item];
|
|
80
|
+
}
|
|
68
81
|
const ExcludedReason: {
|
|
69
82
|
readonly WorkloadOff: "workload_off";
|
|
70
83
|
readonly LabelOff: "label_off";
|
|
@@ -122,6 +135,7 @@ export declare namespace RightsizedContainer {
|
|
|
122
135
|
readonly WeeklyCap: "weekly_cap";
|
|
123
136
|
readonly TooSoon: "too_soon";
|
|
124
137
|
readonly RolloutInProgress: "rollout_in_progress";
|
|
138
|
+
readonly OtherRightsizer: "other_rightsizer";
|
|
125
139
|
};
|
|
126
140
|
type HeldByComponent = (typeof HeldByComponent)[keyof typeof HeldByComponent];
|
|
127
141
|
const UnpricedReason: {
|
|
@@ -6,19 +6,23 @@ export interface RightsizedContainer {
|
|
|
6
6
|
container: string;
|
|
7
7
|
/** off when a person took the workload out of the namespace's rightsizing */
|
|
8
8
|
mode: RightsizedContainer.Mode;
|
|
9
|
-
/** off where the namespace only raises in place */
|
|
9
|
+
/** off where the namespace only raises in place, or where nothing turned its rightsizing on */
|
|
10
10
|
namespace_mode: RightsizedContainer.NamespaceMode;
|
|
11
|
+
/** True where the API walks the container toward its target, only on paper in a preview namespace: the worker marked the target walked (its workload is opted in to recommendations and in preview or apply), its namespace is in preview or apply or an object decides the workload (Disabled reads as preview), no other tool sizes the namespace and nothing takes it out. A container with no target yet reads true where its namespace or an object would walk it. False where LevelFour only shows the target: the API never walks it, serves it to the webhook or takes a step for it, and phase, next and held_by_settings are null unless excluded_reason says why the loop leaves it. Whether the Savings page opens a candidate for it follows the namespace's opt-in to recommendations, not walked */
|
|
12
|
+
walked: boolean;
|
|
13
|
+
/** Who sizes the container today besides its template: vpa, a VPA that writes its requests; addon_resizer, an addon-resizer container in its pod; admission, another tool that set what its pods hold as they were admitted or in place, which neither a VPA nor LevelFour's own automation explains. Empty when only the template does */
|
|
14
|
+
sized_by?: RightsizedContainer.SizedBy.Item[] | undefined;
|
|
11
15
|
/** Why the loop leaves it alone: workload_off when a person took the workload out, label_off when it carries levelfour.ai/automation=off, job for a Job or CronJob */
|
|
12
16
|
excluded_reason?: (RightsizedContainer.ExcludedReason | null) | undefined;
|
|
13
17
|
/** What the owner's template sets */
|
|
14
18
|
manifest: LevelFour.ContainerResources;
|
|
15
19
|
/** What the pods held for most of the last batch */
|
|
16
20
|
live: LevelFour.ContainerResources;
|
|
17
|
-
/** Where the worker's daily scan wants it */
|
|
21
|
+
/** Where the worker's daily scan wants it. Every workload outside the system namespaces and those a person turned off gets one, walked or not; null while the worker has not sized it */
|
|
18
22
|
target?: (LevelFour.ContainerResources | null) | undefined;
|
|
19
23
|
/** The step the API would take next */
|
|
20
24
|
next?: (LevelFour.ContainerResources | null) | undefined;
|
|
21
|
-
/** Null where the
|
|
25
|
+
/** Null where the loop does not walk it (walked false) and no excluded_reason applies */
|
|
22
26
|
phase?: (RightsizedContainer.Phase | null) | undefined;
|
|
23
27
|
/** Why the target is held where it is */
|
|
24
28
|
held_reason?: (RightsizedContainer.HeldReason | null) | undefined;
|
|
@@ -34,7 +38,7 @@ export interface RightsizedContainer {
|
|
|
34
38
|
computed_at?: (string | null) | undefined;
|
|
35
39
|
/** When the template's resources last changed */
|
|
36
40
|
template_changed_at?: (string | null) | undefined;
|
|
37
|
-
/** What the bill drops a month once it reaches the target; null unless every pool is priced */
|
|
41
|
+
/** What the bill drops a month once it reaches the target; null unless every pool is priced. For a container LevelFour only shows, what it takes off on top of the walked targets and the open candidates, so every container's effects together price sizing every workload; one with an open pull request candidate carries the candidate's effect */
|
|
38
42
|
bill_effect?: (LevelFour.CostPair | null) | undefined;
|
|
39
43
|
/** The same by node pool and resource */
|
|
40
44
|
bill_effects: LevelFour.PoolBillEffect[];
|
|
@@ -58,13 +62,22 @@ export declare namespace RightsizedContainer {
|
|
|
58
62
|
readonly Off: "off";
|
|
59
63
|
};
|
|
60
64
|
type Mode = (typeof Mode)[keyof typeof Mode];
|
|
61
|
-
/** off where the namespace only raises in place */
|
|
65
|
+
/** off where the namespace only raises in place, or where nothing turned its rightsizing on */
|
|
62
66
|
const NamespaceMode: {
|
|
63
67
|
readonly Off: "off";
|
|
64
68
|
readonly Preview: "preview";
|
|
65
69
|
readonly Apply: "apply";
|
|
66
70
|
};
|
|
67
71
|
type NamespaceMode = (typeof NamespaceMode)[keyof typeof NamespaceMode];
|
|
72
|
+
type SizedBy = SizedBy.Item[];
|
|
73
|
+
namespace SizedBy {
|
|
74
|
+
const Item: {
|
|
75
|
+
readonly Vpa: "vpa";
|
|
76
|
+
readonly AddonResizer: "addon_resizer";
|
|
77
|
+
readonly Admission: "admission";
|
|
78
|
+
};
|
|
79
|
+
type Item = (typeof Item)[keyof typeof Item];
|
|
80
|
+
}
|
|
68
81
|
const ExcludedReason: {
|
|
69
82
|
readonly WorkloadOff: "workload_off";
|
|
70
83
|
readonly LabelOff: "label_off";
|
|
@@ -122,6 +135,7 @@ export declare namespace RightsizedContainer {
|
|
|
122
135
|
readonly WeeklyCap: "weekly_cap";
|
|
123
136
|
readonly TooSoon: "too_soon";
|
|
124
137
|
readonly RolloutInProgress: "rollout_in_progress";
|
|
138
|
+
readonly OtherRightsizer: "other_rightsizer";
|
|
125
139
|
};
|
|
126
140
|
type HeldByComponent = (typeof HeldByComponent)[keyof typeof HeldByComponent];
|
|
127
141
|
const UnpricedReason: {
|
|
@@ -32,6 +32,14 @@ var RightsizedContainer;
|
|
|
32
32
|
Preview: "preview",
|
|
33
33
|
Apply: "apply"
|
|
34
34
|
};
|
|
35
|
+
let SizedBy;
|
|
36
|
+
((SizedBy2) => {
|
|
37
|
+
SizedBy2.Item = {
|
|
38
|
+
Vpa: "vpa",
|
|
39
|
+
AddonResizer: "addon_resizer",
|
|
40
|
+
Admission: "admission"
|
|
41
|
+
};
|
|
42
|
+
})(SizedBy = RightsizedContainer2.SizedBy || (RightsizedContainer2.SizedBy = {}));
|
|
35
43
|
RightsizedContainer2.ExcludedReason = {
|
|
36
44
|
WorkloadOff: "workload_off",
|
|
37
45
|
LabelOff: "label_off",
|
|
@@ -85,7 +93,8 @@ var RightsizedContainer;
|
|
|
85
93
|
DailyCap: "daily_cap",
|
|
86
94
|
WeeklyCap: "weekly_cap",
|
|
87
95
|
TooSoon: "too_soon",
|
|
88
|
-
RolloutInProgress: "rollout_in_progress"
|
|
96
|
+
RolloutInProgress: "rollout_in_progress",
|
|
97
|
+
OtherRightsizer: "other_rightsizer"
|
|
89
98
|
};
|
|
90
99
|
RightsizedContainer2.UnpricedReason = {
|
|
91
100
|
AccountNotConnected: "account_not_connected",
|
|
@@ -9,6 +9,14 @@ var RightsizedContainer;
|
|
|
9
9
|
Preview: "preview",
|
|
10
10
|
Apply: "apply"
|
|
11
11
|
};
|
|
12
|
+
let SizedBy;
|
|
13
|
+
((SizedBy2) => {
|
|
14
|
+
SizedBy2.Item = {
|
|
15
|
+
Vpa: "vpa",
|
|
16
|
+
AddonResizer: "addon_resizer",
|
|
17
|
+
Admission: "admission"
|
|
18
|
+
};
|
|
19
|
+
})(SizedBy = RightsizedContainer2.SizedBy || (RightsizedContainer2.SizedBy = {}));
|
|
12
20
|
RightsizedContainer2.ExcludedReason = {
|
|
13
21
|
WorkloadOff: "workload_off",
|
|
14
22
|
LabelOff: "label_off",
|
|
@@ -62,7 +70,8 @@ var RightsizedContainer;
|
|
|
62
70
|
DailyCap: "daily_cap",
|
|
63
71
|
WeeklyCap: "weekly_cap",
|
|
64
72
|
TooSoon: "too_soon",
|
|
65
|
-
RolloutInProgress: "rollout_in_progress"
|
|
73
|
+
RolloutInProgress: "rollout_in_progress",
|
|
74
|
+
OtherRightsizer: "other_rightsizer"
|
|
66
75
|
};
|
|
67
76
|
RightsizedContainer2.UnpricedReason = {
|
|
68
77
|
AccountNotConnected: "account_not_connected",
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface SizingEvidence {
|
|
2
|
+
kind: SizingEvidence.Kind;
|
|
3
|
+
/** The container sized, or for addon_resizer the one running it */
|
|
4
|
+
container: string;
|
|
5
|
+
/** The resource a VPA writes or one set at admission; null for addon_resizer */
|
|
6
|
+
resource?: (SizingEvidence.Resource | null) | undefined;
|
|
7
|
+
/** admission only: the request the running pods hold, in millicores for CPU and bytes for memory, as the container's held.requests reads it */
|
|
8
|
+
running?: (number | null) | undefined;
|
|
9
|
+
/** admission only: the request the template sets, its limit when it sets none; null for none */
|
|
10
|
+
template?: (number | null) | undefined;
|
|
11
|
+
/** admission only: the limit the running pods hold */
|
|
12
|
+
running_limit?: (number | null) | undefined;
|
|
13
|
+
/** admission only: the limit the template sets; null for none */
|
|
14
|
+
template_limit?: (number | null) | undefined;
|
|
15
|
+
/** The VPA's name for vpa, the image for addon_resizer */
|
|
16
|
+
source?: (string | null) | undefined;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace SizingEvidence {
|
|
19
|
+
const Kind: {
|
|
20
|
+
readonly Vpa: "vpa";
|
|
21
|
+
readonly AddonResizer: "addon_resizer";
|
|
22
|
+
readonly Admission: "admission";
|
|
23
|
+
};
|
|
24
|
+
type Kind = (typeof Kind)[keyof typeof Kind];
|
|
25
|
+
const Resource: {
|
|
26
|
+
readonly Cpu: "cpu";
|
|
27
|
+
readonly Memory: "memory";
|
|
28
|
+
};
|
|
29
|
+
type Resource = (typeof Resource)[keyof typeof Resource];
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface SizingEvidence {
|
|
2
|
+
kind: SizingEvidence.Kind;
|
|
3
|
+
/** The container sized, or for addon_resizer the one running it */
|
|
4
|
+
container: string;
|
|
5
|
+
/** The resource a VPA writes or one set at admission; null for addon_resizer */
|
|
6
|
+
resource?: (SizingEvidence.Resource | null) | undefined;
|
|
7
|
+
/** admission only: the request the running pods hold, in millicores for CPU and bytes for memory, as the container's held.requests reads it */
|
|
8
|
+
running?: (number | null) | undefined;
|
|
9
|
+
/** admission only: the request the template sets, its limit when it sets none; null for none */
|
|
10
|
+
template?: (number | null) | undefined;
|
|
11
|
+
/** admission only: the limit the running pods hold */
|
|
12
|
+
running_limit?: (number | null) | undefined;
|
|
13
|
+
/** admission only: the limit the template sets; null for none */
|
|
14
|
+
template_limit?: (number | null) | undefined;
|
|
15
|
+
/** The VPA's name for vpa, the image for addon_resizer */
|
|
16
|
+
source?: (string | null) | undefined;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace SizingEvidence {
|
|
19
|
+
const Kind: {
|
|
20
|
+
readonly Vpa: "vpa";
|
|
21
|
+
readonly AddonResizer: "addon_resizer";
|
|
22
|
+
readonly Admission: "admission";
|
|
23
|
+
};
|
|
24
|
+
type Kind = (typeof Kind)[keyof typeof Kind];
|
|
25
|
+
const Resource: {
|
|
26
|
+
readonly Cpu: "cpu";
|
|
27
|
+
readonly Memory: "memory";
|
|
28
|
+
};
|
|
29
|
+
type Resource = (typeof Resource)[keyof typeof Resource];
|
|
30
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 SizingEvidence_exports = {};
|
|
20
|
+
__export(SizingEvidence_exports, {
|
|
21
|
+
SizingEvidence: () => SizingEvidence
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(SizingEvidence_exports);
|
|
24
|
+
var SizingEvidence;
|
|
25
|
+
((SizingEvidence2) => {
|
|
26
|
+
SizingEvidence2.Kind = {
|
|
27
|
+
Vpa: "vpa",
|
|
28
|
+
AddonResizer: "addon_resizer",
|
|
29
|
+
Admission: "admission"
|
|
30
|
+
};
|
|
31
|
+
SizingEvidence2.Resource = {
|
|
32
|
+
Cpu: "cpu",
|
|
33
|
+
Memory: "memory"
|
|
34
|
+
};
|
|
35
|
+
})(SizingEvidence || (SizingEvidence = {}));
|
|
36
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
+
0 && (module.exports = {
|
|
38
|
+
SizingEvidence
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=SizingEvidence.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var SizingEvidence;
|
|
2
|
+
((SizingEvidence2) => {
|
|
3
|
+
SizingEvidence2.Kind = {
|
|
4
|
+
Vpa: "vpa",
|
|
5
|
+
AddonResizer: "addon_resizer",
|
|
6
|
+
Admission: "admission"
|
|
7
|
+
};
|
|
8
|
+
SizingEvidence2.Resource = {
|
|
9
|
+
Cpu: "cpu",
|
|
10
|
+
Memory: "memory"
|
|
11
|
+
};
|
|
12
|
+
})(SizingEvidence || (SizingEvidence = {}));
|
|
13
|
+
export {
|
|
14
|
+
SizingEvidence
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=SizingEvidence.mjs.map
|
|
@@ -8,7 +8,10 @@ export interface SpendDay {
|
|
|
8
8
|
by_purchase_type_net?: (LevelFour.PurchaseTypeCosts | null) | undefined;
|
|
9
9
|
storage?: (number | null) | undefined;
|
|
10
10
|
network?: (number | null) | undefined;
|
|
11
|
+
/** Compute, storage and data transfer; storage and data transfer count only on a day the bill priced a node of their cluster */
|
|
11
12
|
total?: (number | null) | undefined;
|
|
13
|
+
/** 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 */
|
|
14
|
+
cost_unknown_reason?: (SpendDay.CostUnknownReason | null) | undefined;
|
|
12
15
|
cpu_cost?: (number | null) | undefined;
|
|
13
16
|
memory_cost?: (number | null) | undefined;
|
|
14
17
|
gpu_cost?: (number | null) | undefined;
|
|
@@ -24,11 +27,23 @@ export interface SpendDay {
|
|
|
24
27
|
memory_cost_net?: (number | null) | undefined;
|
|
25
28
|
/** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
|
|
26
29
|
gpu_cost_net?: (number | null) | undefined;
|
|
27
|
-
/** Provisioned for a fleet or a cluster, requested below it */
|
|
30
|
+
/** Provisioned for a fleet or a cluster, requested below it: what the scope held at once on average over the seconds the agent watched it that day, so a cluster watched for part of the day adds that part; null for a day it did not watch */
|
|
28
31
|
cpu_cores?: (number | null) | undefined;
|
|
29
32
|
memory_gib?: (number | null) | undefined;
|
|
33
|
+
/** The claims' capacity at once on average, over the seconds watched that day */
|
|
30
34
|
storage_gib?: (number | null) | undefined;
|
|
31
|
-
/**
|
|
35
|
+
/** The day's storage unit cost: its claims' bill per provisioned GiB a day, over the claims the bill priced and the agent reported every hour of the day, as kpis.unit_cost.storage_per_gib_day and the Efficiency lens read it */
|
|
36
|
+
storage_per_gib_day?: (number | null) | undefined;
|
|
37
|
+
/** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
|
|
38
|
+
storage_per_gib_day_net?: (number | null) | undefined;
|
|
39
|
+
/** A workload's pods running on average while the agent watched that day */
|
|
32
40
|
pods_avg?: (number | null) | undefined;
|
|
33
41
|
pods_by_purchase_type?: (LevelFour.PurchaseTypePods | null) | undefined;
|
|
34
42
|
}
|
|
43
|
+
export declare namespace SpendDay {
|
|
44
|
+
const CostUnknownReason: {
|
|
45
|
+
readonly ComputeUnpriced: "compute_unpriced";
|
|
46
|
+
readonly NothingPriced: "nothing_priced";
|
|
47
|
+
};
|
|
48
|
+
type CostUnknownReason = (typeof CostUnknownReason)[keyof typeof CostUnknownReason];
|
|
49
|
+
}
|
|
@@ -8,7 +8,10 @@ export interface SpendDay {
|
|
|
8
8
|
by_purchase_type_net?: (LevelFour.PurchaseTypeCosts | null) | undefined;
|
|
9
9
|
storage?: (number | null) | undefined;
|
|
10
10
|
network?: (number | null) | undefined;
|
|
11
|
+
/** Compute, storage and data transfer; storage and data transfer count only on a day the bill priced a node of their cluster */
|
|
11
12
|
total?: (number | null) | undefined;
|
|
13
|
+
/** 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 */
|
|
14
|
+
cost_unknown_reason?: (SpendDay.CostUnknownReason | null) | undefined;
|
|
12
15
|
cpu_cost?: (number | null) | undefined;
|
|
13
16
|
memory_cost?: (number | null) | undefined;
|
|
14
17
|
gpu_cost?: (number | null) | undefined;
|
|
@@ -24,11 +27,23 @@ export interface SpendDay {
|
|
|
24
27
|
memory_cost_net?: (number | null) | undefined;
|
|
25
28
|
/** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
|
|
26
29
|
gpu_cost_net?: (number | null) | undefined;
|
|
27
|
-
/** Provisioned for a fleet or a cluster, requested below it */
|
|
30
|
+
/** Provisioned for a fleet or a cluster, requested below it: what the scope held at once on average over the seconds the agent watched it that day, so a cluster watched for part of the day adds that part; null for a day it did not watch */
|
|
28
31
|
cpu_cores?: (number | null) | undefined;
|
|
29
32
|
memory_gib?: (number | null) | undefined;
|
|
33
|
+
/** The claims' capacity at once on average, over the seconds watched that day */
|
|
30
34
|
storage_gib?: (number | null) | undefined;
|
|
31
|
-
/**
|
|
35
|
+
/** The day's storage unit cost: its claims' bill per provisioned GiB a day, over the claims the bill priced and the agent reported every hour of the day, as kpis.unit_cost.storage_per_gib_day and the Efficiency lens read it */
|
|
36
|
+
storage_per_gib_day?: (number | null) | undefined;
|
|
37
|
+
/** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
|
|
38
|
+
storage_per_gib_day_net?: (number | null) | undefined;
|
|
39
|
+
/** A workload's pods running on average while the agent watched that day */
|
|
32
40
|
pods_avg?: (number | null) | undefined;
|
|
33
41
|
pods_by_purchase_type?: (LevelFour.PurchaseTypePods | null) | undefined;
|
|
34
42
|
}
|
|
43
|
+
export declare namespace SpendDay {
|
|
44
|
+
const CostUnknownReason: {
|
|
45
|
+
readonly ComputeUnpriced: "compute_unpriced";
|
|
46
|
+
readonly NothingPriced: "nothing_priced";
|
|
47
|
+
};
|
|
48
|
+
type CostUnknownReason = (typeof CostUnknownReason)[keyof typeof CostUnknownReason];
|
|
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,19 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
17
|
};
|
|
14
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
19
|
var SpendDay_exports = {};
|
|
20
|
+
__export(SpendDay_exports, {
|
|
21
|
+
SpendDay: () => SpendDay
|
|
22
|
+
});
|
|
16
23
|
module.exports = __toCommonJS(SpendDay_exports);
|
|
24
|
+
var SpendDay;
|
|
25
|
+
((SpendDay2) => {
|
|
26
|
+
SpendDay2.CostUnknownReason = {
|
|
27
|
+
ComputeUnpriced: "compute_unpriced",
|
|
28
|
+
NothingPriced: "nothing_priced"
|
|
29
|
+
};
|
|
30
|
+
})(SpendDay || (SpendDay = {}));
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
SpendDay
|
|
34
|
+
});
|
|
17
35
|
//# sourceMappingURL=SpendDay.js.map
|
|
@@ -2,7 +2,7 @@ import type * as LevelFour from "../index.mjs";
|
|
|
2
2
|
export interface SpendKpis {
|
|
3
3
|
/** This calendar month's complete days */
|
|
4
4
|
mtd_cost?: (number | null) | undefined;
|
|
5
|
-
/** Month to date plus the last seven complete days
|
|
5
|
+
/** Month to date plus, for each cluster, its pace for every day after the last one the bill priced: the average of the last seven complete days the bill priced and its agent watched in every hour. Null while a cluster the bill priced in the last week has fewer than three such days */
|
|
6
6
|
forecast_month_cost?: (number | null) | undefined;
|
|
7
7
|
/** The calendar month before */
|
|
8
8
|
last_month_cost?: (number | null) | undefined;
|
|
@@ -10,7 +10,7 @@ export interface SpendKpis {
|
|
|
10
10
|
avg_daily_cost?: (number | null) | undefined;
|
|
11
11
|
/** The same, over the previous window of equal length */
|
|
12
12
|
prev_avg_daily_cost?: (number | null) | undefined;
|
|
13
|
-
/**
|
|
13
|
+
/** A day at the forecast's pace, each cluster's added up; null as the forecast is */
|
|
14
14
|
projected_today_cost?: (number | null) | undefined;
|
|
15
15
|
/** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
|
|
16
16
|
mtd_cost_net?: (number | null) | undefined;
|
|
@@ -24,6 +24,17 @@ export interface SpendKpis {
|
|
|
24
24
|
prev_avg_daily_cost_net?: (number | null) | undefined;
|
|
25
25
|
/** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
|
|
26
26
|
projected_today_cost_net?: (number | null) | undefined;
|
|
27
|
+
/** Compute alone, without storage or data transfer, read and forecast as the figures above */
|
|
28
|
+
compute_month: LevelFour.ComputeMonth;
|
|
29
|
+
/** Set when no day these figures read (the window, the previous one, last month and this month so far) has a total, so each of them is null; values as on a day */
|
|
30
|
+
cost_unknown_reason?: (SpendKpis.CostUnknownReason | null) | undefined;
|
|
27
31
|
/** Provisioned for a fleet or a cluster (the node cost split), requested below it */
|
|
28
32
|
unit_cost: LevelFour.SpendUnitCost;
|
|
29
33
|
}
|
|
34
|
+
export declare namespace SpendKpis {
|
|
35
|
+
const CostUnknownReason: {
|
|
36
|
+
readonly ComputeUnpriced: "compute_unpriced";
|
|
37
|
+
readonly NothingPriced: "nothing_priced";
|
|
38
|
+
};
|
|
39
|
+
type CostUnknownReason = (typeof CostUnknownReason)[keyof typeof CostUnknownReason];
|
|
40
|
+
}
|
|
@@ -2,7 +2,7 @@ import type * as LevelFour from "../index.js";
|
|
|
2
2
|
export interface SpendKpis {
|
|
3
3
|
/** This calendar month's complete days */
|
|
4
4
|
mtd_cost?: (number | null) | undefined;
|
|
5
|
-
/** Month to date plus the last seven complete days
|
|
5
|
+
/** Month to date plus, for each cluster, its pace for every day after the last one the bill priced: the average of the last seven complete days the bill priced and its agent watched in every hour. Null while a cluster the bill priced in the last week has fewer than three such days */
|
|
6
6
|
forecast_month_cost?: (number | null) | undefined;
|
|
7
7
|
/** The calendar month before */
|
|
8
8
|
last_month_cost?: (number | null) | undefined;
|
|
@@ -10,7 +10,7 @@ export interface SpendKpis {
|
|
|
10
10
|
avg_daily_cost?: (number | null) | undefined;
|
|
11
11
|
/** The same, over the previous window of equal length */
|
|
12
12
|
prev_avg_daily_cost?: (number | null) | undefined;
|
|
13
|
-
/**
|
|
13
|
+
/** A day at the forecast's pace, each cluster's added up; null as the forecast is */
|
|
14
14
|
projected_today_cost?: (number | null) | undefined;
|
|
15
15
|
/** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
|
|
16
16
|
mtd_cost_net?: (number | null) | undefined;
|
|
@@ -24,6 +24,17 @@ export interface SpendKpis {
|
|
|
24
24
|
prev_avg_daily_cost_net?: (number | null) | undefined;
|
|
25
25
|
/** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
|
|
26
26
|
projected_today_cost_net?: (number | null) | undefined;
|
|
27
|
+
/** Compute alone, without storage or data transfer, read and forecast as the figures above */
|
|
28
|
+
compute_month: LevelFour.ComputeMonth;
|
|
29
|
+
/** Set when no day these figures read (the window, the previous one, last month and this month so far) has a total, so each of them is null; values as on a day */
|
|
30
|
+
cost_unknown_reason?: (SpendKpis.CostUnknownReason | null) | undefined;
|
|
27
31
|
/** Provisioned for a fleet or a cluster (the node cost split), requested below it */
|
|
28
32
|
unit_cost: LevelFour.SpendUnitCost;
|
|
29
33
|
}
|
|
34
|
+
export declare namespace SpendKpis {
|
|
35
|
+
const CostUnknownReason: {
|
|
36
|
+
readonly ComputeUnpriced: "compute_unpriced";
|
|
37
|
+
readonly NothingPriced: "nothing_priced";
|
|
38
|
+
};
|
|
39
|
+
type CostUnknownReason = (typeof CostUnknownReason)[keyof typeof CostUnknownReason];
|
|
40
|
+
}
|
|
@@ -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,19 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
17
|
};
|
|
14
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
19
|
var SpendKpis_exports = {};
|
|
20
|
+
__export(SpendKpis_exports, {
|
|
21
|
+
SpendKpis: () => SpendKpis
|
|
22
|
+
});
|
|
16
23
|
module.exports = __toCommonJS(SpendKpis_exports);
|
|
24
|
+
var SpendKpis;
|
|
25
|
+
((SpendKpis2) => {
|
|
26
|
+
SpendKpis2.CostUnknownReason = {
|
|
27
|
+
ComputeUnpriced: "compute_unpriced",
|
|
28
|
+
NothingPriced: "nothing_priced"
|
|
29
|
+
};
|
|
30
|
+
})(SpendKpis || (SpendKpis = {}));
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
SpendKpis
|
|
34
|
+
});
|
|
17
35
|
//# sourceMappingURL=SpendKpis.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface SpendUnitCost {
|
|
2
2
|
cpu_per_vcpu_day?: (number | null) | undefined;
|
|
3
3
|
memory_per_gib_day?: (number | null) | undefined;
|
|
4
|
+
/** The claims' bill per GiB of their capacity a day, over the claims the bill priced and the agent reported every hour of that day, so the cost and the GiB cover the same hours */
|
|
4
5
|
storage_per_gib_day?: (number | null) | undefined;
|
|
5
6
|
/** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
|
|
6
7
|
cpu_per_vcpu_day_net?: (number | null) | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface SpendUnitCost {
|
|
2
2
|
cpu_per_vcpu_day?: (number | null) | undefined;
|
|
3
3
|
memory_per_gib_day?: (number | null) | undefined;
|
|
4
|
+
/** The claims' bill per GiB of their capacity a day, over the claims the bill priced and the agent reported every hour of that day, so the cost and the GiB cover the same hours */
|
|
4
5
|
storage_per_gib_day?: (number | null) | undefined;
|
|
5
6
|
/** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
|
|
6
7
|
cpu_per_vcpu_day_net?: (number | null) | undefined;
|
|
@@ -7,4 +7,8 @@ export interface SpotBalance {
|
|
|
7
7
|
/** Every pod in the pool tolerates interruption */
|
|
8
8
|
eligible?: boolean | undefined;
|
|
9
9
|
reason?: (string | null) | undefined;
|
|
10
|
+
/** Share of the pool's node-seconds on Spot over the window, by the nodes' capacity type */
|
|
11
|
+
spot_share?: (number | null) | undefined;
|
|
12
|
+
/** Every node of the pool ran on Spot over the window */
|
|
13
|
+
on_spot?: boolean | undefined;
|
|
10
14
|
}
|
|
@@ -7,4 +7,8 @@ export interface SpotBalance {
|
|
|
7
7
|
/** Every pod in the pool tolerates interruption */
|
|
8
8
|
eligible?: boolean | undefined;
|
|
9
9
|
reason?: (string | null) | undefined;
|
|
10
|
+
/** Share of the pool's node-seconds on Spot over the window, by the nodes' capacity type */
|
|
11
|
+
spot_share?: (number | null) | undefined;
|
|
12
|
+
/** Every node of the pool ran on Spot over the window */
|
|
13
|
+
on_spot?: boolean | undefined;
|
|
10
14
|
}
|