levelfour 1.10.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/api/types/AutomationEvent.d.mts +1 -1
  2. package/dist/api/types/AutomationEvent.d.ts +1 -1
  3. package/dist/api/types/AutoscalerInsight.d.mts +4 -1
  4. package/dist/api/types/AutoscalerInsight.d.ts +4 -1
  5. package/dist/api/types/ClusterItem.d.mts +1 -1
  6. package/dist/api/types/ClusterItem.d.ts +1 -1
  7. package/dist/api/types/ClusterSummary.d.mts +3 -1
  8. package/dist/api/types/ClusterSummary.d.ts +3 -1
  9. package/dist/api/types/FleetNamespace.d.mts +2 -0
  10. package/dist/api/types/FleetNamespace.d.ts +2 -0
  11. package/dist/api/types/FleetNodePool.d.mts +6 -2
  12. package/dist/api/types/FleetNodePool.d.ts +6 -2
  13. package/dist/api/types/FleetSummary.d.mts +3 -1
  14. package/dist/api/types/FleetSummary.d.ts +3 -1
  15. package/dist/api/types/Indicator.d.mts +4 -5
  16. package/dist/api/types/Indicator.d.ts +4 -5
  17. package/dist/api/types/Indicator.js +2 -5
  18. package/dist/api/types/Indicator.mjs +2 -5
  19. package/dist/api/types/IndicatorCount.d.mts +2 -5
  20. package/dist/api/types/IndicatorCount.d.ts +2 -5
  21. package/dist/api/types/IndicatorCount.js +2 -5
  22. package/dist/api/types/IndicatorCount.mjs +2 -5
  23. package/dist/api/types/NamespaceAutomation.d.mts +18 -0
  24. package/dist/api/types/NamespaceAutomation.d.ts +18 -0
  25. package/dist/api/types/NamespaceAutomation.js +4 -0
  26. package/dist/api/types/NamespaceAutomation.mjs +4 -0
  27. package/dist/api/types/NamespaceItem.d.mts +2 -0
  28. package/dist/api/types/NamespaceItem.d.ts +2 -0
  29. package/dist/api/types/NamespaceReliability.d.mts +1 -1
  30. package/dist/api/types/NamespaceReliability.d.ts +1 -1
  31. package/dist/api/types/NoReadyShare.d.mts +1 -1
  32. package/dist/api/types/NoReadyShare.d.ts +1 -1
  33. package/dist/api/types/NodeFacets.d.mts +1 -1
  34. package/dist/api/types/NodeFacets.d.ts +1 -1
  35. package/dist/api/types/NodeItem.d.mts +5 -3
  36. package/dist/api/types/NodeItem.d.ts +5 -3
  37. package/dist/api/types/NodePoolNode.d.mts +1 -1
  38. package/dist/api/types/NodePoolNode.d.ts +1 -1
  39. package/dist/api/types/NodePoolUsage.d.mts +6 -2
  40. package/dist/api/types/NodePoolUsage.d.ts +6 -2
  41. package/dist/api/types/PurchaseTypeShare.d.mts +4 -4
  42. package/dist/api/types/PurchaseTypeShare.d.ts +4 -4
  43. package/dist/api/types/ReliabilityTotals.d.mts +1 -1
  44. package/dist/api/types/ReliabilityTotals.d.ts +1 -1
  45. package/dist/api/types/ReplicaScaler.d.mts +4 -1
  46. package/dist/api/types/ReplicaScaler.d.ts +4 -1
  47. package/dist/api/types/ResourceCapacity.d.mts +1 -1
  48. package/dist/api/types/ResourceCapacity.d.ts +1 -1
  49. package/dist/api/types/SetTakeoverRequest.d.mts +13 -0
  50. package/dist/api/types/SetTakeoverRequest.d.ts +13 -0
  51. package/dist/api/types/SetTakeoverRequest.js +35 -0
  52. package/dist/api/types/SetTakeoverRequest.mjs +11 -0
  53. package/dist/api/types/SnapshotRange.d.mts +6 -0
  54. package/dist/api/types/SnapshotRange.d.ts +6 -0
  55. package/dist/api/types/SnapshotRange.js +17 -0
  56. package/dist/api/types/SnapshotRange.mjs +1 -0
  57. package/dist/api/types/TakeoverBlocker.d.mts +25 -0
  58. package/dist/api/types/TakeoverBlocker.d.ts +25 -0
  59. package/dist/api/types/TakeoverBlocker.js +42 -0
  60. package/dist/api/types/TakeoverBlocker.mjs +18 -0
  61. package/dist/api/types/UtilizationTarget.d.mts +2 -2
  62. package/dist/api/types/UtilizationTarget.d.ts +2 -2
  63. package/dist/api/types/index.d.mts +3 -0
  64. package/dist/api/types/index.d.ts +3 -0
  65. package/dist/api/types/index.js +6 -0
  66. package/dist/api/types/index.mjs +3 -0
  67. package/dist/version.d.mts +1 -1
  68. package/dist/version.d.ts +1 -1
  69. package/dist/version.js +1 -1
  70. package/dist/version.mjs +1 -1
  71. 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
