@openshift-migration-advisor/planner-sdk 0.13.3-4f3d8bb515ec → 0.13.3-a0b90cb3da5f

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.
@@ -15,6 +15,7 @@ docs/ClusterRequirementsRequest.md
15
15
  docs/ClusterRequirementsResponse.md
16
16
  docs/ClusterRequirementsStoredInput.md
17
17
  docs/ClusterSizing.md
18
+ docs/ClusterUtilization.md
18
19
  docs/ComplexityDiskScoreEntry.md
19
20
  docs/ComplexityOSNameEntry.md
20
21
  docs/ComplexityOSScoreEntry.md
@@ -108,6 +109,7 @@ src/models/ClusterRequirementsRequest.ts
108
109
  src/models/ClusterRequirementsResponse.ts
109
110
  src/models/ClusterRequirementsStoredInput.ts
110
111
  src/models/ClusterSizing.ts
112
+ src/models/ClusterUtilization.ts
111
113
  src/models/ComplexityDiskScoreEntry.ts
112
114
  src/models/ComplexityOSNameEntry.ts
113
115
  src/models/ComplexityOSScoreEntry.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/planner-sdk@0.13.3-4f3d8bb515ec
1
+ # @openshift-migration-advisor/planner-sdk@0.13.3-a0b90cb3da5f
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -111,6 +111,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
111
111
  - [ClusterRequirementsResponse](docs/ClusterRequirementsResponse.md)
112
112
  - [ClusterRequirementsStoredInput](docs/ClusterRequirementsStoredInput.md)
113
113
  - [ClusterSizing](docs/ClusterSizing.md)
114
+ - [ClusterUtilization](docs/ClusterUtilization.md)
114
115
  - [ComplexityDiskScoreEntry](docs/ComplexityDiskScoreEntry.md)
115
116
  - [ComplexityOSNameEntry](docs/ComplexityOSNameEntry.md)
116
117
  - [ComplexityOSScoreEntry](docs/ComplexityOSScoreEntry.md)
