levelfour 1.2.0 → 1.3.1

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 (134) hide show
  1. package/README.md +5 -6
  2. package/dist/api/resources/costAlerts/client/requests/CreateAlertRequest.d.mts +2 -0
  3. package/dist/api/resources/costAlerts/client/requests/CreateAlertRequest.d.ts +2 -0
  4. package/dist/api/resources/costAlerts/client/requests/UpdateAlertRequest.d.mts +1 -0
  5. package/dist/api/resources/costAlerts/client/requests/UpdateAlertRequest.d.ts +1 -0
  6. package/dist/api/types/AutomationAction.d.mts +53 -0
  7. package/dist/api/types/AutomationAction.d.ts +53 -0
  8. package/dist/api/types/AutomationAction.js +64 -0
  9. package/dist/api/types/AutomationAction.mjs +40 -0
  10. package/dist/api/types/AutomationCaps.d.mts +6 -0
  11. package/dist/api/types/AutomationCaps.d.ts +6 -0
  12. package/dist/api/types/AutomationCaps.js +17 -0
  13. package/dist/api/types/AutomationCaps.mjs +1 -0
  14. package/dist/api/types/AutomationComponent.d.mts +11 -0
  15. package/dist/api/types/AutomationComponent.d.ts +11 -0
  16. package/dist/api/types/AutomationComponent.js +17 -0
  17. package/dist/api/types/AutomationComponent.mjs +1 -0
  18. package/dist/api/types/AutomationEvent.d.mts +16 -0
  19. package/dist/api/types/AutomationEvent.d.ts +16 -0
  20. package/dist/api/types/AutomationEvent.js +17 -0
  21. package/dist/api/types/AutomationEvent.mjs +1 -0
  22. package/dist/api/types/AutomationEventList.d.mts +6 -0
  23. package/dist/api/types/AutomationEventList.d.ts +6 -0
  24. package/dist/api/types/AutomationEventList.js +17 -0
  25. package/dist/api/types/AutomationEventList.mjs +1 -0
  26. package/dist/api/types/AutomationEventListResponse.d.mts +6 -0
  27. package/dist/api/types/AutomationEventListResponse.d.ts +6 -0
  28. package/dist/api/types/AutomationEventListResponse.js +17 -0
  29. package/dist/api/types/AutomationEventListResponse.mjs +1 -0
  30. package/dist/api/types/AutomationSettings.d.mts +18 -0
  31. package/dist/api/types/AutomationSettings.d.ts +18 -0
  32. package/dist/api/types/AutomationSettings.js +17 -0
  33. package/dist/api/types/AutomationSettings.mjs +1 -0
  34. package/dist/api/types/AutomationSteps.d.mts +6 -0
  35. package/dist/api/types/AutomationSteps.d.ts +6 -0
  36. package/dist/api/types/AutomationSteps.js +17 -0
  37. package/dist/api/types/AutomationSteps.mjs +1 -0
  38. package/dist/api/types/ChildrenSavings.d.mts +12 -0
  39. package/dist/api/types/ChildrenSavings.d.ts +12 -0
  40. package/dist/api/types/ChildrenSavings.js +17 -0
  41. package/dist/api/types/ChildrenSavings.mjs +1 -0
  42. package/dist/api/types/ClusterAutomation.d.mts +8 -0
  43. package/dist/api/types/ClusterAutomation.d.ts +8 -0
  44. package/dist/api/types/ClusterAutomation.js +17 -0
  45. package/dist/api/types/ClusterAutomation.mjs +1 -0
  46. package/dist/api/types/ClusterAutomationResponse.d.mts +6 -0
  47. package/dist/api/types/ClusterAutomationResponse.d.ts +6 -0
  48. package/dist/api/types/ClusterAutomationResponse.js +17 -0
  49. package/dist/api/types/ClusterAutomationResponse.mjs +1 -0
  50. package/dist/api/types/ContainerDetail.d.mts +2 -0
  51. package/dist/api/types/ContainerDetail.d.ts +2 -0
  52. package/dist/api/types/ContainerJvmHeap.d.mts +21 -0
  53. package/dist/api/types/ContainerJvmHeap.d.ts +21 -0
  54. package/dist/api/types/ContainerJvmHeap.js +36 -0
  55. package/dist/api/types/ContainerJvmHeap.mjs +12 -0
  56. package/dist/api/types/ContainerLimitRange.d.mts +8 -0
  57. package/dist/api/types/ContainerLimitRange.d.ts +8 -0
  58. package/dist/api/types/ContainerLimitRange.js +17 -0
  59. package/dist/api/types/ContainerLimitRange.mjs +1 -0
  60. package/dist/api/types/ContainerResources.d.mts +5 -0
  61. package/dist/api/types/ContainerResources.d.ts +5 -0
  62. package/dist/api/types/ContainerResources.js +17 -0
  63. package/dist/api/types/ContainerResources.mjs +1 -0
  64. package/dist/api/types/CostAlert.d.mts +2 -0
  65. package/dist/api/types/CostAlert.d.ts +2 -0
  66. package/dist/api/types/MaintenanceWindow.d.mts +11 -0
  67. package/dist/api/types/MaintenanceWindow.d.ts +11 -0
  68. package/dist/api/types/MaintenanceWindow.js +17 -0
  69. package/dist/api/types/MaintenanceWindow.mjs +1 -0
  70. package/dist/api/types/NamespaceAutomation.d.mts +43 -0
  71. package/dist/api/types/NamespaceAutomation.d.ts +43 -0
  72. package/dist/api/types/NamespaceAutomation.js +50 -0
  73. package/dist/api/types/NamespaceAutomation.mjs +26 -0
  74. package/dist/api/types/NamespaceAutomationResponse.d.mts +6 -0
  75. package/dist/api/types/NamespaceAutomationResponse.d.ts +6 -0
  76. package/dist/api/types/NamespaceAutomationResponse.js +17 -0
  77. package/dist/api/types/NamespaceAutomationResponse.mjs +1 -0
  78. package/dist/api/types/NamespaceChannels.d.mts +7 -0
  79. package/dist/api/types/NamespaceChannels.d.ts +7 -0
  80. package/dist/api/types/NamespaceChannels.js +17 -0
  81. package/dist/api/types/NamespaceChannels.mjs +1 -0
  82. package/dist/api/types/NamespaceConstraints.d.mts +6 -0
  83. package/dist/api/types/NamespaceConstraints.d.ts +6 -0
  84. package/dist/api/types/NamespaceConstraints.js +17 -0
  85. package/dist/api/types/NamespaceConstraints.mjs +1 -0
  86. package/dist/api/types/NamespaceConstraintsResponse.d.mts +6 -0
  87. package/dist/api/types/NamespaceConstraintsResponse.d.ts +6 -0
  88. package/dist/api/types/NamespaceConstraintsResponse.js +17 -0
  89. package/dist/api/types/NamespaceConstraintsResponse.mjs +1 -0
  90. package/dist/api/types/NamespaceLimitRange.d.mts +6 -0
  91. package/dist/api/types/NamespaceLimitRange.d.ts +6 -0
  92. package/dist/api/types/NamespaceLimitRange.js +17 -0
  93. package/dist/api/types/NamespaceLimitRange.mjs +1 -0
  94. package/dist/api/types/NamespaceResourceQuota.d.mts +8 -0
  95. package/dist/api/types/NamespaceResourceQuota.d.ts +8 -0
  96. package/dist/api/types/NamespaceResourceQuota.js +17 -0
  97. package/dist/api/types/NamespaceResourceQuota.mjs +1 -0
  98. package/dist/api/types/NodeDetail.d.mts +1 -1
  99. package/dist/api/types/NodeDetail.d.ts +1 -1
  100. package/dist/api/types/NodePoolDetail.d.mts +2 -0
  101. package/dist/api/types/NodePoolDetail.d.ts +2 -0
  102. package/dist/api/types/ProviderBreakdownItem.d.mts +2 -0
  103. package/dist/api/types/ProviderBreakdownItem.d.ts +2 -0
  104. package/dist/api/types/QuotaResources.d.mts +6 -0
  105. package/dist/api/types/QuotaResources.d.ts +6 -0
  106. package/dist/api/types/QuotaResources.js +17 -0
  107. package/dist/api/types/QuotaResources.mjs +1 -0
  108. package/dist/api/types/ReliabilityParams.d.mts +2 -0
  109. package/dist/api/types/ReliabilityParams.d.ts +2 -0
  110. package/dist/api/types/ResourceRatio.d.mts +4 -0
  111. package/dist/api/types/ResourceRatio.d.ts +4 -0
  112. package/dist/api/types/ResourceRatio.js +17 -0
  113. package/dist/api/types/ResourceRatio.mjs +1 -0
  114. package/dist/api/types/SetAutomationRequest.d.mts +8 -0
  115. package/dist/api/types/SetAutomationRequest.d.ts +8 -0
  116. package/dist/api/types/SetAutomationRequest.js +17 -0
  117. package/dist/api/types/SetAutomationRequest.mjs +1 -0
  118. package/dist/api/types/SetNamespaceAutomationRequest.d.mts +16 -0
  119. package/dist/api/types/SetNamespaceAutomationRequest.d.ts +16 -0
  120. package/dist/api/types/SetNamespaceAutomationRequest.js +39 -0
  121. package/dist/api/types/SetNamespaceAutomationRequest.mjs +15 -0
  122. package/dist/api/types/StopAutomationRequest.d.mts +5 -0
  123. package/dist/api/types/StopAutomationRequest.d.ts +5 -0
  124. package/dist/api/types/StopAutomationRequest.js +17 -0
  125. package/dist/api/types/StopAutomationRequest.mjs +1 -0
  126. package/dist/api/types/index.d.mts +27 -0
  127. package/dist/api/types/index.d.ts +27 -0
  128. package/dist/api/types/index.js +54 -0
  129. package/dist/api/types/index.mjs +27 -0
  130. package/dist/version.d.mts +1 -1
  131. package/dist/version.d.ts +1 -1
  132. package/dist/version.js +1 -1
  133. package/dist/version.mjs +1 -1
  134. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,5 @@
