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
@@ -6,7 +6,7 @@ export interface AutomationEvent {
6
6
  /** raise or cut for a step's events by the way it moves the request, rollback for a rollback or revert, settings for what a person changed, other for the rest */
7
7
  category: AutomationEvent.Category;
8
8
  occurred_at: string;
9
- /** A person's email, or levelfour-automation for the component */
9
+ /** A person's email, levelfour-automation for the component, or levelfour-takeover (automatic) for a takeover's freeze, whose detail names the admin who marked it */
10
10
  actor?: (string | null) | undefined;
11
11
  namespace?: (string | null) | undefined;
12
12
  workload_kind?: (string | null) | undefined;
@@ -6,7 +6,7 @@ export interface AutomationEvent {
6
6
  /** raise or cut for a step's events by the way it moves the request, rollback for a rollback or revert, settings for what a person changed, other for the rest */
7
7
  category: AutomationEvent.Category;
8
8
  occurred_at: string;
9
- /** A person's email, or levelfour-automation for the component */
9
+ /** A person's email, levelfour-automation for the component, or levelfour-takeover (automatic) for a takeover's freeze, whose detail names the admin who marked it */
10
10
  actor?: (string | null) | undefined;
11
11
  namespace?: (string | null) | undefined;
12
12
  workload_kind?: (string | null) | undefined;
@@ -3,8 +3,11 @@ export interface AutoscalerInsight {
3
3
  utilization_targets: LevelFour.UtilizationTarget[];
4
4
  /** Scales on something other than CPU or memory */
5
5
  custom_metric: boolean;
6
+ /** 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 */
7
+ scaler_hours_watched: number;
8
+ /** Hours of scaler_hours_watched it sat at max replicas */
6
9
  hours_at_max: number;
7
- /** Of the hours the agent measured it in the window */
10
+ /** 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 */
8
11
  at_max_share?: (number | null) | undefined;
9
12
  /** Over the window; null when no hour was measured */
10
13
  replicas?: (LevelFour.ReplicaSpan | null) | undefined;
@@ -3,8 +3,11 @@ export interface AutoscalerInsight {
3
3
  utilization_targets: LevelFour.UtilizationTarget[];
4
4
  /** Scales on something other than CPU or memory */
5
5
  custom_metric: boolean;
6
+ /** 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 */
7
+ scaler_hours_watched: number;
8
+ /** Hours of scaler_hours_watched it sat at max replicas */
6
9
  hours_at_max: number;
7
- /** Of the hours the agent measured it in the window */
10
+ /** 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 */
8
11
  at_max_share?: (number | null) | undefined;
9
12
  /** Over the window; null when no hour was measured */
10
13
  replicas?: (LevelFour.ReplicaSpan | null) | undefined;
@@ -66,7 +66,7 @@ export interface ClusterItem {
66
66
  /** The pods' traffic, as the Network lens counts it, and the data transfer billed to the cluster */
67
67
  network: LevelFour.Traffic;
68
68
  reliability: LevelFour.NamespaceReliability;
69
- /** 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 */
69
+ /** 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 */
70
70
  workloads_at_risk: number;
71
71
  /** Null until the cluster has workloads or a priced day */
72
72
  health?: (LevelFour.ClusterHealth | null) | undefined;
@@ -66,7 +66,7 @@ export interface ClusterItem {
66
66
  /** The pods' traffic, as the Network lens counts it, and the data transfer billed to the cluster */
67
67
  network: LevelFour.Traffic;
68
68
  reliability: LevelFour.NamespaceReliability;
69
- /** 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 */
69
+ /** 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 */
70
70
  workloads_at_risk: number;
71
71
  /** Null until the cluster has workloads or a priced day */
72
72
  health?: (LevelFour.ClusterHealth | null) | undefined;
@@ -1,5 +1,7 @@
1
1
  import type * as LevelFour from "../index.mjs";
2
2
  export interface ClusterSummary {
3
+ /** The cluster's latest batch, the snapshot every current-state figure reflects: node, namespace, workload and claim counts, pods, workloads by kind, autoscalers and workloads at risk. Null until it reports one */
4
+ as_of?: (string | null) | undefined;
3
5
  /** The cluster's cost, as the clusters list reads it */
4
6
  total_cost?: (number | null) | undefined;
5
7
  idle_cost?: (number | null) | undefined;
@@ -23,7 +25,7 @@ export interface ClusterSummary {
23
25
  /** While awaiting_bill, the day the first priced day should show: 2 days after the later of the bill's last day and the day the cluster connected, since a bill runs a day or two behind. Null otherwise */
24
26
  bill_expected_by?: (string | null) | undefined;
25
27
  nodes_by_purchase_type: LevelFour.PurchaseTypeShare[];
26
- /** 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 */
28
+ /** 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 */
27
29
  workloads_at_risk: number;
28
30
  /** Pods Pending on average in the latest hour the agent reported */
29
31
  pods_pending?: (number | null) | undefined;
@@ -1,5 +1,7 @@
1
1
  import type * as LevelFour from "../index.js";
2
2
  export interface ClusterSummary {
3
+ /** The cluster's latest batch, the snapshot every current-state figure reflects: node, namespace, workload and claim counts, pods, workloads by kind, autoscalers and workloads at risk. Null until it reports one */
4
+ as_of?: (string | null) | undefined;
3
5
  /** The cluster's cost, as the clusters list reads it */
4
6
  total_cost?: (number | null) | undefined;
5
7
  idle_cost?: (number | null) | undefined;
@@ -23,7 +25,7 @@ export interface ClusterSummary {
23
25
  /** While awaiting_bill, the day the first priced day should show: 2 days after the later of the bill's last day and the day the cluster connected, since a bill runs a day or two behind. Null otherwise */
24
26
  bill_expected_by?: (string | null) | undefined;
25
27
  nodes_by_purchase_type: LevelFour.PurchaseTypeShare[];
26
- /** 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 */
28
+ /** 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 */
27
29
  workloads_at_risk: number;
28
30
  /** Pods Pending on average in the latest hour the agent reported */
29
31
  pods_pending?: (number | null) | undefined;
@@ -11,6 +11,8 @@ export interface FleetNamespace {
11
11
  /** 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 */
12
12
  cost_unknown_reason?: (FleetNamespace.CostUnknownReason | null) | undefined;
13
13
  cost_share?: (number | null) | undefined;
14
+ /** Its share, from 0 to 1, of the CPU and memory the listed clusters' containers requested in the window: the average of its share of each resource they requested any of, the basis the cost series' requested metric shares out. Whatever the search or the recommendations chips keep, so it does not move with them. Null for __idle__ and __node__, and when nothing was requested */
15
+ request_share?: (number | null) | undefined;
14
16
  /** Against the previous window of equal length, before any idle is shared */
15
17
  cost_change_pct?: (number | null) | undefined;
16
18
  cpu_cost?: (number | null) | undefined;
@@ -11,6 +11,8 @@ export interface FleetNamespace {
11
11
  /** 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 */
12
12
  cost_unknown_reason?: (FleetNamespace.CostUnknownReason | null) | undefined;
13
13
  cost_share?: (number | null) | undefined;
14
+ /** Its share, from 0 to 1, of the CPU and memory the listed clusters' containers requested in the window: the average of its share of each resource they requested any of, the basis the cost series' requested metric shares out. Whatever the search or the recommendations chips keep, so it does not move with them. Null for __idle__ and __node__, and when nothing was requested */
15
+ request_share?: (number | null) | undefined;
14
16
  /** Against the previous window of equal length, before any idle is shared */
15
17
  cost_change_pct?: (number | null) | undefined;
16
18
  cpu_cost?: (number | null) | undefined;
@@ -5,14 +5,14 @@ export interface FleetNodePool {
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 FleetNodePool {
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 FleetNodePool {
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 FleetNodePool {
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,5 +1,7 @@
1
1
  import type * as LevelFour from "../index.mjs";
2
2
  export interface FleetSummary {
3
+ /** The batches the current-state figures reflect (nodes, namespaces, workloads, pods and workloads at risk): each connected cluster's latest, newest and oldest across them. Null until a cluster reports a batch; a cluster without the agent reports none */
4
+ as_of?: (LevelFour.SnapshotRange | null) | undefined;
3
5
  /** The clusters' cost added up, as the clusters list reads it */
4
6
  total_cost?: (number | null) | undefined;
5
7
  idle_cost?: (number | null) | undefined;
@@ -33,7 +35,7 @@ export interface FleetSummary {
33
35
  bill_status: FleetSummary.BillStatus;
34
36
  /** While awaiting_bill, the earliest day a waiting cluster's first priced day should show */
35
37
  bill_expected_by?: (string | null) | undefined;
36
- /** 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 */
38
+ /** 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 */
37
39
  workloads_at_risk?: number | undefined;
38
40
  potential_savings?: (LevelFour.PotentialSavings | null) | undefined;
39
41
  realized_savings: LevelFour.RealizedTotal;
@@ -1,5 +1,7 @@
1
1
  import type * as LevelFour from "../index.js";
2
2
  export interface FleetSummary {
3
+ /** The batches the current-state figures reflect (nodes, namespaces, workloads, pods and workloads at risk): each connected cluster's latest, newest and oldest across them. Null until a cluster reports a batch; a cluster without the agent reports none */
4
+ as_of?: (LevelFour.SnapshotRange | null) | undefined;
3
5
  /** The clusters' cost added up, as the clusters list reads it */
4
6
  total_cost?: (number | null) | undefined;
5
7
  idle_cost?: (number | null) | undefined;
@@ -33,7 +35,7 @@ export interface FleetSummary {
33
35
  bill_status: FleetSummary.BillStatus;
34
36
  /** While awaiting_bill, the earliest day a waiting cluster's first priced day should show */
35
37
  bill_expected_by?: (string | null) | undefined;
36
- /** 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 */
38
+ /** 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 */
37
39
  workloads_at_risk?: number | undefined;
38
40
  potential_savings?: (LevelFour.PotentialSavings | null) | undefined;
39
41
  realized_savings: LevelFour.RealizedTotal;
@@ -3,6 +3,8 @@ export interface Indicator {
3
3
  severity: Indicator.Severity;
4
4
  container?: (string | null) | undefined;
5
5
  detail: string;
6
+ /** The first moment its condition held in the window, in UTC: the first hour the hourly rows show it on the first day the window's days do (oom, restarts, cpu_throttling, eviction, the usage rules, hpa_at_max), the batch that first read no replica ready (no_ready_replica, crash_looping), the hour pods sat Pending, or the start of a trend. Null for a rule on the current configuration, and once that day's hourly rows are gone */
7
+ since?: (string | null) | undefined;
6
8
  }
7
9
  export declare namespace Indicator {
8
10
  const Id: {
@@ -17,18 +19,15 @@ export declare namespace Indicator {
17
19
  readonly CpuRequestNotSet: "cpu_request_not_set";
18
20
  readonly MemoryRequestNotSet: "memory_request_not_set";
19
21
  readonly MemoryLimitNotSet: "memory_limit_not_set";
20
- readonly RequestSetAtAdmission: "request_set_at_admission";
21
- readonly AwaitingSizing: "awaiting_sizing";
22
- readonly LivenessProbeMissing: "liveness_probe_missing";
23
- readonly ReadinessProbeMissing: "readiness_probe_missing";
22
+ readonly AdmittedLimitBelowHeap: "admitted_limit_below_heap";
24
23
  readonly OverProvisionedCpuRequest: "over_provisioned_cpu_request";
25
24
  readonly OverProvisionedMemoryRequest: "over_provisioned_memory_request";
26
25
  readonly Eviction: "eviction";
27
26
  readonly NoReadyReplica: "no_ready_replica";
27
+ readonly CrashLooping: "crash_looping";
28
28
  readonly PodsPending: "pods_pending";
29
29
  readonly HpaAtMax: "hpa_at_max";
30
30
  readonly PdbTooStrict: "pdb_too_strict";
31
- readonly PdbMissing: "pdb_missing";
32
31
  readonly NoTopologySpread: "no_topology_spread";
33
32
  };
34
33
  type Id = (typeof Id)[keyof typeof Id];
@@ -3,6 +3,8 @@ export interface Indicator {
3
3
  severity: Indicator.Severity;
4
4
  container?: (string | null) | undefined;
5
5
  detail: string;
6
+ /** The first moment its condition held in the window, in UTC: the first hour the hourly rows show it on the first day the window's days do (oom, restarts, cpu_throttling, eviction, the usage rules, hpa_at_max), the batch that first read no replica ready (no_ready_replica, crash_looping), the hour pods sat Pending, or the start of a trend. Null for a rule on the current configuration, and once that day's hourly rows are gone */
7
+ since?: (string | null) | undefined;
6
8
  }
7
9
  export declare namespace Indicator {
8
10
  const Id: {
@@ -17,18 +19,15 @@ export declare namespace Indicator {
17
19
  readonly CpuRequestNotSet: "cpu_request_not_set";
18
20
  readonly MemoryRequestNotSet: "memory_request_not_set";
19
21
  readonly MemoryLimitNotSet: "memory_limit_not_set";
20
- readonly RequestSetAtAdmission: "request_set_at_admission";
21
- readonly AwaitingSizing: "awaiting_sizing";
22
- readonly LivenessProbeMissing: "liveness_probe_missing";
23
- readonly ReadinessProbeMissing: "readiness_probe_missing";
22
+ readonly AdmittedLimitBelowHeap: "admitted_limit_below_heap";
24
23
  readonly OverProvisionedCpuRequest: "over_provisioned_cpu_request";
25
24
  readonly OverProvisionedMemoryRequest: "over_provisioned_memory_request";
26
25
  readonly Eviction: "eviction";
27
26
  readonly NoReadyReplica: "no_ready_replica";
27
+ readonly CrashLooping: "crash_looping";
28
28
  readonly PodsPending: "pods_pending";
29
29
  readonly HpaAtMax: "hpa_at_max";
30
30
  readonly PdbTooStrict: "pdb_too_strict";
31
- readonly PdbMissing: "pdb_missing";
32
31
  readonly NoTopologySpread: "no_topology_spread";
33
32
  };
34
33
  type Id = (typeof Id)[keyof typeof Id];
@@ -35,18 +35,15 @@ var Indicator;
35
35
  CpuRequestNotSet: "cpu_request_not_set",
36
36
  MemoryRequestNotSet: "memory_request_not_set",
37
37
  MemoryLimitNotSet: "memory_limit_not_set",
38
- RequestSetAtAdmission: "request_set_at_admission",
39
- AwaitingSizing: "awaiting_sizing",
40
- LivenessProbeMissing: "liveness_probe_missing",
41
- ReadinessProbeMissing: "readiness_probe_missing",
38
+ AdmittedLimitBelowHeap: "admitted_limit_below_heap",
42
39
  OverProvisionedCpuRequest: "over_provisioned_cpu_request",
43
40
  OverProvisionedMemoryRequest: "over_provisioned_memory_request",
44
41
  Eviction: "eviction",
45
42
  NoReadyReplica: "no_ready_replica",
43
+ CrashLooping: "crash_looping",
46
44
  PodsPending: "pods_pending",
47
45
  HpaAtMax: "hpa_at_max",
48
46
  PdbTooStrict: "pdb_too_strict",
49
- PdbMissing: "pdb_missing",
50
47
  NoTopologySpread: "no_topology_spread"
51
48
  };
52
49
  Indicator2.Severity = {
@@ -12,18 +12,15 @@ var Indicator;
12
12
  CpuRequestNotSet: "cpu_request_not_set",
13
13
  MemoryRequestNotSet: "memory_request_not_set",
14
14
  MemoryLimitNotSet: "memory_limit_not_set",
15
- RequestSetAtAdmission: "request_set_at_admission",
16
- AwaitingSizing: "awaiting_sizing",
17
- LivenessProbeMissing: "liveness_probe_missing",
18
- ReadinessProbeMissing: "readiness_probe_missing",
15
+ AdmittedLimitBelowHeap: "admitted_limit_below_heap",
19
16
  OverProvisionedCpuRequest: "over_provisioned_cpu_request",
20
17
  OverProvisionedMemoryRequest: "over_provisioned_memory_request",
21
18
  Eviction: "eviction",
22
19
  NoReadyReplica: "no_ready_replica",
20
+ CrashLooping: "crash_looping",
23
21
  PodsPending: "pods_pending",
24
22
  HpaAtMax: "hpa_at_max",
25
23
  PdbTooStrict: "pdb_too_strict",
26
- PdbMissing: "pdb_missing",
27
24
  NoTopologySpread: "no_topology_spread"
28
25
  };
29
26
  Indicator2.Severity = {
@@ -18,18 +18,15 @@ export declare namespace IndicatorCount {
18
18
  readonly CpuRequestNotSet: "cpu_request_not_set";
19
19
  readonly MemoryRequestNotSet: "memory_request_not_set";
20
20
  readonly MemoryLimitNotSet: "memory_limit_not_set";
21
- readonly RequestSetAtAdmission: "request_set_at_admission";
22
- readonly AwaitingSizing: "awaiting_sizing";
23
- readonly LivenessProbeMissing: "liveness_probe_missing";
24
- readonly ReadinessProbeMissing: "readiness_probe_missing";
21
+ readonly AdmittedLimitBelowHeap: "admitted_limit_below_heap";
25
22
  readonly OverProvisionedCpuRequest: "over_provisioned_cpu_request";
26
23
  readonly OverProvisionedMemoryRequest: "over_provisioned_memory_request";
27
24
  readonly Eviction: "eviction";
28
25
  readonly NoReadyReplica: "no_ready_replica";
26
+ readonly CrashLooping: "crash_looping";
29
27
  readonly PodsPending: "pods_pending";
30
28
  readonly HpaAtMax: "hpa_at_max";
31
29
  readonly PdbTooStrict: "pdb_too_strict";
32
- readonly PdbMissing: "pdb_missing";
33
30
  readonly NoTopologySpread: "no_topology_spread";
34
31
  };
35
32
  type Id = (typeof Id)[keyof typeof Id];
@@ -18,18 +18,15 @@ export declare namespace IndicatorCount {
18
18
  readonly CpuRequestNotSet: "cpu_request_not_set";
19
19
  readonly MemoryRequestNotSet: "memory_request_not_set";
20
20
  readonly MemoryLimitNotSet: "memory_limit_not_set";
21
- readonly RequestSetAtAdmission: "request_set_at_admission";
22
- readonly AwaitingSizing: "awaiting_sizing";
23
- readonly LivenessProbeMissing: "liveness_probe_missing";
24
- readonly ReadinessProbeMissing: "readiness_probe_missing";
21
+ readonly AdmittedLimitBelowHeap: "admitted_limit_below_heap";
25
22
  readonly OverProvisionedCpuRequest: "over_provisioned_cpu_request";
26
23
  readonly OverProvisionedMemoryRequest: "over_provisioned_memory_request";
27
24
  readonly Eviction: "eviction";
28
25
  readonly NoReadyReplica: "no_ready_replica";
26
+ readonly CrashLooping: "crash_looping";
29
27
  readonly PodsPending: "pods_pending";
30
28
  readonly HpaAtMax: "hpa_at_max";
31
29
  readonly PdbTooStrict: "pdb_too_strict";
32
- readonly PdbMissing: "pdb_missing";
33
30
  readonly NoTopologySpread: "no_topology_spread";
34
31
  };
35
32
  type Id = (typeof Id)[keyof typeof Id];
@@ -35,18 +35,15 @@ var IndicatorCount;
35
35
  CpuRequestNotSet: "cpu_request_not_set",
36
36
  MemoryRequestNotSet: "memory_request_not_set",
37
37
  MemoryLimitNotSet: "memory_limit_not_set",
38
- RequestSetAtAdmission: "request_set_at_admission",
39
- AwaitingSizing: "awaiting_sizing",
40
- LivenessProbeMissing: "liveness_probe_missing",
41
- ReadinessProbeMissing: "readiness_probe_missing",
38
+ AdmittedLimitBelowHeap: "admitted_limit_below_heap",
42
39
  OverProvisionedCpuRequest: "over_provisioned_cpu_request",
43
40
  OverProvisionedMemoryRequest: "over_provisioned_memory_request",
44
41
  Eviction: "eviction",
45
42
  NoReadyReplica: "no_ready_replica",
43
+ CrashLooping: "crash_looping",
46
44
  PodsPending: "pods_pending",
47
45
  HpaAtMax: "hpa_at_max",
48
46
  PdbTooStrict: "pdb_too_strict",
49
- PdbMissing: "pdb_missing",
50
47
  NoTopologySpread: "no_topology_spread"
51
48
  };
52
49
  IndicatorCount2.Severity = {
@@ -12,18 +12,15 @@ var IndicatorCount;
12
12
  CpuRequestNotSet: "cpu_request_not_set",
13
13
  MemoryRequestNotSet: "memory_request_not_set",
14
14
  MemoryLimitNotSet: "memory_limit_not_set",
15
- RequestSetAtAdmission: "request_set_at_admission",
16
- AwaitingSizing: "awaiting_sizing",
17
- LivenessProbeMissing: "liveness_probe_missing",
18
- ReadinessProbeMissing: "readiness_probe_missing",
15
+ AdmittedLimitBelowHeap: "admitted_limit_below_heap",
19
16
  OverProvisionedCpuRequest: "over_provisioned_cpu_request",
20
17
  OverProvisionedMemoryRequest: "over_provisioned_memory_request",
21
18
  Eviction: "eviction",
22
19
  NoReadyReplica: "no_ready_replica",
20
+ CrashLooping: "crash_looping",
23
21
  PodsPending: "pods_pending",
24
22
  HpaAtMax: "hpa_at_max",
25
23
  PdbTooStrict: "pdb_too_strict",
26
- PdbMissing: "pdb_missing",
27
24
  NoTopologySpread: "no_topology_spread"
28
25
  };
29
26
  IndicatorCount2.Severity = {
@@ -27,6 +27,18 @@ export interface NamespaceAutomation {
27
27
  blocked_by_label: boolean;
28
28
  /** The tools besides LevelFour sizing its workloads, so the component never acts there whatever is set here; empty when none does */
29
29
  other_rightsizers: LevelFour.OtherRightsizer[];
30
+ /** taken_over once an admin took it over from another rightsizer: new pods start at its containers' baselines whatever the mode */
31
+ takeover?: NamespaceAutomation.Takeover | undefined;
32
+ /** The admin who marked it taken over */
33
+ takeover_set_by?: (string | null) | undefined;
34
+ /** The mark: when it was marked taken over */
35
+ takeover_set_at?: (string | null) | undefined;
36
+ /** Until the freeze, when the component first reported it without the other tool's label */
37
+ takeover_label_off_at?: (string | null) | undefined;
38
+ /** When its baselines froze, at the first batch after the other tool's label went off with no value only another tool explains since; the automation stays out of it as other_rightsizer until then */
39
+ takeover_frozen_at?: (string | null) | undefined;
40
+ /** What keeps its containers off their baseline; empty when not taken over */
41
+ takeover_blockers?: LevelFour.TakeoverBlocker[] | undefined;
30
42
  }
31
43
  export declare namespace NamespaceAutomation {
32
44
  /** Automation acts only where recommendations are on */
@@ -60,4 +72,10 @@ export declare namespace NamespaceAutomation {
60
72
  readonly Apply: "apply";
61
73
  };
62
74
  type Mode = (typeof Mode)[keyof typeof Mode];
75
+ /** taken_over once an admin took it over from another rightsizer: new pods start at its containers' baselines whatever the mode */
76
+ const Takeover: {
77
+ readonly Off: "off";
78
+ readonly TakenOver: "taken_over";
79
+ };
80
+ type Takeover = (typeof Takeover)[keyof typeof Takeover];
63
81
  }
@@ -27,6 +27,18 @@ export interface NamespaceAutomation {
27
27
  blocked_by_label: boolean;
28
28
  /** The tools besides LevelFour sizing its workloads, so the component never acts there whatever is set here; empty when none does */
29
29
  other_rightsizers: LevelFour.OtherRightsizer[];
30
+ /** taken_over once an admin took it over from another rightsizer: new pods start at its containers' baselines whatever the mode */
31
+ takeover?: NamespaceAutomation.Takeover | undefined;
32
+ /** The admin who marked it taken over */
33
+ takeover_set_by?: (string | null) | undefined;
34
+ /** The mark: when it was marked taken over */
35
+ takeover_set_at?: (string | null) | undefined;
36
+ /** Until the freeze, when the component first reported it without the other tool's label */
37
+ takeover_label_off_at?: (string | null) | undefined;
38
+ /** When its baselines froze, at the first batch after the other tool's label went off with no value only another tool explains since; the automation stays out of it as other_rightsizer until then */
39
+ takeover_frozen_at?: (string | null) | undefined;
40
+ /** What keeps its containers off their baseline; empty when not taken over */
41
+ takeover_blockers?: LevelFour.TakeoverBlocker[] | undefined;
30
42
  }
31
43
  export declare namespace NamespaceAutomation {
32
44
  /** Automation acts only where recommendations are on */
@@ -60,4 +72,10 @@ export declare namespace NamespaceAutomation {
60
72
  readonly Apply: "apply";
61
73
  };
62
74
  type Mode = (typeof Mode)[keyof typeof Mode];
75
+ /** taken_over once an admin took it over from another rightsizer: new pods start at its containers' baselines whatever the mode */
76
+ const Takeover: {
77
+ readonly Off: "off";
78
+ readonly TakenOver: "taken_over";
79
+ };
80
+ type Takeover = (typeof Takeover)[keyof typeof Takeover];
63
81
  }
@@ -48,6 +48,10 @@ var NamespaceAutomation;
48
48
  Preview: "preview",
49
49
  Apply: "apply"
50
50
  };
51
+ NamespaceAutomation2.Takeover = {
52
+ Off: "off",
53
+ TakenOver: "taken_over"
54
+ };
51
55
  })(NamespaceAutomation || (NamespaceAutomation = {}));
52
56
  // Annotate the CommonJS export names for ESM import in node:
53
57
  0 && (module.exports = {
@@ -25,6 +25,10 @@ var NamespaceAutomation;
25
25
  Preview: "preview",
26
26
  Apply: "apply"
27
27
  };
28
+ NamespaceAutomation2.Takeover = {
29
+ Off: "off",
30
+ TakenOver: "taken_over"
31
+ };
28
32
  })(NamespaceAutomation || (NamespaceAutomation = {}));
29
33
  export {
30
34
  NamespaceAutomation
@@ -11,6 +11,8 @@ export interface NamespaceItem {
11
11
  /** 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 */
12
12
  cost_unknown_reason?: (NamespaceItem.CostUnknownReason | null) | undefined;
13
13
  cost_share?: (number | null) | undefined;
14
+ /** Its share, from 0 to 1, of the CPU and memory the listed clusters' containers requested in the window: the average of its share of each resource they requested any of, the basis the cost series' requested metric shares out. Whatever the search or the recommendations chips keep, so it does not move with them. Null for __idle__ and __node__, and when nothing was requested */
15
+ request_share?: (number | null) | undefined;
14
16
  /** Against the previous window of equal length, before any idle is shared */
15
17
  cost_change_pct?: (number | null) | undefined;
16
18
  cpu_cost?: (number | null) | undefined;
@@ -11,6 +11,8 @@ export interface NamespaceItem {
11
11
  /** 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 */
12
12
  cost_unknown_reason?: (NamespaceItem.CostUnknownReason | null) | undefined;
13
13
  cost_share?: (number | null) | undefined;
14
+ /** Its share, from 0 to 1, of the CPU and memory the listed clusters' containers requested in the window: the average of its share of each resource they requested any of, the basis the cost series' requested metric shares out. Whatever the search or the recommendations chips keep, so it does not move with them. Null for __idle__ and __node__, and when nothing was requested */
15
+ request_share?: (number | null) | undefined;
14
16
  /** Against the previous window of equal length, before any idle is shared */
15
17
  cost_change_pct?: (number | null) | undefined;
16
18
  cpu_cost?: (number | null) | undefined;
@@ -8,6 +8,6 @@ export interface NamespaceReliability {
8
8
  /** 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 the row's cluster measured every day of the window it reported */
9
9
  drained_pods?: (number | null) | undefined;
10
10
  pending_seconds?: (number | null) | undefined;
11
- /** 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 */
11
+ /** 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 */
12
12
  at_risk?: number | undefined;
13
13
  }
@@ -8,6 +8,6 @@ export interface NamespaceReliability {
8
8
  /** 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 the row's cluster measured every day of the window it reported */
9
9
  drained_pods?: (number | null) | undefined;
10
10
  pending_seconds?: (number | null) | undefined;
11
- /** 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 */
11
+ /** 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 */
12
12
  at_risk?: number | undefined;
13
13
  }
@@ -1,5 +1,5 @@
1
1
  export interface NoReadyShare {
2
- /** Current workloads with replicas and none ready (the no_ready_replica indicator) */
2
+ /** Current workloads with replicas and none ready in two batches in a row (the no_ready_replica and crash_looping indicators) */
3
3
  workloads: number;
4
4
  /** Their restarts in the window: a crash loop restarts every few minutes */
5
5
  restarts: number;
@@ -1,5 +1,5 @@
1
1
  export interface NoReadyShare {
2
- /** Current workloads with replicas and none ready (the no_ready_replica indicator) */
2
+ /** Current workloads with replicas and none ready in two batches in a row (the no_ready_replica and crash_looping indicators) */
3
3
  workloads: number;
4
4
  /** Their restarts in the window: a crash loop restarts every few minutes */
5
5
  restarts: number;
@@ -2,7 +2,7 @@ import type * as LevelFour from "../index.mjs";
2
2
  export interface NodeFacets {
3
3
  /** Rows per value over the rows every other filter keeps, so a chip reads what choosing it gives */
4
4
  purchase_type: LevelFour.FacetCount[];
5
- /** Nodes by their one status: not_ready, else pressure, else cordoned, else ready; a removed node under none */
5
+ /** Nodes by their one status: not_ready, else pressure, else cordoned, else ready; a removed node under interrupted when an interruption fired on it since the window's first day, else under none */
6
6
  status?: LevelFour.FacetCount[] | undefined;
7
7
  /** current for a node still in the cluster, removed for one gone from it that the list still shows */
8
8
  state?: LevelFour.FacetCount[] | undefined;
@@ -2,7 +2,7 @@ import type * as LevelFour from "../index.js";
2
2
  export interface NodeFacets {
3
3
  /** Rows per value over the rows every other filter keeps, so a chip reads what choosing it gives */
4
4
  purchase_type: LevelFour.FacetCount[];
5
- /** Nodes by their one status: not_ready, else pressure, else cordoned, else ready; a removed node under none */
5
+ /** Nodes by their one status: not_ready, else pressure, else cordoned, else ready; a removed node under interrupted when an interruption fired on it since the window's first day, else under none */
6
6
  status?: LevelFour.FacetCount[] | undefined;
7
7
  /** current for a node still in the cluster, removed for one gone from it that the list still shows */
8
8
  state?: LevelFour.FacetCount[] | undefined;