@@ -187,7 +188,7 @@ and is automatically generated by the
187
188
  [OpenAPI Generator](https://openapi-generator.tech) project:
188
189
 
189
190
  - API version: `v1alpha1`
190
- - Package version: `0.13.3-4f3d8bb515ec`
191
+ - Package version: `0.13.3-a0b90cb3da5f`
191
192
  - Generator version: `7.23.0-SNAPSHOT`
192
193
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
193
194
 
@@ -0,0 +1,68 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1alpha1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ClusterUtilization
16
+ */
17
+ export interface ClusterUtilization {
18
+ /**
19
+ * Average CPU utilization percentage (0-100)
20
+ * @type {number}
21
+ * @memberof ClusterUtilization
22
+ */
23
+ cpuAvg: number;
24
+ /**
25
+ * 95th percentile CPU utilization percentage (0-100)
26
+ * @type {number}
27
+ * @memberof ClusterUtilization
28
+ */
29
+ cpuP95: number;
30
+ /**
31
+ * Maximum CPU utilization percentage (0-100)
32
+ * @type {number}
33
+ * @memberof ClusterUtilization
34
+ */
35
+ cpuMax: number;
36
+ /**
37
+ * Average memory utilization percentage (0-100)
38
+ * @type {number}
39
+ * @memberof ClusterUtilization
40
+ */
41
+ memAvg: number;
42
+ /**
43
+ * 95th percentile memory utilization percentage (0-100)
44
+ * @type {number}
45
+ * @memberof ClusterUtilization
46
+ */
47
+ memP95: number;
48
+ /**
49
+ * Maximum memory utilization percentage (0-100)
50
+ * @type {number}
51
+ * @memberof ClusterUtilization
52
+ */
53
+ memMax: number;
54
+ /**
55
+ * Data coverage confidence percentage (0-100), calculated as vCPU-weighted coverage
56
+ * @type {number}
57
+ * @memberof ClusterUtilization
58
+ */
59
+ confidence: number;
60
+ }
61
+ /**
62
+ * Check if a given object implements the ClusterUtilization interface.
63
+ */
64
+ export declare function instanceOfClusterUtilization(value: object): value is ClusterUtilization;
65
+ export declare function ClusterUtilizationFromJSON(json: any): ClusterUtilization;
66
+ export declare function ClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterUtilization;
67
+ export declare function ClusterUtilizationToJSON(json: any): ClusterUtilization;
68
+ export declare function ClusterUtilizationToJSONTyped(value?: ClusterUtilization | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OpenShift Migration Advisor API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1alpha1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ClusterUtilization interface.
16
+ */
17
+ export function instanceOfClusterUtilization(value) {
18
+ if ((!('cpuAvg' in value) && !('cpu_avg' in value)) || (value['cpuAvg'] === undefined && value['cpu_avg'] === undefined))
19
+ return false;
20
+ if ((!('cpuP95' in value) && !('cpu_p95' in value)) || (value['cpuP95'] === undefined && value['cpu_p95'] === undefined))
21
+ return false;
22
+ if ((!('cpuMax' in value) && !('cpu_max' in value)) || (value['cpuMax'] === undefined && value['cpu_max'] === undefined))
23
+ return false;
24
+ if ((!('memAvg' in value) && !('mem_avg' in value)) || (value['memAvg'] === undefined && value['mem_avg'] === undefined))
25
+ return false;
26
+ if ((!('memP95' in value) && !('mem_p95' in value)) || (value['memP95'] === undefined && value['mem_p95'] === undefined))
27
+ return false;
28
+ if ((!('memMax' in value) && !('mem_max' in value)) || (value['memMax'] === undefined && value['mem_max'] === undefined))
29
+ return false;
30
+ if (!('confidence' in value) || value['confidence'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function ClusterUtilizationFromJSON(json) {
35
+ return ClusterUtilizationFromJSONTyped(json, false);
36
+ }
37
+ export function ClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'cpuAvg': json['cpu_avg'],
43
+ 'cpuP95': json['cpu_p95'],
44
+ 'cpuMax': json['cpu_max'],
45
+ 'memAvg': json['mem_avg'],
46
+ 'memP95': json['mem_p95'],
47
+ 'memMax': json['mem_max'],
48
+ 'confidence': json['confidence'],
49
+ };
50
+ }
51
+ export function ClusterUtilizationToJSON(json) {
52
+ return ClusterUtilizationToJSONTyped(json, false);
53
+ }
54
+ export function ClusterUtilizationToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'cpu_avg': value['cpuAvg'],
60
+ 'cpu_p95': value['cpuP95'],
61
+ 'cpu_max': value['cpuMax'],
62
+ 'mem_avg': value['memAvg'],
63
+ 'mem_p95': value['memP95'],
64
+ 'mem_max': value['memMax'],
65
+ 'confidence': value['confidence'],
66
+ };
67
+ }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { VCenter } from './VCenter.js';
13
13
  import type { Infra } from './Infra.js';
14
+ import type { ClusterUtilization } from './ClusterUtilization.js';
14
15
  import type { VMs } from './VMs.js';
15
16
  import type { ClusterFeatures } from './ClusterFeatures.js';
16
17
  /**
@@ -31,6 +32,12 @@ export interface InventoryData {
31
32
  * @memberof InventoryData
32
33
  */
33
34
  clusterFeatures?: ClusterFeatures;
35
+ /**
36
+ *
37
+ * @type {ClusterUtilization}
38
+ * @memberof InventoryData
39
+ */
40
+ clusterUtilization?: ClusterUtilization;
34
41
  /**
35
42
  *
36
43
  * @type {VMs}
@@ -13,6 +13,7 @@
13
13
  */
14
14
  import { VCenterFromJSON, VCenterToJSON, } from './VCenter.js';
15
15
  import { InfraFromJSON, InfraToJSON, } from './Infra.js';
16
+ import { ClusterUtilizationFromJSON, ClusterUtilizationToJSON, } from './ClusterUtilization.js';
16
17
  import { VMsFromJSON, VMsToJSON, } from './VMs.js';
17
18
  import { ClusterFeaturesFromJSON, ClusterFeaturesToJSON, } from './ClusterFeatures.js';
18
19
  /**
@@ -35,6 +36,7 @@ export function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
35
36
  return {
36
37
  'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
37
38
  'clusterFeatures': json['clusterFeatures'] == null ? undefined : ClusterFeaturesFromJSON(json['clusterFeatures']),
39
+ 'clusterUtilization': json['clusterUtilization'] == null ? undefined : ClusterUtilizationFromJSON(json['clusterUtilization']),
38
40
  'vms': VMsFromJSON(json['vms']),
39
41
  'infra': InfraFromJSON(json['infra']),
40
42
  };
@@ -49,6 +51,7 @@ export function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
49
51
  return {
50
52
  'vcenter': VCenterToJSON(value['vcenter']),
51
53
  'clusterFeatures': ClusterFeaturesToJSON(value['clusterFeatures']),
54
+ 'clusterUtilization': ClusterUtilizationToJSON(value['clusterUtilization']),
52
55
  'vms': VMsToJSON(value['vms']),
53
56
  'infra': InfraToJSON(value['infra']),
54
57
  };
@@ -9,6 +9,7 @@ export * from './ClusterRequirementsRequest.js';
9
9
  export * from './ClusterRequirementsResponse.js';
10
10
  export * from './ClusterRequirementsStoredInput.js';
11
11
  export * from './ClusterSizing.js';
12
+ export * from './ClusterUtilization.js';
12
13
  export * from './ComplexityDiskScoreEntry.js';
13
14
  export * from './ComplexityOSNameEntry.js';
14
15
  export * from './ComplexityOSScoreEntry.js';
@@ -11,6 +11,7 @@ export * from './ClusterRequirementsRequest.js';
11
11
  export * from './ClusterRequirementsResponse.js';
12
12
  export * from './ClusterRequirementsStoredInput.js';
13
13
  export * from './ClusterSizing.js';
14
+ export * from './ClusterUtilization.js';
14
15
  export * from './ComplexityDiskScoreEntry.js';
15
16
  export * from './ComplexityOSNameEntry.js';
16
17
  export * from './ComplexityOSScoreEntry.js';
@@ -0,0 +1,68 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1alpha1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ClusterUtilization
16
+ */
17
+ export interface ClusterUtilization {
18
+ /**
19
+ * Average CPU utilization percentage (0-100)
20
+ * @type {number}
21
+ * @memberof ClusterUtilization
22
+ */
23
+ cpuAvg: number;
24
+ /**
25
+ * 95th percentile CPU utilization percentage (0-100)
26
+ * @type {number}
27
+ * @memberof ClusterUtilization
28
+ */
29
+ cpuP95: number;
30
+ /**
31
+ * Maximum CPU utilization percentage (0-100)
32
+ * @type {number}
33
+ * @memberof ClusterUtilization
34
+ */
35
+ cpuMax: number;
36
+ /**
37
+ * Average memory utilization percentage (0-100)
38
+ * @type {number}
39
+ * @memberof ClusterUtilization
40
+ */
41
+ memAvg: number;
42
+ /**
43
+ * 95th percentile memory utilization percentage (0-100)
44
+ * @type {number}
45
+ * @memberof ClusterUtilization
46
+ */
47
+ memP95: number;
48
+ /**
49
+ * Maximum memory utilization percentage (0-100)
50
+ * @type {number}
51
+ * @memberof ClusterUtilization
52
+ */
53
+ memMax: number;
54
+ /**
55
+ * Data coverage confidence percentage (0-100), calculated as vCPU-weighted coverage
56
+ * @type {number}
57
+ * @memberof ClusterUtilization
58
+ */
59
+ confidence: number;
60
+ }
61
+ /**
62
+ * Check if a given object implements the ClusterUtilization interface.
63
+ */
64
+ export declare function instanceOfClusterUtilization(value: object): value is ClusterUtilization;
65
+ export declare function ClusterUtilizationFromJSON(json: any): ClusterUtilization;
66
+ export declare function ClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterUtilization;
67
+ export declare function ClusterUtilizationToJSON(json: any): ClusterUtilization;
68
+ export declare function ClusterUtilizationToJSONTyped(value?: ClusterUtilization | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1alpha1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfClusterUtilization = instanceOfClusterUtilization;
17
+ exports.ClusterUtilizationFromJSON = ClusterUtilizationFromJSON;
18
+ exports.ClusterUtilizationFromJSONTyped = ClusterUtilizationFromJSONTyped;
19
+ exports.ClusterUtilizationToJSON = ClusterUtilizationToJSON;
20
+ exports.ClusterUtilizationToJSONTyped = ClusterUtilizationToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ClusterUtilization interface.
23
+ */
24
+ function instanceOfClusterUtilization(value) {
25
+ if ((!('cpuAvg' in value) && !('cpu_avg' in value)) || (value['cpuAvg'] === undefined && value['cpu_avg'] === undefined))
26
+ return false;
27
+ if ((!('cpuP95' in value) && !('cpu_p95' in value)) || (value['cpuP95'] === undefined && value['cpu_p95'] === undefined))
28
+ return false;
29
+ if ((!('cpuMax' in value) && !('cpu_max' in value)) || (value['cpuMax'] === undefined && value['cpu_max'] === undefined))
30
+ return false;
31
+ if ((!('memAvg' in value) && !('mem_avg' in value)) || (value['memAvg'] === undefined && value['mem_avg'] === undefined))
32
+ return false;
33
+ if ((!('memP95' in value) && !('mem_p95' in value)) || (value['memP95'] === undefined && value['mem_p95'] === undefined))
34
+ return false;
35
+ if ((!('memMax' in value) && !('mem_max' in value)) || (value['memMax'] === undefined && value['mem_max'] === undefined))
36
+ return false;
37
+ if (!('confidence' in value) || value['confidence'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function ClusterUtilizationFromJSON(json) {
42
+ return ClusterUtilizationFromJSONTyped(json, false);
43
+ }
44
+ function ClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'cpuAvg': json['cpu_avg'],
50
+ 'cpuP95': json['cpu_p95'],
51
+ 'cpuMax': json['cpu_max'],
52
+ 'memAvg': json['mem_avg'],
53
+ 'memP95': json['mem_p95'],
54
+ 'memMax': json['mem_max'],
55
+ 'confidence': json['confidence'],
56
+ };
57
+ }
58
+ function ClusterUtilizationToJSON(json) {
59
+ return ClusterUtilizationToJSONTyped(json, false);
60
+ }
61
+ function ClusterUtilizationToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'cpu_avg': value['cpuAvg'],
67
+ 'cpu_p95': value['cpuP95'],
68
+ 'cpu_max': value['cpuMax'],
69
+ 'mem_avg': value['memAvg'],
70
+ 'mem_p95': value['memP95'],
71
+ 'mem_max': value['memMax'],
72
+ 'confidence': value['confidence'],
73
+ };
74
+ }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { VCenter } from './VCenter.js';
13
13
  import type { Infra } from './Infra.js';
14
+ import type { ClusterUtilization } from './ClusterUtilization.js';
14
15
  import type { VMs } from './VMs.js';
15
16
  import type { ClusterFeatures } from './ClusterFeatures.js';
16
17
  /**
@@ -31,6 +32,12 @@ export interface InventoryData {
31
32
  * @memberof InventoryData
32
33
  */
33
34
  clusterFeatures?: ClusterFeatures;
35
+ /**
36
+ *
37
+ * @type {ClusterUtilization}
38
+ * @memberof InventoryData
39
+ */
40
+ clusterUtilization?: ClusterUtilization;
34
41
  /**
35
42
  *
36
43
  * @type {VMs}
@@ -20,6 +20,7 @@ exports.InventoryDataToJSON = InventoryDataToJSON;
20
20
  exports.InventoryDataToJSONTyped = InventoryDataToJSONTyped;
21
21
  const VCenter_js_1 = require("./VCenter.js");
22
22
  const Infra_js_1 = require("./Infra.js");
23
+ const ClusterUtilization_js_1 = require("./ClusterUtilization.js");
23
24
  const VMs_js_1 = require("./VMs.js");
24
25
  const ClusterFeatures_js_1 = require("./ClusterFeatures.js");
25
26
  /**
@@ -42,6 +43,7 @@ function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
42
43
  return {
43
44
  'vcenter': json['vcenter'] == null ? undefined : (0, VCenter_js_1.VCenterFromJSON)(json['vcenter']),
44
45
  'clusterFeatures': json['clusterFeatures'] == null ? undefined : (0, ClusterFeatures_js_1.ClusterFeaturesFromJSON)(json['clusterFeatures']),
46
+ 'clusterUtilization': json['clusterUtilization'] == null ? undefined : (0, ClusterUtilization_js_1.ClusterUtilizationFromJSON)(json['clusterUtilization']),
45
47
  'vms': (0, VMs_js_1.VMsFromJSON)(json['vms']),
46
48
  'infra': (0, Infra_js_1.InfraFromJSON)(json['infra']),
47
49
  };
@@ -56,6 +58,7 @@ function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
56
58
  return {
57
59
  'vcenter': (0, VCenter_js_1.VCenterToJSON)(value['vcenter']),
58
60
  'clusterFeatures': (0, ClusterFeatures_js_1.ClusterFeaturesToJSON)(value['clusterFeatures']),
61
+ 'clusterUtilization': (0, ClusterUtilization_js_1.ClusterUtilizationToJSON)(value['clusterUtilization']),
59
62
  'vms': (0, VMs_js_1.VMsToJSON)(value['vms']),
60
63
  'infra': (0, Infra_js_1.InfraToJSON)(value['infra']),
61
64
  };
@@ -9,6 +9,7 @@ export * from './ClusterRequirementsRequest.js';
9
9
  export * from './ClusterRequirementsResponse.js';
10
10
  export * from './ClusterRequirementsStoredInput.js';
11
11
  export * from './ClusterSizing.js';
12
+ export * from './ClusterUtilization.js';
12
13
  export * from './ComplexityDiskScoreEntry.js';
13
14
  export * from './ComplexityOSNameEntry.js';
14
15
  export * from './ComplexityOSScoreEntry.js';
@@ -27,6 +27,7 @@ __exportStar(require("./ClusterRequirementsRequest.js"), exports);
27
27
  __exportStar(require("./ClusterRequirementsResponse.js"), exports);
28
28
  __exportStar(require("./ClusterRequirementsStoredInput.js"), exports);
29
29
  __exportStar(require("./ClusterSizing.js"), exports);
30
+ __exportStar(require("./ClusterUtilization.js"), exports);
30
31
  __exportStar(require("./ComplexityDiskScoreEntry.js"), exports);
31
32
  __exportStar(require("./ComplexityOSNameEntry.js"), exports);
32
33
  __exportStar(require("./ComplexityOSScoreEntry.js"), exports);
@@ -0,0 +1,46 @@
1
+
2
+ # ClusterUtilization
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `cpuAvg` | number
10
+ `cpuP95` | number
11
+ `cpuMax` | number
12
+ `memAvg` | number
13
+ `memP95` | number
14
+ `memMax` | number
15
+ `confidence` | number
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { ClusterUtilization } from '@openshift-migration-advisor/planner-sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "cpuAvg": null,
25
+ "cpuP95": null,
26
+ "cpuMax": null,
27
+ "memAvg": null,
28
+ "memP95": null,
29
+ "memMax": null,
30
+ "confidence": null,
31
+ } satisfies ClusterUtilization
32
+
33
+ console.log(example)
34
+
35
+ // Convert the instance to a JSON string
36
+ const exampleJSON: string = JSON.stringify(example)
37
+ console.log(exampleJSON)
38
+
39
+ // Parse the JSON string back to an object
40
+ const exampleParsed = JSON.parse(exampleJSON) as ClusterUtilization
41
+ console.log(exampleParsed)
42
+ ```
43
+
44
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
+
46
+
@@ -8,6 +8,7 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `vcenter` | [VCenter](VCenter.md)
10
10
  `clusterFeatures` | [ClusterFeatures](ClusterFeatures.md)
11
+ `clusterUtilization` | [ClusterUtilization](ClusterUtilization.md)
11
12
  `vms` | [VMs](VMs.md)
12
13
  `infra` | [Infra](Infra.md)
13
14
 
@@ -20,6 +21,7 @@ import type { InventoryData } from '@openshift-migration-advisor/planner-sdk'
20
21
  const example = {
21
22
  "vcenter": null,
22
23
  "clusterFeatures": null,
24
+ "clusterUtilization": null,
23
25
  "vms": null,
24
26
  "infra": null,
25
27
  } satisfies InventoryData
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/planner-sdk",
3
- "version": "0.13.3-4f3d8bb515ec",
3
+ "version": "0.13.3-a0b90cb3da5f",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/planner-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,120 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OpenShift Migration Advisor API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1alpha1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ClusterUtilization
20
+ */
21
+ export interface ClusterUtilization {
22
+ /**
23
+ * Average CPU utilization percentage (0-100)
24
+ * @type {number}
25
+ * @memberof ClusterUtilization
26
+ */
27
+ cpuAvg: number;
28
+ /**
29
+ * 95th percentile CPU utilization percentage (0-100)
30
+ * @type {number}
31
+ * @memberof ClusterUtilization
32
+ */
33
+ cpuP95: number;
34
+ /**
35
+ * Maximum CPU utilization percentage (0-100)
36
+ * @type {number}
37
+ * @memberof ClusterUtilization
38
+ */
39
+ cpuMax: number;
40
+ /**
41
+ * Average memory utilization percentage (0-100)
42
+ * @type {number}
43
+ * @memberof ClusterUtilization
44
+ */
45
+ memAvg: number;
46
+ /**
47
+ * 95th percentile memory utilization percentage (0-100)
48
+ * @type {number}
49
+ * @memberof ClusterUtilization
50
+ */
51
+ memP95: number;
52
+ /**
53
+ * Maximum memory utilization percentage (0-100)
54
+ * @type {number}
55
+ * @memberof ClusterUtilization
56
+ */
57
+ memMax: number;
58
+ /**
59
+ * Data coverage confidence percentage (0-100), calculated as vCPU-weighted coverage
60
+ * @type {number}
61
+ * @memberof ClusterUtilization
62
+ */
63
+ confidence: number;
64
+ }
65
+
66
+ /**
67
+ * Check if a given object implements the ClusterUtilization interface.
68
+ */
69
+ export function instanceOfClusterUtilization(value: object): value is ClusterUtilization {
70
+ if ((!('cpuAvg' in value) && !('cpu_avg' in value)) || (value['cpuAvg'] === undefined && value['cpu_avg'] === undefined)) return false;
71
+ if ((!('cpuP95' in value) && !('cpu_p95' in value)) || (value['cpuP95'] === undefined && value['cpu_p95'] === undefined)) return false;
72
+ if ((!('cpuMax' in value) && !('cpu_max' in value)) || (value['cpuMax'] === undefined && value['cpu_max'] === undefined)) return false;
73
+ if ((!('memAvg' in value) && !('mem_avg' in value)) || (value['memAvg'] === undefined && value['mem_avg'] === undefined)) return false;
74
+ if ((!('memP95' in value) && !('mem_p95' in value)) || (value['memP95'] === undefined && value['mem_p95'] === undefined)) return false;
75
+ if ((!('memMax' in value) && !('mem_max' in value)) || (value['memMax'] === undefined && value['mem_max'] === undefined)) return false;
76
+ if (!('confidence' in value) || value['confidence'] === undefined) return false;
77
+ return true;
78
+ }
79
+
80
+ export function ClusterUtilizationFromJSON(json: any): ClusterUtilization {
81
+ return ClusterUtilizationFromJSONTyped(json, false);
82
+ }
83
+
84
+ export function ClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterUtilization {
85
+ if (json == null) {
86
+ return json;
87
+ }
88
+ return {
89
+
90
+ 'cpuAvg': json['cpu_avg'],
91
+ 'cpuP95': json['cpu_p95'],
92
+ 'cpuMax': json['cpu_max'],
93
+ 'memAvg': json['mem_avg'],
94
+ 'memP95': json['mem_p95'],
95
+ 'memMax': json['mem_max'],
96
+ 'confidence': json['confidence'],
97
+ };
98
+ }
99
+
100
+ export function ClusterUtilizationToJSON(json: any): ClusterUtilization {
101
+ return ClusterUtilizationToJSONTyped(json, false);
102
+ }
103
+
104
+ export function ClusterUtilizationToJSONTyped(value?: ClusterUtilization | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'cpu_avg': value['cpuAvg'],
112
+ 'cpu_p95': value['cpuP95'],
113
+ 'cpu_max': value['cpuMax'],
114
+ 'mem_avg': value['memAvg'],
115
+ 'mem_p95': value['memP95'],
116
+ 'mem_max': value['memMax'],
117
+ 'confidence': value['confidence'],
118
+ };
119
+ }
120
+
@@ -27,6 +27,13 @@ import {
27
27
  InfraToJSON,
28
28
  InfraToJSONTyped,
29
29
  } from './Infra.js';