- /** From the bill when priced, else from the label */
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;
@@ -53,6 +54,7 @@ export interface NodeItem {
53
54
  filesystem: LevelFour.NodeFilesystemUse;
54
55
  /** As of the latest hour reported */
55
56
  pids: LevelFour.PidUse;
57
+ /** The pods of the latest batch on it */
56
58
  pod_count: number;
57
59
  /** Pods running over allocatable pod slots */
58
60
  pod_slots_used?: (number | null) | undefined;
@@ -66,11 +68,11 @@ export interface NodeItem {
66
68
  do_not_disrupt?: boolean | undefined;
67
69
  /** 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
70
  blocking_pods?: number | undefined;
69
- /** The latest SpotInterrupted or CapacityReservationInstanceInterrupted event on the node */
71
+ /** 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
72
  interrupted_at?: (string | null) | undefined;
71
73
  }
72
74
  export declare namespace NodeItem {
73
- /** From the bill when priced, else from the label */
75
+ /** 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
76
  const PurchaseType: {
75
77
  readonly Spot: "spot";
76
78
  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
- /** From the bill when priced, else from the label */
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;
@@ -53,6 +54,7 @@ export interface NodeItem {
53
54
  filesystem: LevelFour.NodeFilesystemUse;
54
55
  /** As of the latest hour reported */
55
56
  pids: LevelFour.PidUse;
57
+ /** The pods of the latest batch on it */
56
58
  pod_count: number;
57
59
  /** Pods running over allocatable pod slots */
58
60
  pod_slots_used?: (number | null) | undefined;
@@ -66,11 +68,11 @@ export interface NodeItem {
66
68
  do_not_disrupt?: boolean | undefined;
67
69
  /** 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
70
  blocking_pods?: number | undefined;
69
- /** The latest SpotInterrupted or CapacityReservationInstanceInterrupted event on the node */
71
+ /** 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
72
  interrupted_at?: (string | null) | undefined;
71
73
  }
72
74
  export declare namespace NodeItem {
73
- /** From the bill when priced, else from the label */
75
+ /** 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
76
  const PurchaseType: {
75
77
  readonly Spot: "spot";
76
78
  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 requested in the latest live hour */
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 requested in the latest live hour */
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
- /** Nodes that ran in the group in the window */
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 request, in the latest hour the agent reported, as the Nodes list's rows read it; null while no pod on them was placed in that hour */
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
- /** Nodes that ran in the group in the window */
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 request, in the latest hour the agent reported, as the Nodes list's rows read it; null while no pod on them was placed in that hour */
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
- /** Nodes that ran in the window */
3
+ /** Instances that ran in the window under this purchase type */
4
4
  nodes: number;
5
- /** Node-hours on the bill, for commitment coverage */
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
- /** Null where the nodes are counted from their labels, not the bill */
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, by the bill's purchase type, else spot from a Spot label, else unknown */
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
- /** Nodes that ran in the window */
3
+ /** Instances that ran in the window under this purchase type */
4
4
  nodes: number;
5
- /** Node-hours on the bill, for commitment coverage */
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
- /** Null where the nodes are counted from their labels, not the bill */
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, by the bill's purchase type, else spot from a Spot label, else unknown */
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 or no ready replica. Medium and low never count. An ephemeral one, a pull-request environment, counts only with include_ephemeral */
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 or no ready replica. Medium and low never count. An ephemeral one, a pull-request environment, counts only with include_ephemeral */
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
- /** Of the hours the agent measured it in the window */
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
- /** Of the hours the agent measured it in the window */
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
- /** Each placed pod's own requests, init containers and overhead in */
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
- /** Each placed pod's own requests, init containers and overhead in */
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,6 @@
1
+ export interface SnapshotRange {
2
+ /** The latest batch of the cluster that reported last */
3
+ newest: string;
4
+ /** The latest batch of the cluster that reported longest ago */
5
+ oldest: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ export interface SnapshotRange {
2
+ /** The latest batch of the cluster that reported last */
3
+ newest: string;
4
+ /** The latest batch of the cluster that reported longest ago */
5
+ oldest: string;
6
+ }
@@ -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;
@@ -1096,6 +1096,7 @@ export * from "./SetNamespaceAutomationRequest.mjs";
1096
1096
  export * from "./SetNamespaceScopeRequest.mjs";
1097
1097
  export * from "./SetNodePricesRequest.mjs";
1098
1098
  export * from "./SetSizingPolicyRequest.mjs";
1099
+ export * from "./SetTakeoverRequest.mjs";
1099
1100
  export * from "./SetWorkloadAutomationRequest.mjs";
1100
1101
  export * from "./SizingEvidence.mjs";
1101
1102
  export * from "./SizingPolicies.mjs";
@@ -1115,6 +1116,7 @@ export * from "./SlackConnectionsData.mjs";
1115
1116
  export * from "./SlackConnectionsResponse.mjs";
1116
1117
  export * from "./SlackDisconnectData.mjs";
1117
1118
  export * from "./SlackDisconnectResponse.mjs";
1119
+ export * from "./SnapshotRange.mjs";
1118
1120
  export * from "./SourceDocumentUiPart.mjs";
1119
1121
  export * from "./SourcedValue.mjs";
1120
1122
  export * from "./SourceKey.mjs";
@@ -1195,6 +1197,7 @@ export * from "./TagValueRef.mjs";
1195
1197
  export * from "./TagValueSummary.mjs";
1196
1198
  export * from "./TagWindow.mjs";
1197
1199
  export * from "./Taint.mjs";
1200
+ export * from "./TakeoverBlocker.mjs";
1198
1201
  export * from "./TaskDestination.mjs";
1199
1202
  export * from "./TaskDestinationsData.mjs";
1200
1203
  export * from "./TaskDestinationsResponse.mjs";
@@ -1096,6 +1096,7 @@ export * from "./SetNamespaceAutomationRequest.js";
1096
1096
  export * from "./SetNamespaceScopeRequest.js";
1097
1097
  export * from "./SetNodePricesRequest.js";
1098
1098
  export * from "./SetSizingPolicyRequest.js";
1099
+ export * from "./SetTakeoverRequest.js";
1099
1100
  export * from "./SetWorkloadAutomationRequest.js";
1100
1101
  export * from "./SizingEvidence.js";
1101
1102
  export * from "./SizingPolicies.js";
@@ -1115,6 +1116,7 @@ export * from "./SlackConnectionsData.js";
1115
1116
  export * from "./SlackConnectionsResponse.js";
1116
1117
  export * from "./SlackDisconnectData.js";
1117
1118
  export * from "./SlackDisconnectResponse.js";
1119
+ export * from "./SnapshotRange.js";
1118
1120
  export * from "./SourceDocumentUiPart.js";
1119
1121
  export * from "./SourcedValue.js";
1120
1122
  export * from "./SourceKey.js";
@@ -1195,6 +1197,7 @@ export * from "./TagValueRef.js";
1195
1197
  export * from "./TagValueSummary.js";
1196
1198
  export * from "./TagWindow.js";
1197
1199
  export * from "./Taint.js";
1200
+ export * from "./TakeoverBlocker.js";
1198
1201
  export * from "./TaskDestination.js";
1199
1202
  export * from "./TaskDestinationsData.js";
1200
1203
  export * from "./TaskDestinationsResponse.js";