levelfour 1.10.0 → 1.12.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/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/ClusterItem.d.mts +1 -1
- package/dist/api/types/ClusterItem.d.ts +1 -1
- package/dist/api/types/ClusterSummary.d.mts +3 -1
- package/dist/api/types/ClusterSummary.d.ts +3 -1
- package/dist/api/types/FleetNamespace.d.mts +2 -0
- package/dist/api/types/FleetNamespace.d.ts +2 -0
- package/dist/api/types/FleetNodePool.d.mts +6 -2
- package/dist/api/types/FleetNodePool.d.ts +6 -2
- package/dist/api/types/FleetSummary.d.mts +3 -1
- package/dist/api/types/FleetSummary.d.ts +3 -1
- package/dist/api/types/Indicator.d.mts +4 -5
- package/dist/api/types/Indicator.d.ts +4 -5
- package/dist/api/types/Indicator.js +2 -5
- package/dist/api/types/Indicator.mjs +2 -5
- package/dist/api/types/IndicatorCount.d.mts +2 -5
- package/dist/api/types/IndicatorCount.d.ts +2 -5
- package/dist/api/types/IndicatorCount.js +2 -5
- package/dist/api/types/IndicatorCount.mjs +2 -5
- package/dist/api/types/NamespaceAutomation.d.mts +18 -0
- package/dist/api/types/NamespaceAutomation.d.ts +18 -0
- package/dist/api/types/NamespaceAutomation.js +4 -0
- package/dist/api/types/NamespaceAutomation.mjs +4 -0
- package/dist/api/types/NamespaceItem.d.mts +2 -0
- package/dist/api/types/NamespaceItem.d.ts +2 -0
- package/dist/api/types/NamespaceReliability.d.mts +1 -1
- package/dist/api/types/NamespaceReliability.d.ts +1 -1
- package/dist/api/types/NoReadyShare.d.mts +1 -1
- package/dist/api/types/NoReadyShare.d.ts +1 -1
- package/dist/api/types/NodeFacets.d.mts +1 -1
- package/dist/api/types/NodeFacets.d.ts +1 -1
- package/dist/api/types/NodeItem.d.mts +7 -3
- package/dist/api/types/NodeItem.d.ts +7 -3
- 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 +6 -2
- package/dist/api/types/NodePoolUsage.d.ts +6 -2
- package/dist/api/types/PurchaseTypeShare.d.mts +4 -4
- package/dist/api/types/PurchaseTypeShare.d.ts +4 -4
- package/dist/api/types/ReliabilityTotals.d.mts +1 -1
- package/dist/api/types/ReliabilityTotals.d.ts +1 -1
- package/dist/api/types/ReplicaScaler.d.mts +4 -1
- package/dist/api/types/ReplicaScaler.d.ts +4 -1
- package/dist/api/types/ResourceCapacity.d.mts +1 -1
- package/dist/api/types/ResourceCapacity.d.ts +1 -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/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/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/UtilizationTarget.d.mts +2 -2
- package/dist/api/types/UtilizationTarget.d.ts +2 -2
- package/dist/api/types/WorkloadDetail.d.mts +4 -0
- package/dist/api/types/WorkloadDetail.d.ts +4 -0
- package/dist/api/types/WorkloadPodEvent.d.mts +23 -0
- package/dist/api/types/WorkloadPodEvent.d.ts +23 -0
- package/dist/api/types/WorkloadPodEvent.js +35 -0
- package/dist/api/types/WorkloadPodEvent.mjs +11 -0
- package/dist/api/types/WorkloadTermination.d.mts +10 -0
- package/dist/api/types/WorkloadTermination.d.ts +10 -0
- package/dist/api/types/WorkloadTermination.js +17 -0
- package/dist/api/types/WorkloadTermination.mjs +1 -0
- package/dist/api/types/index.d.mts +5 -0
- package/dist/api/types/index.d.ts +5 -0
- package/dist/api/types/index.js +10 -0
- package/dist/api/types/index.mjs +5 -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
|
@@ -19,7 +19,7 @@ export interface NodeItem {
|
|
|
19
19
|
node_group?: (string | null) | undefined;
|
|
20
20
|
/** As the node is labelled: spot or on-demand */
|
|
21
21
|
capacity_type?: (string | null) | undefined;
|
|
22
|
-
/**
|
|
22
|
+
/** Spot from its label, else how the bill bought its name's On-Demand capacity on the latest day it ran that the bill priced, else unknown */
|
|
23
23
|
purchase_type: NodeItem.PurchaseType;
|
|
24
24
|
/** CPU, memory, ephemeral storage, GPU and pod slots */
|
|
25
25
|
capacity: LevelFour.ResourceList;
|
|
@@ -28,6 +28,7 @@ export interface NodeItem {
|
|
|
28
28
|
capacity_memory_bytes?: (number | null) | undefined;
|
|
29
29
|
allocatable_cpu_milli?: (number | null) | undefined;
|
|
30
30
|
allocatable_memory_bytes?: (number | null) | undefined;
|
|
31
|
+
/** What its pods hold now: the pods of the latest batch on it, at their own requests; null for a node gone from the cluster */
|
|
31
32
|
requested_cpu_milli?: (number | null) | undefined;
|
|
32
33
|
requested_memory_bytes?: (number | null) | undefined;
|
|
33
34
|
used_cpu_milli?: (number | null) | undefined;
|
|
@@ -39,6 +40,8 @@ export interface NodeItem {
|
|
|
39
40
|
overhead_memory_bytes?: (number | null) | undefined;
|
|
40
41
|
hourly_cost?: (number | null) | undefined;
|
|
41
42
|
period_cost?: (number | null) | undefined;
|
|
43
|
+
/** The hours the agent watched it in the window on days the bill has not priced yet, which period_cost leaves out: 0 when the bill priced every one, null when the agent watched it no hour */
|
|
44
|
+
unpriced_hours?: (number | null) | undefined;
|
|
42
45
|
cpu_cost?: (number | null) | undefined;
|
|
43
46
|
memory_cost?: (number | null) | undefined;
|
|
44
47
|
gpu_cost?: (number | null) | undefined;
|
|
@@ -53,6 +56,7 @@ export interface NodeItem {
|
|
|
53
56
|
filesystem: LevelFour.NodeFilesystemUse;
|
|
54
57
|
/** As of the latest hour reported */
|
|
55
58
|
pids: LevelFour.PidUse;
|
|
59
|
+
/** The pods of the latest batch on it */
|
|
56
60
|
pod_count: number;
|
|
57
61
|
/** Pods running over allocatable pod slots */
|
|
58
62
|
pod_slots_used?: (number | null) | undefined;
|
|
@@ -66,11 +70,11 @@ export interface NodeItem {
|
|
|
66
70
|
do_not_disrupt?: boolean | undefined;
|
|
67
71
|
/** Current pods that keep the autoscaler from removing the node; a static pod does not count. 0 on a node no autoscaler that consolidates removes: a node group's node while Cluster Autoscaler does not run, or a node in neither a NodePool nor a node group */
|
|
68
72
|
blocking_pods?: number | undefined;
|
|
69
|
-
/** The latest SpotInterrupted or CapacityReservationInstanceInterrupted event on the node */
|
|
73
|
+
/** The latest SpotInterrupted or CapacityReservationInstanceInterrupted event on the node since the window's first day; a removed node with one has the status interrupted */
|
|
70
74
|
interrupted_at?: (string | null) | undefined;
|
|
71
75
|
}
|
|
72
76
|
export declare namespace NodeItem {
|
|
73
|
-
/**
|
|
77
|
+
/** Spot from its label, else how the bill bought its name's On-Demand capacity on the latest day it ran that the bill priced, else unknown */
|
|
74
78
|
const PurchaseType: {
|
|
75
79
|
readonly Spot: "spot";
|
|
76
80
|
readonly OnDemand: "on_demand";
|
|
@@ -19,7 +19,7 @@ export interface NodeItem {
|
|
|
19
19
|
node_group?: (string | null) | undefined;
|
|
20
20
|
/** As the node is labelled: spot or on-demand */
|
|
21
21
|
capacity_type?: (string | null) | undefined;
|
|
22
|
-
/**
|
|
22
|
+
/** Spot from its label, else how the bill bought its name's On-Demand capacity on the latest day it ran that the bill priced, else unknown */
|
|
23
23
|
purchase_type: NodeItem.PurchaseType;
|
|
24
24
|
/** CPU, memory, ephemeral storage, GPU and pod slots */
|
|
25
25
|
capacity: LevelFour.ResourceList;
|
|
@@ -28,6 +28,7 @@ export interface NodeItem {
|
|
|
28
28
|
capacity_memory_bytes?: (number | null) | undefined;
|
|
29
29
|
allocatable_cpu_milli?: (number | null) | undefined;
|
|
30
30
|
allocatable_memory_bytes?: (number | null) | undefined;
|
|
31
|
+
/** What its pods hold now: the pods of the latest batch on it, at their own requests; null for a node gone from the cluster */
|
|
31
32
|
requested_cpu_milli?: (number | null) | undefined;
|
|
32
33
|
requested_memory_bytes?: (number | null) | undefined;
|
|
33
34
|
used_cpu_milli?: (number | null) | undefined;
|
|
@@ -39,6 +40,8 @@ export interface NodeItem {
|
|
|
39
40
|
overhead_memory_bytes?: (number | null) | undefined;
|
|
40
41
|
hourly_cost?: (number | null) | undefined;
|
|
41
42
|
period_cost?: (number | null) | undefined;
|
|
43
|
+
/** The hours the agent watched it in the window on days the bill has not priced yet, which period_cost leaves out: 0 when the bill priced every one, null when the agent watched it no hour */
|
|
44
|
+
unpriced_hours?: (number | null) | undefined;
|
|
42
45
|
cpu_cost?: (number | null) | undefined;
|
|
43
46
|
memory_cost?: (number | null) | undefined;
|
|
44
47
|
gpu_cost?: (number | null) | undefined;
|
|
@@ -53,6 +56,7 @@ export interface NodeItem {
|
|
|
53
56
|
filesystem: LevelFour.NodeFilesystemUse;
|
|
54
57
|
/** As of the latest hour reported */
|
|
55
58
|
pids: LevelFour.PidUse;
|
|
59
|
+
/** The pods of the latest batch on it */
|
|
56
60
|
pod_count: number;
|
|
57
61
|
/** Pods running over allocatable pod slots */
|
|
58
62
|
pod_slots_used?: (number | null) | undefined;
|
|
@@ -66,11 +70,11 @@ export interface NodeItem {
|
|
|
66
70
|
do_not_disrupt?: boolean | undefined;
|
|
67
71
|
/** Current pods that keep the autoscaler from removing the node; a static pod does not count. 0 on a node no autoscaler that consolidates removes: a node group's node while Cluster Autoscaler does not run, or a node in neither a NodePool nor a node group */
|
|
68
72
|
blocking_pods?: number | undefined;
|
|
69
|
-
/** The latest SpotInterrupted or CapacityReservationInstanceInterrupted event on the node */
|
|
73
|
+
/** The latest SpotInterrupted or CapacityReservationInstanceInterrupted event on the node since the window's first day; a removed node with one has the status interrupted */
|
|
70
74
|
interrupted_at?: (string | null) | undefined;
|
|
71
75
|
}
|
|
72
76
|
export declare namespace NodeItem {
|
|
73
|
-
/**
|
|
77
|
+
/** Spot from its label, else how the bill bought its name's On-Demand capacity on the latest day it ran that the bill priced, else unknown */
|
|
74
78
|
const PurchaseType: {
|
|
75
79
|
readonly Spot: "spot";
|
|
76
80
|
readonly OnDemand: "on_demand";
|
|
@@ -4,7 +4,7 @@ export interface NodePoolNode {
|
|
|
4
4
|
capacity_type?: (string | null) | undefined;
|
|
5
5
|
zone?: (string | null) | undefined;
|
|
6
6
|
ready: boolean;
|
|
7
|
-
/** What its pods
|
|
7
|
+
/** What its pods hold now, as the Nodes list reads it */
|
|
8
8
|
requested_cpu_milli?: (number | null) | undefined;
|
|
9
9
|
requested_memory_bytes?: (number | null) | undefined;
|
|
10
10
|
allocatable_cpu_milli?: (number | null) | undefined;
|
|
@@ -4,7 +4,7 @@ export interface NodePoolNode {
|
|
|
4
4
|
capacity_type?: (string | null) | undefined;
|
|
5
5
|
zone?: (string | null) | undefined;
|
|
6
6
|
ready: boolean;
|
|
7
|
-
/** What its pods
|
|
7
|
+
/** What its pods hold now, as the Nodes list reads it */
|
|
8
8
|
requested_cpu_milli?: (number | null) | undefined;
|
|
9
9
|
requested_memory_bytes?: (number | null) | undefined;
|
|
10
10
|
allocatable_cpu_milli?: (number | null) | undefined;
|
|
@@ -5,14 +5,14 @@ export interface NodePoolUsage {
|
|
|
5
5
|
/** Set when grouped by instance type */
|
|
6
6
|
instance_type?: (string | null) | undefined;
|
|
7
7
|
arch?: (string | null) | undefined;
|
|
8
|
-
/**
|
|
8
|
+
/** The instances the agent saw in the group in the window's hours, as the Nodes list lists them */
|
|
9
9
|
nodes: number;
|
|
10
10
|
spot_nodes: number;
|
|
11
11
|
/** Nodes in the group running now, as the cluster's node_count counts them */
|
|
12
12
|
nodes_now?: (number | null) | undefined;
|
|
13
13
|
/** What the group's nodes running now can give pods, from each node's allocatable */
|
|
14
14
|
cpu_allocatable_milli_now?: (number | null) | undefined;
|
|
15
|
-
/** What the pods on the group's nodes running now
|
|
15
|
+
/** What the pods on the group's nodes running now hold: the pods of the latest batch, at their own requests, as the Nodes list's rows and the fleet's clusters read it; null while no pod with a request runs on them */
|
|
16
16
|
cpu_requested_milli_now?: (number | null) | undefined;
|
|
17
17
|
memory_allocatable_bytes_now?: (number | null) | undefined;
|
|
18
18
|
memory_requested_bytes_now?: (number | null) | undefined;
|
|
@@ -45,6 +45,10 @@ export interface NodePoolUsage {
|
|
|
45
45
|
/** Cost per node-hour */
|
|
46
46
|
cost_per_hour?: (number | null) | undefined;
|
|
47
47
|
purchase_types: LevelFour.PurchaseTypeHours[];
|
|
48
|
+
/** The capacity types the group's Karpenter NodePool, self-managed or EKS Auto Mode, may launch as of the latest batch, of on-demand, reserved (a capacity reservation) and spot, sorted: what its karpenter.sh/capacity-type requirements and template labels leave. A NodePool that names no capacity type may launch all three, Karpenter's default. Null for a managed node group or any other group, whose capacity type the agent does not report, for a NodePool the latest batch no longer has, and for an instance type */
|
|
49
|
+
allowed_capacity_types?: (string[] | null) | undefined;
|
|
50
|
+
/** The capacity types the group's nodes ran on in the window's hours, sorted: on-demand, spot, and unknown for an hour whose node carried no capacity-type label. A node in a capacity reservation reads on-demand, as the agent reads its label. Empty for a group the agent saw no hour of */
|
|
51
|
+
ran_capacity_types: string[];
|
|
48
52
|
karpenter?: (LevelFour.KarpenterPool | null) | undefined;
|
|
49
53
|
/** Day by day, with series=day */
|
|
50
54
|
series?: (LevelFour.NodePoolDay[] | null) | undefined;
|
|
@@ -5,14 +5,14 @@ export interface NodePoolUsage {
|
|
|
5
5
|
/** Set when grouped by instance type */
|
|
6
6
|
instance_type?: (string | null) | undefined;
|
|
7
7
|
arch?: (string | null) | undefined;
|
|
8
|
-
/**
|
|
8
|
+
/** The instances the agent saw in the group in the window's hours, as the Nodes list lists them */
|
|
9
9
|
nodes: number;
|
|
10
10
|
spot_nodes: number;
|
|
11
11
|
/** Nodes in the group running now, as the cluster's node_count counts them */
|
|
12
12
|
nodes_now?: (number | null) | undefined;
|
|
13
13
|
/** What the group's nodes running now can give pods, from each node's allocatable */
|
|
14
14
|
cpu_allocatable_milli_now?: (number | null) | undefined;
|
|
15
|
-
/** What the pods on the group's nodes running now
|
|
15
|
+
/** What the pods on the group's nodes running now hold: the pods of the latest batch, at their own requests, as the Nodes list's rows and the fleet's clusters read it; null while no pod with a request runs on them */
|
|
16
16
|
cpu_requested_milli_now?: (number | null) | undefined;
|
|
17
17
|
memory_allocatable_bytes_now?: (number | null) | undefined;
|
|
18
18
|
memory_requested_bytes_now?: (number | null) | undefined;
|
|
@@ -45,6 +45,10 @@ export interface NodePoolUsage {
|
|
|
45
45
|
/** Cost per node-hour */
|
|
46
46
|
cost_per_hour?: (number | null) | undefined;
|
|
47
47
|
purchase_types: LevelFour.PurchaseTypeHours[];
|
|
48
|
+
/** The capacity types the group's Karpenter NodePool, self-managed or EKS Auto Mode, may launch as of the latest batch, of on-demand, reserved (a capacity reservation) and spot, sorted: what its karpenter.sh/capacity-type requirements and template labels leave. A NodePool that names no capacity type may launch all three, Karpenter's default. Null for a managed node group or any other group, whose capacity type the agent does not report, for a NodePool the latest batch no longer has, and for an instance type */
|
|
49
|
+
allowed_capacity_types?: (string[] | null) | undefined;
|
|
50
|
+
/** The capacity types the group's nodes ran on in the window's hours, sorted: on-demand, spot, and unknown for an hour whose node carried no capacity-type label. A node in a capacity reservation reads on-demand, as the agent reads its label. Empty for a group the agent saw no hour of */
|
|
51
|
+
ran_capacity_types: string[];
|
|
48
52
|
karpenter?: (LevelFour.KarpenterPool | null) | undefined;
|
|
49
53
|
/** Day by day, with series=day */
|
|
50
54
|
series?: (LevelFour.NodePoolDay[] | null) | undefined;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export interface PurchaseTypeShare {
|
|
2
2
|
purchase_type: PurchaseTypeShare.PurchaseType;
|
|
3
|
-
/**
|
|
3
|
+
/** Instances that ran in the window under this purchase type */
|
|
4
4
|
nodes: number;
|
|
5
|
-
/**
|
|
5
|
+
/** The hours the agent watched the nodes run in the window, priced or not: spot for a Spot label, else how the bill bought the name's On-Demand capacity that day, else unknown. A cluster the agent did not watch keeps its bill's hours; null where only the current nodes' labels count */
|
|
6
6
|
node_hours?: (number | null) | undefined;
|
|
7
|
-
/**
|
|
7
|
+
/** The bill's, split by the purchase type each part was charged as; null where it priced none */
|
|
8
8
|
cost?: (number | null) | undefined;
|
|
9
9
|
/** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
|
|
10
10
|
cost_net?: (number | null) | undefined;
|
|
11
|
-
/** Nodes running now
|
|
11
|
+
/** Nodes running now: spot from a Spot label, else how the bill last bought their On-Demand capacity, else unknown */
|
|
12
12
|
nodes_now?: (number | null) | undefined;
|
|
13
13
|
}
|
|
14
14
|
export declare namespace PurchaseTypeShare {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export interface PurchaseTypeShare {
|
|
2
2
|
purchase_type: PurchaseTypeShare.PurchaseType;
|
|
3
|
-
/**
|
|
3
|
+
/** Instances that ran in the window under this purchase type */
|
|
4
4
|
nodes: number;
|
|
5
|
-
/**
|
|
5
|
+
/** The hours the agent watched the nodes run in the window, priced or not: spot for a Spot label, else how the bill bought the name's On-Demand capacity that day, else unknown. A cluster the agent did not watch keeps its bill's hours; null where only the current nodes' labels count */
|
|
6
6
|
node_hours?: (number | null) | undefined;
|
|
7
|
-
/**
|
|
7
|
+
/** The bill's, split by the purchase type each part was charged as; null where it priced none */
|
|
8
8
|
cost?: (number | null) | undefined;
|
|
9
9
|
/** The same after the enterprise discount and the commitments; a day rolled up before the net basis counts at its amortized cost */
|
|
10
10
|
cost_net?: (number | null) | undefined;
|
|
11
|
-
/** Nodes running now
|
|
11
|
+
/** Nodes running now: spot from a Spot label, else how the bill last bought their On-Demand capacity, else unknown */
|
|
12
12
|
nodes_now?: (number | null) | undefined;
|
|
13
13
|
}
|
|
14
14
|
export declare namespace PurchaseTypeShare {
|
|
@@ -10,7 +10,7 @@ export interface ReliabilityTotals {
|
|
|
10
10
|
/** At most the pods moved off a node that a Spot interruption, an instance event or a Karpenter disruption (consolidation, drift, expiry) removed. They leave through the Eviction API, so evictions does not count them. Per removal, each workload counts the most of its pods that ran on the node at once in the hour the removal began, a pod that left the node earlier in that hour included. DaemonSet and static pods go with their node and are not counted, nor is a removal that began while the agent was not watching. A day is measured from agent 0.6.2 on, when every watched hour a removal's pods are read from carries the pods' peaks. Null unless every day of the window watched measured it, so it never counts part of the window */
|
|
11
11
|
drained_pods: number | null;
|
|
12
12
|
pending_pod_hours: number;
|
|
13
|
-
/** Current workloads at high risk: an OOM kill, an eviction
|
|
13
|
+
/** Current workloads at high risk: an OOM kill, an eviction, no ready replica in two batches in a row, or a crash loop. Medium and low never count. An ephemeral one, a pull-request environment, counts only with include_ephemeral */
|
|
14
14
|
workloads_at_risk: number;
|
|
15
15
|
/** Current containers whose pods run, or would run, with no CPU or no memory request */
|
|
16
16
|
containers_without_requests: number;
|
|
@@ -10,7 +10,7 @@ export interface ReliabilityTotals {
|
|
|
10
10
|
/** At most the pods moved off a node that a Spot interruption, an instance event or a Karpenter disruption (consolidation, drift, expiry) removed. They leave through the Eviction API, so evictions does not count them. Per removal, each workload counts the most of its pods that ran on the node at once in the hour the removal began, a pod that left the node earlier in that hour included. DaemonSet and static pods go with their node and are not counted, nor is a removal that began while the agent was not watching. A day is measured from agent 0.6.2 on, when every watched hour a removal's pods are read from carries the pods' peaks. Null unless every day of the window watched measured it, so it never counts part of the window */
|
|
11
11
|
drained_pods: number | null;
|
|
12
12
|
pending_pod_hours: number;
|
|
13
|
-
/** Current workloads at high risk: an OOM kill, an eviction
|
|
13
|
+
/** Current workloads at high risk: an OOM kill, an eviction, no ready replica in two batches in a row, or a crash loop. Medium and low never count. An ephemeral one, a pull-request environment, counts only with include_ephemeral */
|
|
14
14
|
workloads_at_risk: number;
|
|
15
15
|
/** Current containers whose pods run, or would run, with no CPU or no memory request */
|
|
16
16
|
containers_without_requests: number;
|
|
@@ -6,8 +6,11 @@ export interface ReplicaScaler {
|
|
|
6
6
|
utilization_targets: LevelFour.UtilizationTarget[];
|
|
7
7
|
/** Scales on something other than CPU or memory */
|
|
8
8
|
custom_metric: boolean;
|
|
9
|
+
/** Hours the agent watched this autoscaler in the window, each hour at most the seconds it watched the cluster: the window's hours_watched for one there throughout, fewer for one that appeared or went part way through */
|
|
10
|
+
scaler_hours_watched: number;
|
|
11
|
+
/** Hours of scaler_hours_watched it sat at max replicas */
|
|
9
12
|
hours_at_max: number;
|
|
10
|
-
/**
|
|
13
|
+
/** hours_at_max over scaler_hours_watched, a share of this autoscaler's own hours, not of the window's; null when the agent watched it for none */
|
|
11
14
|
at_max_share?: (number | null) | undefined;
|
|
12
15
|
/** Over the window; null when no hour was measured */
|
|
13
16
|
replicas?: (LevelFour.ReplicaSpan | null) | undefined;
|
|
@@ -6,8 +6,11 @@ export interface ReplicaScaler {
|
|
|
6
6
|
utilization_targets: LevelFour.UtilizationTarget[];
|
|
7
7
|
/** Scales on something other than CPU or memory */
|
|
8
8
|
custom_metric: boolean;
|
|
9
|
+
/** Hours the agent watched this autoscaler in the window, each hour at most the seconds it watched the cluster: the window's hours_watched for one there throughout, fewer for one that appeared or went part way through */
|
|
10
|
+
scaler_hours_watched: number;
|
|
11
|
+
/** Hours of scaler_hours_watched it sat at max replicas */
|
|
9
12
|
hours_at_max: number;
|
|
10
|
-
/**
|
|
13
|
+
/** hours_at_max over scaler_hours_watched, a share of this autoscaler's own hours, not of the window's; null when the agent watched it for none */
|
|
11
14
|
at_max_share?: (number | null) | undefined;
|
|
12
15
|
/** Over the window; null when no hour was measured */
|
|
13
16
|
replicas?: (LevelFour.ReplicaSpan | null) | undefined;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
export interface ResourceCapacity {
|
|
6
6
|
/** The current nodes' allocatable */
|
|
7
7
|
allocatable?: (number | null) | undefined;
|
|
8
|
-
/**
|
|
8
|
+
/** What the pods hold now: each pod of the latest batch on a node it reported, at its own requests, init containers and overhead in, as the node groups and the Nodes list read it */
|
|
9
9
|
requested?: (number | null) | undefined;
|
|
10
10
|
/** Each placed pod's containers' limits, at the values the pods held; a container without one adds nothing */
|
|
11
11
|
limits?: (number | null) | undefined;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
export interface ResourceCapacity {
|
|
6
6
|
/** The current nodes' allocatable */
|
|
7
7
|
allocatable?: (number | null) | undefined;
|
|
8
|
-
/**
|
|
8
|
+
/** What the pods hold now: each pod of the latest batch on a node it reported, at its own requests, init containers and overhead in, as the node groups and the Nodes list read it */
|
|
9
9
|
requested?: (number | null) | undefined;
|
|
10
10
|
/** Each placed pod's containers' limits, at the values the pods held; a container without one adds nothing */
|
|
11
11
|
limits?: (number | null) | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface SetTakeoverRequest {
|
|
2
|
+
/** taken_over marks it, or moves the mark to now while its baseline has not frozen; off ends it */
|
|
3
|
+
takeover: SetTakeoverRequest.Takeover;
|
|
4
|
+
version: number;
|
|
5
|
+
}
|
|
6
|
+
export declare namespace SetTakeoverRequest {
|
|
7
|
+
/** taken_over marks it, or moves the mark to now while its baseline has not frozen; off ends it */
|
|
8
|
+
const Takeover: {
|
|
9
|
+
readonly Off: "off";
|
|
10
|
+
readonly TakenOver: "taken_over";
|
|
11
|
+
};
|
|
12
|
+
type Takeover = (typeof Takeover)[keyof typeof Takeover];
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface SetTakeoverRequest {
|
|
2
|
+
/** taken_over marks it, or moves the mark to now while its baseline has not frozen; off ends it */
|
|
3
|
+
takeover: SetTakeoverRequest.Takeover;
|
|
4
|
+
version: number;
|
|
5
|
+
}
|
|
6
|
+
export declare namespace SetTakeoverRequest {
|
|
7
|
+
/** taken_over marks it, or moves the mark to now while its baseline has not frozen; off ends it */
|
|
8
|
+
const Takeover: {
|
|
9
|
+
readonly Off: "off";
|
|
10
|
+
readonly TakenOver: "taken_over";
|
|
11
|
+
};
|
|
12
|
+
type Takeover = (typeof Takeover)[keyof typeof Takeover];
|
|
13
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 SetTakeoverRequest_exports = {};
|
|
20
|
+
__export(SetTakeoverRequest_exports, {
|
|
21
|
+
SetTakeoverRequest: () => SetTakeoverRequest
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(SetTakeoverRequest_exports);
|
|
24
|
+
var SetTakeoverRequest;
|
|
25
|
+
((SetTakeoverRequest2) => {
|
|
26
|
+
SetTakeoverRequest2.Takeover = {
|
|
27
|
+
Off: "off",
|
|
28
|
+
TakenOver: "taken_over"
|
|
29
|
+
};
|
|
30
|
+
})(SetTakeoverRequest || (SetTakeoverRequest = {}));
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
SetTakeoverRequest
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=SetTakeoverRequest.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var SetTakeoverRequest;
|
|
2
|
+
((SetTakeoverRequest2) => {
|
|
3
|
+
SetTakeoverRequest2.Takeover = {
|
|
4
|
+
Off: "off",
|
|
5
|
+
TakenOver: "taken_over"
|
|
6
|
+
};
|
|
7
|
+
})(SetTakeoverRequest || (SetTakeoverRequest = {}));
|
|
8
|
+
export {
|
|
9
|
+
SetTakeoverRequest
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=SetTakeoverRequest.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 SnapshotRange_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(SnapshotRange_exports);
|
|
17
|
+
//# sourceMappingURL=SnapshotRange.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=SnapshotRange.mjs.map
|
|
@@ -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
|
|
@@ -6,11 +6,11 @@ export interface UtilizationTarget {
|
|
|
6
6
|
target?: (string | null) | undefined;
|
|
7
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
8
|
measured?: (number | null) | undefined;
|
|
9
|
-
/** The hours measured covers */
|
|
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
10
|
measured_hours?: number | undefined;
|
|
11
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
12
|
measured_scaling?: (number | null) | undefined;
|
|
13
|
-
/** The hours measured_scaling covers */
|
|
13
|
+
/** The hours the agent watched in the hours measured_scaling covers, as measured_hours counts them */
|
|
14
14
|
scaling_hours?: number | undefined;
|
|
15
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
16
|
against_target?: (UtilizationTarget.AgainstTarget | null) | undefined;
|
|
@@ -6,11 +6,11 @@ export interface UtilizationTarget {
|
|
|
6
6
|
target?: (string | null) | undefined;
|
|
7
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
8
|
measured?: (number | null) | undefined;
|
|
9
|
-
/** The hours measured covers */
|
|
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
10
|
measured_hours?: number | undefined;
|
|
11
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
12
|
measured_scaling?: (number | null) | undefined;
|
|
13
|
-
/** The hours measured_scaling covers */
|
|
13
|
+
/** The hours the agent watched in the hours measured_scaling covers, as measured_hours counts them */
|
|
14
14
|
scaling_hours?: number | undefined;
|
|
15
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
16
|
against_target?: (UtilizationTarget.AgainstTarget | null) | undefined;
|
|
@@ -35,6 +35,10 @@ export interface WorkloadDetail {
|
|
|
35
35
|
/** Its share of each node's traffic out */
|
|
36
36
|
network_by_node: LevelFour.SentFromNode[];
|
|
37
37
|
events: LevelFour.WorkloadEvent[];
|
|
38
|
+
/** The Kubernetes events on the workload's pods seen in the window, newest last_at first, at most 500. Null when the cluster's agent never sent pod events, an empty list when it does and none fell in the window */
|
|
39
|
+
pod_events: LevelFour.WorkloadPodEvent[] | null;
|
|
40
|
+
/** Each container's latest termination the agent reported in the window, or that finished in it, per pod when the agent names it, newest finished_at first, at most 500. It can have finished before the window began: the agent reports the latest across the pods that ran in its window. Null when the cluster's agent never sent pod events, an empty list when it does and reported none */
|
|
41
|
+
last_terminations: LevelFour.WorkloadTermination[] | null;
|
|
38
42
|
/** Every recommendation published for this workload, newest first; never an unreviewed candidate */
|
|
39
43
|
recommendations: LevelFour.PublishedRecommendation[];
|
|
40
44
|
/** What shows each tool in workload.sized_by sizes it, per container and request */
|
|
@@ -35,6 +35,10 @@ export interface WorkloadDetail {
|
|
|
35
35
|
/** Its share of each node's traffic out */
|
|
36
36
|
network_by_node: LevelFour.SentFromNode[];
|
|
37
37
|
events: LevelFour.WorkloadEvent[];
|
|
38
|
+
/** The Kubernetes events on the workload's pods seen in the window, newest last_at first, at most 500. Null when the cluster's agent never sent pod events, an empty list when it does and none fell in the window */
|
|
39
|
+
pod_events: LevelFour.WorkloadPodEvent[] | null;
|
|
40
|
+
/** Each container's latest termination the agent reported in the window, or that finished in it, per pod when the agent names it, newest finished_at first, at most 500. It can have finished before the window began: the agent reports the latest across the pods that ran in its window. Null when the cluster's agent never sent pod events, an empty list when it does and reported none */
|
|
41
|
+
last_terminations: LevelFour.WorkloadTermination[] | null;
|
|
38
42
|
/** Every recommendation published for this workload, newest first; never an unreviewed candidate */
|
|
39
43
|
recommendations: LevelFour.PublishedRecommendation[];
|
|
40
44
|
/** What shows each tool in workload.sized_by sizes it, per container and request */
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface WorkloadPodEvent {
|
|
2
|
+
/** When Kubernetes first saw the event */
|
|
3
|
+
first_at: string;
|
|
4
|
+
/** When it last saw it */
|
|
5
|
+
last_at: string;
|
|
6
|
+
type: WorkloadPodEvent.Type;
|
|
7
|
+
/** BackOff, Unhealthy, Killing, FailedScheduling and the like */
|
|
8
|
+
reason: string;
|
|
9
|
+
pod: string;
|
|
10
|
+
/** Null for an event on the whole pod */
|
|
11
|
+
container?: (string | null) | undefined;
|
|
12
|
+
/** As Kubernetes wrote it, at most 512 characters */
|
|
13
|
+
message: string;
|
|
14
|
+
/** How many times Kubernetes counted it between first_at and last_at */
|
|
15
|
+
count: number;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace WorkloadPodEvent {
|
|
18
|
+
const Type: {
|
|
19
|
+
readonly Warning: "Warning";
|
|
20
|
+
readonly Normal: "Normal";
|
|
21
|
+
};
|
|
22
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
23
|
+
}
|