30
+ import type { ClusterUtilization } from './ClusterUtilization.js';
31
+ import {
32
+ ClusterUtilizationFromJSON,
33
+ ClusterUtilizationFromJSONTyped,
34
+ ClusterUtilizationToJSON,
35
+ ClusterUtilizationToJSONTyped,
36
+ } from './ClusterUtilization.js';
30
37
  import type { VMs } from './VMs.js';
31
38
  import {
32
39
  VMsFromJSON,
@@ -60,6 +67,12 @@ export interface InventoryData {
60
67
  * @memberof InventoryData
61
68
  */
62
69
  clusterFeatures?: ClusterFeatures;
70
+ /**
71
+ *
72
+ * @type {ClusterUtilization}
73
+ * @memberof InventoryData
74
+ */
75
+ clusterUtilization?: ClusterUtilization;
63
76
  /**
64
77
  *
65
78
  * @type {VMs}
@@ -95,6 +108,7 @@ export function InventoryDataFromJSONTyped(json: any, ignoreDiscriminator: boole
95
108
 
96
109
  'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
97
110
  'clusterFeatures': json['clusterFeatures'] == null ? undefined : ClusterFeaturesFromJSON(json['clusterFeatures']),
111
+ 'clusterUtilization': json['clusterUtilization'] == null ? undefined : ClusterUtilizationFromJSON(json['clusterUtilization']),
98
112
  'vms': VMsFromJSON(json['vms']),
99
113
  'infra': InfraFromJSON(json['infra']),
100
114
  };
@@ -113,6 +127,7 @@ export function InventoryDataToJSONTyped(value?: InventoryData | null, ignoreDis
113
127
 
114
128
  'vcenter': VCenterToJSON(value['vcenter']),
115
129
  'clusterFeatures': ClusterFeaturesToJSON(value['clusterFeatures']),
130
+ 'clusterUtilization': ClusterUtilizationToJSON(value['clusterUtilization']),
116
131
  'vms': VMsToJSON(value['vms']),
117
132
  'infra': InfraToJSON(value['infra']),
118
133
  };
@@ -11,6 +11,7 @@ export * from './ClusterRequirementsRequest.js';
11
11
  export * from './ClusterRequirementsResponse.js';
12
12
  export * from './ClusterRequirementsStoredInput.js';
13
13
  export * from './ClusterSizing.js';
14
+ export * from './ClusterUtilization.js';
14
15
  export * from './ComplexityDiskScoreEntry.js';
15
16
  export * from './ComplexityOSNameEntry.js';
16
17
  export * from './ComplexityOSScoreEntry.js';