1
1
  # LevelFour Node SDK
2
2
 
3
- [![CI](https://github.com/LevelFourAI/levelfour-node/actions/workflows/ci.yml/badge.svg)](https://github.com/LevelFourAI/levelfour-node/actions/workflows/ci.yml)
4
3
  [![npm](https://img.shields.io/npm/v/levelfour)](https://www.npmjs.com/package/levelfour)
5
4
  [![Downloads](https://img.shields.io/npm/dm/levelfour)](https://www.npmjs.com/package/levelfour)
6
5
 
@@ -354,16 +353,16 @@ const client = new LevelFourClient({
354
353
 
355
354
  ## Versioning
356
355
 
357
- This SDK follows [Semantic Versioning](https://semver.org/). While on `v0.x`, minor versions may include breaking changes. After `v1.0.0`, breaking changes will only ship in major version bumps.
356
+ This SDK follows [Semantic Versioning](https://semver.org/). After `v1.0.0`, breaking changes will only ship in major version bumps.
358
357
 
359
- ## Contributing
358
+ ## Support
360
359
 
361
- See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and guidelines.
360
+ Docs are at [docs.levelfour.ai](https://docs.levelfour.ai). For help, email support@levelfour.ai.
362
361
 
363
362
  ## Security
364
363
 
365
- To report vulnerabilities, see [SECURITY.md](SECURITY.md).
364
+ To report a vulnerability, email security@levelfour.ai.
366
365
 
367
366
  ## License
368
367
 
369
- Apache-2.0 - see [LICENSE](LICENSE).
368
+ Apache-2.0.
@@ -29,4 +29,6 @@ export interface CreateAlertRequest {
29
29
  slack_channel_ids?: string[] | null;
30
30
  /** Deprecated and never read: use slack_channel_ids */
31
31
  slack_channel?: string | null;
32
+ /** Also send each firing to the organization's connected Datadog as an event */
33
+ datadog?: boolean;
32
34
  }
@@ -29,4 +29,6 @@ export interface CreateAlertRequest {
29
29
  slack_channel_ids?: string[] | null;
30
30
  /** Deprecated and never read: use slack_channel_ids */
31
31
  slack_channel?: string | null;
32
+ /** Also send each firing to the organization's connected Datadog as an event */
33
+ datadog?: boolean;
32
34
  }
@@ -15,5 +15,6 @@ export interface UpdateAlertRequest {
15
15
  slack_channel_ids?: string[] | null;
16
16
  /** Deprecated and never read: use slack_channel_ids */
17
17
  slack_channel?: string | null;
18
+ datadog?: boolean | null;
18
19
  enabled?: boolean | null;
19
20
  }
@@ -15,5 +15,6 @@ export interface UpdateAlertRequest {
15
15
  slack_channel_ids?: string[] | null;
16
16
  /** Deprecated and never read: use slack_channel_ids */
17
17
  slack_channel?: string | null;
18
+ datadog?: boolean | null;
18
19
  enabled?: boolean | null;
19
20
  }
@@ -0,0 +1,53 @@
1
+ import type * as LevelFour from "../index.mjs";
2
+ export interface AutomationAction {
3
+ id: string;
4
+ kind: AutomationAction.Kind;
5
+ status: AutomationAction.Status;
6
+ refusal_reason?: (AutomationAction.RefusalReason | null) | undefined;
7
+ before?: (LevelFour.ContainerResources | null) | undefined;
8
+ after?: (LevelFour.ContainerResources | null) | undefined;
9
+ /** The person whose opt-in the change acted on */
10
+ approved_by_email?: (string | null) | undefined;
11
+ /** The published recommendation the change serves */
12
+ recommendation_id?: (string | null) | undefined;
13
+ revert_requested_by?: (string | null) | undefined;
14
+ revert_requested_at?: (string | null) | undefined;
15
+ }
16
+ export declare namespace AutomationAction {
17
+ const Kind: {
18
+ readonly OomMemory: "oom_memory";
19
+ readonly ThrottleCpu: "throttle_cpu";
20
+ };
21
+ type Kind = (typeof Kind)[keyof typeof Kind];
22
+ const Status: {
23
+ readonly Approved: "approved";
24
+ readonly Refused: "refused";
25
+ readonly Applied: "applied";
26
+ readonly DeferredTimeout: "deferred_timeout";
27
+ readonly Infeasible: "infeasible";
28
+ readonly Rejected: "rejected";
29
+ readonly ActuationError: "actuation_error";
30
+ readonly RestartRequired: "restart_required";
31
+ readonly StaleTarget: "stale_target";
32
+ readonly Reverting: "reverting";
33
+ readonly Reverted: "reverted";
34
+ readonly RevertSkippedChanged: "revert_skipped_changed";
35
+ readonly RevertNotNeeded: "revert_not_needed";
36
+ readonly RevertsAtRollout: "reverts_at_rollout";
37
+ readonly OverrideExpired: "override_expired";
38
+ readonly Exhausted: "exhausted";
39
+ };
40
+ type Status = (typeof Status)[keyof typeof Status];
41
+ const RefusalReason: {
42
+ readonly AutomationDisabled: "automation_disabled";
43
+ readonly Paused: "paused";
44
+ readonly OutsideWindow: "outside_window";
45
+ readonly NamespaceNotEligible: "namespace_not_eligible";
46
+ readonly ClusterCap: "cluster_cap";
47
+ readonly WorkloadCap: "workload_cap";
48
+ readonly StepTooLarge: "step_too_large";
49
+ readonly NotAnIncrease: "not_an_increase";
50
+ readonly VpaManaged: "vpa_managed";
51
+ };
52
+ type RefusalReason = (typeof RefusalReason)[keyof typeof RefusalReason];
53
+ }
@@ -0,0 +1,53 @@
1
+ import type * as LevelFour from "../index.js";
2
+ export interface AutomationAction {
3
+ id: string;
4
+ kind: AutomationAction.Kind;
5
+ status: AutomationAction.Status;
6
+ refusal_reason?: (AutomationAction.RefusalReason | null) | undefined;
7
+ before?: (LevelFour.ContainerResources | null) | undefined;
8
+ after?: (LevelFour.ContainerResources | null) | undefined;
9
+ /** The person whose opt-in the change acted on */
10
+ approved_by_email?: (string | null) | undefined;
11
+ /** The published recommendation the change serves */
12
+ recommendation_id?: (string | null) | undefined;
13
+ revert_requested_by?: (string | null) | undefined;
14
+ revert_requested_at?: (string | null) | undefined;
15
+ }
16
+ export declare namespace AutomationAction {
17
+ const Kind: {
18
+ readonly OomMemory: "oom_memory";
19
+ readonly ThrottleCpu: "throttle_cpu";
20
+ };
21
+ type Kind = (typeof Kind)[keyof typeof Kind];
22
+ const Status: {
23
+ readonly Approved: "approved";
24
+ readonly Refused: "refused";
25
+ readonly Applied: "applied";
26
+ readonly DeferredTimeout: "deferred_timeout";
27
+ readonly Infeasible: "infeasible";
28
+ readonly Rejected: "rejected";
29
+ readonly ActuationError: "actuation_error";
30
+ readonly RestartRequired: "restart_required";
31
+ readonly StaleTarget: "stale_target";
32
+ readonly Reverting: "reverting";
33
+ readonly Reverted: "reverted";
34
+ readonly RevertSkippedChanged: "revert_skipped_changed";
35
+ readonly RevertNotNeeded: "revert_not_needed";
36
+ readonly RevertsAtRollout: "reverts_at_rollout";
37
+ readonly OverrideExpired: "override_expired";
38
+ readonly Exhausted: "exhausted";
39
+ };
40
+ type Status = (typeof Status)[keyof typeof Status];
41
+ const RefusalReason: {
42
+ readonly AutomationDisabled: "automation_disabled";
43
+ readonly Paused: "paused";
44
+ readonly OutsideWindow: "outside_window";
45
+ readonly NamespaceNotEligible: "namespace_not_eligible";
46
+ readonly ClusterCap: "cluster_cap";
47
+ readonly WorkloadCap: "workload_cap";
48
+ readonly StepTooLarge: "step_too_large";
49
+ readonly NotAnIncrease: "not_an_increase";
50
+ readonly VpaManaged: "vpa_managed";
51
+ };
52
+ type RefusalReason = (typeof RefusalReason)[keyof typeof RefusalReason];
53
+ }
@@ -0,0 +1,64 @@
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 AutomationAction_exports = {};
20
+ __export(AutomationAction_exports, {
21
+ AutomationAction: () => AutomationAction
22
+ });
23
+ module.exports = __toCommonJS(AutomationAction_exports);
24
+ var AutomationAction;
25
+ ((AutomationAction2) => {
26
+ AutomationAction2.Kind = {
27
+ OomMemory: "oom_memory",
28
+ ThrottleCpu: "throttle_cpu"
29
+ };
30
+ AutomationAction2.Status = {
31
+ Approved: "approved",
32
+ Refused: "refused",
33
+ Applied: "applied",
34
+ DeferredTimeout: "deferred_timeout",
35
+ Infeasible: "infeasible",
36
+ Rejected: "rejected",
37
+ ActuationError: "actuation_error",
38
+ RestartRequired: "restart_required",
39
+ StaleTarget: "stale_target",
40
+ Reverting: "reverting",
41
+ Reverted: "reverted",
42
+ RevertSkippedChanged: "revert_skipped_changed",
43
+ RevertNotNeeded: "revert_not_needed",
44
+ RevertsAtRollout: "reverts_at_rollout",
45
+ OverrideExpired: "override_expired",
46
+ Exhausted: "exhausted"
47
+ };
48
+ AutomationAction2.RefusalReason = {
49
+ AutomationDisabled: "automation_disabled",
50
+ Paused: "paused",
51
+ OutsideWindow: "outside_window",
52
+ NamespaceNotEligible: "namespace_not_eligible",
53
+ ClusterCap: "cluster_cap",
54
+ WorkloadCap: "workload_cap",
55
+ StepTooLarge: "step_too_large",
56
+ NotAnIncrease: "not_an_increase",
57
+ VpaManaged: "vpa_managed"
58
+ };
59
+ })(AutomationAction || (AutomationAction = {}));
60
+ // Annotate the CommonJS export names for ESM import in node:
61
+ 0 && (module.exports = {
62
+ AutomationAction
63
+ });
64
+ //# sourceMappingURL=AutomationAction.js.map
@@ -0,0 +1,40 @@
1
+ var AutomationAction;
2
+ ((AutomationAction2) => {
3
+ AutomationAction2.Kind = {
4
+ OomMemory: "oom_memory",
5
+ ThrottleCpu: "throttle_cpu"
6
+ };
7
+ AutomationAction2.Status = {
8
+ Approved: "approved",
9
+ Refused: "refused",
10
+ Applied: "applied",
11
+ DeferredTimeout: "deferred_timeout",
12
+ Infeasible: "infeasible",
13
+ Rejected: "rejected",
14
+ ActuationError: "actuation_error",
15
+ RestartRequired: "restart_required",
16
+ StaleTarget: "stale_target",
17
+ Reverting: "reverting",
18
+ Reverted: "reverted",
19
+ RevertSkippedChanged: "revert_skipped_changed",
20
+ RevertNotNeeded: "revert_not_needed",
21
+ RevertsAtRollout: "reverts_at_rollout",
22
+ OverrideExpired: "override_expired",
23
+ Exhausted: "exhausted"
24
+ };
25
+ AutomationAction2.RefusalReason = {
26
+ AutomationDisabled: "automation_disabled",
27
+ Paused: "paused",
28
+ OutsideWindow: "outside_window",
29
+ NamespaceNotEligible: "namespace_not_eligible",
30
+ ClusterCap: "cluster_cap",
31
+ WorkloadCap: "workload_cap",
32
+ StepTooLarge: "step_too_large",
33
+ NotAnIncrease: "not_an_increase",
34
+ VpaManaged: "vpa_managed"
35
+ };
36
+ })(AutomationAction || (AutomationAction = {}));
37
+ export {
38
+ AutomationAction
39
+ };
40
+ //# sourceMappingURL=AutomationAction.mjs.map
@@ -0,0 +1,6 @@
1
+ export interface AutomationCaps {
2
+ /** Changes the whole cluster may take in one hour */
3
+ cluster_per_hour?: number | undefined;
4
+ /** Changes one workload may take in one day */
5
+ workload_per_day?: number | undefined;
6
+ }
@@ -0,0 +1,6 @@
1
+ export interface AutomationCaps {
2
+ /** Changes the whole cluster may take in one hour */
3
+ cluster_per_hour?: number | undefined;
4
+ /** Changes one workload may take in one day */
5
+ workload_per_day?: number | undefined;
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 AutomationCaps_exports = {};
16
+ module.exports = __toCommonJS(AutomationCaps_exports);
17
+ //# sourceMappingURL=AutomationCaps.js.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=AutomationCaps.mjs.map
@@ -0,0 +1,11 @@
1
+ export interface AutomationComponent {
2
+ version?: (string | null) | undefined;
3
+ server_version?: (string | null) | undefined;
4
+ last_seen_at: string;
5
+ /** The namespaces its RBAC lets it change */
6
+ permitted_namespaces: string[];
7
+ /** The last stop it confirmed */
8
+ paused_ack_version: number;
9
+ /** It synced in the last five minutes */
10
+ connected: boolean;
11
+ }
@@ -0,0 +1,11 @@
1
+ export interface AutomationComponent {
2
+ version?: (string | null) | undefined;
3
+ server_version?: (string | null) | undefined;
4
+ last_seen_at: string;
5
+ /** The namespaces its RBAC lets it change */
6
+ permitted_namespaces: string[];
7
+ /** The last stop it confirmed */
8
+ paused_ack_version: number;
9
+ /** It synced in the last five minutes */
10
+ connected: boolean;
11
+ }
@@ -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 AutomationComponent_exports = {};
16
+ module.exports = __toCommonJS(AutomationComponent_exports);
17
+ //# sourceMappingURL=AutomationComponent.js.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=AutomationComponent.mjs.map
@@ -0,0 +1,16 @@
1
+ import type * as LevelFour from "../index.mjs";
2
+ export interface AutomationEvent {
3
+ event_id: string;
4
+ /** What the component reported (revert_finished, with no pod, ends a revert with detail.outcome and its pod counts) or what a person changed */
5
+ type: string;
6
+ occurred_at: string;
7
+ /** A person's email, or levelfour-automation for the component */
8
+ actor?: (string | null) | undefined;
9
+ namespace?: (string | null) | undefined;
10
+ workload_kind?: (string | null) | undefined;
11
+ workload_name?: (string | null) | undefined;
12
+ container?: (string | null) | undefined;
13
+ pod?: (string | null) | undefined;
14
+ action?: (LevelFour.AutomationAction | null) | undefined;
15
+ detail: Record<string, unknown>;
16
+ }
@@ -0,0 +1,16 @@
1
+ import type * as LevelFour from "../index.js";
2
+ export interface AutomationEvent {
3
+ event_id: string;
4
+ /** What the component reported (revert_finished, with no pod, ends a revert with detail.outcome and its pod counts) or what a person changed */
5
+ type: string;
6
+ occurred_at: string;
7
+ /** A person's email, or levelfour-automation for the component */
8
+ actor?: (string | null) | undefined;
9
+ namespace?: (string | null) | undefined;
10
+ workload_kind?: (string | null) | undefined;
11
+ workload_name?: (string | null) | undefined;
12
+ container?: (string | null) | undefined;
13
+ pod?: (string | null) | undefined;
14
+ action?: (LevelFour.AutomationAction | null) | undefined;
15
+ detail: Record<string, unknown>;
16
+ }
@@ -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 AutomationEvent_exports = {};
16
+ module.exports = __toCommonJS(AutomationEvent_exports);
17
+ //# sourceMappingURL=AutomationEvent.js.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=AutomationEvent.mjs.map
@@ -0,0 +1,6 @@
1
+ import type * as LevelFour from "../index.mjs";
2
+ export interface AutomationEventList {
3
+ /** Newest first */
4
+ items: LevelFour.AutomationEvent[];
5
+ pagination: LevelFour.PaginationMeta;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as LevelFour from "../index.js";
2
+ export interface AutomationEventList {
3
+ /** Newest first */
4
+ items: LevelFour.AutomationEvent[];
5
+ pagination: LevelFour.PaginationMeta;
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 AutomationEventList_exports = {};
16
+ module.exports = __toCommonJS(AutomationEventList_exports);
17
+ //# sourceMappingURL=AutomationEventList.js.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=AutomationEventList.mjs.map
@@ -0,0 +1,6 @@
1
+ import type * as LevelFour from "../index.mjs";
2
+ export interface AutomationEventListResponse {
3
+ success?: boolean | undefined;
4
+ data: LevelFour.AutomationEventList;
5
+ timestamp: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as LevelFour from "../index.js";
2
+ export interface AutomationEventListResponse {
3
+ success?: boolean | undefined;
4
+ data: LevelFour.AutomationEventList;
5
+ timestamp: 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 AutomationEventListResponse_exports = {};
16
+ module.exports = __toCommonJS(AutomationEventListResponse_exports);
17
+ //# sourceMappingURL=AutomationEventListResponse.js.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=AutomationEventListResponse.mjs.map
@@ -0,0 +1,18 @@
1
+ import type * as LevelFour from "../index.mjs";
2
+ export interface AutomationSettings {
3
+ enabled: boolean;
4
+ paused: boolean;
5
+ paused_by?: (string | null) | undefined;
6
+ paused_at?: (string | null) | undefined;
7
+ paused_reason?: (string | null) | undefined;
8
+ /** Raised by every stop; the component echoes it once it has stopped */
9
+ pause_version: number;
10
+ /** When it may act, in UTC; empty is any time */
11
+ window: LevelFour.MaintenanceWindow[];
12
+ caps: LevelFour.AutomationCaps;
13
+ steps: LevelFour.AutomationSteps;
14
+ /** Send it back to change the settings; 0 before they were first saved */
15
+ version: number;
16
+ updated_by?: (string | null) | undefined;
17
+ updated_at?: (string | null) | undefined;
18
+ }
@@ -0,0 +1,18 @@
1
+ import type * as LevelFour from "../index.js";
2
+ export interface AutomationSettings {
3
+ enabled: boolean;
4
+ paused: boolean;
5
+ paused_by?: (string | null) | undefined;
6
+ paused_at?: (string | null) | undefined;
7
+ paused_reason?: (string | null) | undefined;
8
+ /** Raised by every stop; the component echoes it once it has stopped */
9
+ pause_version: number;
10
+ /** When it may act, in UTC; empty is any time */
11
+ window: LevelFour.MaintenanceWindow[];
12
+ caps: LevelFour.AutomationCaps;
13
+ steps: LevelFour.AutomationSteps;
14
+ /** Send it back to change the settings; 0 before they were first saved */
15
+ version: number;
16
+ updated_by?: (string | null) | undefined;
17
+ updated_at?: (string | null) | undefined;
18
+ }
@@ -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 AutomationSettings_exports = {};
16
+ module.exports = __toCommonJS(AutomationSettings_exports);
17
+ //# sourceMappingURL=AutomationSettings.js.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=AutomationSettings.mjs.map
@@ -0,0 +1,6 @@
1
+ export interface AutomationSteps {
2
+ /** The most one change raises memory, in percent */
3
+ memory_pct?: number | undefined;
4
+ /** The most one change raises a CPU limit, in percent */
5
+ cpu_pct?: number | undefined;
6
+ }
@@ -0,0 +1,6 @@
1
+ export interface AutomationSteps {
2
+ /** The most one change raises memory, in percent */
3
+ memory_pct?: number | undefined;
4
+ /** The most one change raises a CPU limit, in percent */
5
+ cpu_pct?: number | undefined;
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 AutomationSteps_exports = {};
16
+ module.exports = __toCommonJS(AutomationSteps_exports);
17
+ //# sourceMappingURL=AutomationSteps.js.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=AutomationSteps.mjs.map
@@ -0,0 +1,12 @@
1
+ /**
2
+ * What a batch parent's children save. The parent stores none of it, so a total over rows
3
+ * counts each saving once.
4
+ */
5
+ export interface ChildrenSavings {
6
+ /** Monthly savings across the parent's children */
7
+ monthly_savings: number;
8
+ /** Annual savings across the parent's children */
9
+ annual_savings: number;
10
+ /** Share of the children's current spending saved, when they report spending */
11
+ savings_percentage?: (number | null) | undefined;
12
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * What a batch parent's children save. The parent stores none of it, so a total over rows
3
+ * counts each saving once.
4
+ */
5
+ export interface ChildrenSavings {
6
+ /** Monthly savings across the parent's children */
7
+ monthly_savings: number;
8
+ /** Annual savings across the parent's children */
9
+ annual_savings: number;
10
+ /** Share of the children's current spending saved, when they report spending */
11
+ savings_percentage?: (number | null) | undefined;
12
+ }
@@ -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 ChildrenSavings_exports = {};
16
+ module.exports = __toCommonJS(ChildrenSavings_exports);
17
+ //# sourceMappingURL=ChildrenSavings.js.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=ChildrenSavings.mjs.map