@openshift-migration-advisor/agent-sdk 0.12.0-1f1dc16fb9e5 → 0.12.0-e6e9d25bdc36

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 (32) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +6 -2
  3. package/dist/apis/DefaultApi.d.ts +66 -0
  4. package/dist/apis/DefaultApi.js +75 -0
  5. package/dist/esm/apis/DefaultApi.d.ts +66 -0
  6. package/dist/esm/apis/DefaultApi.js +75 -0
  7. package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
  8. package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
  9. package/dist/esm/models/RightsizingClusterUtilization.d.ts +106 -0
  10. package/dist/esm/models/RightsizingClusterUtilization.js +91 -0
  11. package/dist/esm/models/VmUtilizationDetails.d.ts +18 -0
  12. package/dist/esm/models/VmUtilizationDetails.js +12 -0
  13. package/dist/esm/models/index.d.ts +2 -0
  14. package/dist/esm/models/index.js +2 -0
  15. package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
  16. package/dist/models/RightsizingClusterListResponse.js +55 -0
  17. package/dist/models/RightsizingClusterUtilization.d.ts +106 -0
  18. package/dist/models/RightsizingClusterUtilization.js +98 -0
  19. package/dist/models/VmUtilizationDetails.d.ts +18 -0
  20. package/dist/models/VmUtilizationDetails.js +12 -0
  21. package/dist/models/index.d.ts +2 -0
  22. package/dist/models/index.js +2 -0
  23. package/docs/DefaultApi.md +128 -0
  24. package/docs/RightsizingClusterListResponse.md +36 -0
  25. package/docs/RightsizingClusterUtilization.md +58 -0
  26. package/docs/VmUtilizationDetails.md +6 -0
  27. package/package.json +1 -1
  28. package/src/apis/DefaultApi.ts +135 -0
  29. package/src/models/RightsizingClusterListResponse.ts +83 -0
  30. package/src/models/RightsizingClusterUtilization.ts +176 -0
  31. package/src/models/VmUtilizationDetails.ts +27 -0
  32. package/src/models/index.ts +2 -0
@@ -0,0 +1,176 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
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 RightsizingClusterUtilization
20
+ */
21
+ export interface RightsizingClusterUtilization {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof RightsizingClusterUtilization
26
+ */
27
+ clusterId: string;
28
+ /**
29
+ * Number of VMs with utilization data in this cluster
30
+ * @type {number}
31
+ * @memberof RightsizingClusterUtilization
32
+ */
33
+ vmCount: number;
34
+ /**
35
+ * SUM(vCPUs × cpu_avg%) / SUM(vCPUs) — weighted average CPU utilization (%)
36
+ * @type {number}
37
+ * @memberof RightsizingClusterUtilization
38
+ */
39
+ cpuAvg: number;
40
+ /**
41
+ * SUM(vCPUs × vm_p95%) / SUM(vCPUs). Weighted summary of per-VM p95 values — not a true cluster-wide p95 (which would require time-aligned samples).
42
+ *
43
+ * @type {number}
44
+ * @memberof RightsizingClusterUtilization
45
+ */
46
+ cpuP95: number;
47
+ /**
48
+ * Weighted summary of per-VM max values (see cpu_p95 note)
49
+ * @type {number}
50
+ * @memberof RightsizingClusterUtilization
51
+ */
52
+ cpuMax: number;
53
+ /**
54
+ * SUM(provisionedMB × mem_avg%) / SUM(provisionedMB) — weighted average memory utilization (%)
55
+ * @type {number}
56
+ * @memberof RightsizingClusterUtilization
57
+ */
58
+ memAvg: number;
59
+ /**
60
+ * Weighted summary of per-VM memory p95 values (see cpu_p95 note)
61
+ * @type {number}
62
+ * @memberof RightsizingClusterUtilization
63
+ */
64
+ memP95: number;
65
+ /**
66
+ * Weighted summary of per-VM memory max values (see cpu_p95 note)
67
+ * @type {number}
68
+ * @memberof RightsizingClusterUtilization
69
+ */
70
+ memMax: number;
71
+ /**
72
+ * SUM(provisionedKB × disk%) / SUM(provisionedKB) — weighted average disk utilization (%)
73
+ * @type {number}
74
+ * @memberof RightsizingClusterUtilization
75
+ */
76
+ disk: number;
77
+ /**
78
+ * SUM(vCPUs × confidence%) / SUM(vCPUs). vCPU-weighted data coverage (0–100 %). Interpret utilization cautiously when low.
79
+ *
80
+ * @type {number}
81
+ * @memberof RightsizingClusterUtilization
82
+ */
83
+ confidence: number;
84
+ /**
85
+ * Sum of vCPU counts across all VMs in the cluster
86
+ * @type {number}
87
+ * @memberof RightsizingClusterUtilization
88
+ */
89
+ totalProvisionedCpus: number;
90
+ /**
91
+ * Sum of provisioned RAM (MB) across all VMs in the cluster
92
+ * @type {number}
93
+ * @memberof RightsizingClusterUtilization
94
+ */
95
+ totalProvisionedMemoryMb: number;
96
+ /**
97
+ * Sum of provisioned disk (KB) across all VMs in the cluster
98
+ * @type {number}
99
+ * @memberof RightsizingClusterUtilization
100
+ */
101
+ totalProvisionedDiskKb: number;
102
+ }
103
+
104
+ /**
105
+ * Check if a given object implements the RightsizingClusterUtilization interface.
106
+ */
107
+ export function instanceOfRightsizingClusterUtilization(value: object): value is RightsizingClusterUtilization {
108
+ if (!('clusterId' in value) || value['clusterId'] === undefined) return false;
109
+ if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
110
+ if (!('cpuAvg' in value) || value['cpuAvg'] === undefined) return false;
111
+ if (!('cpuP95' in value) || value['cpuP95'] === undefined) return false;
112
+ if (!('cpuMax' in value) || value['cpuMax'] === undefined) return false;
113
+ if (!('memAvg' in value) || value['memAvg'] === undefined) return false;
114
+ if (!('memP95' in value) || value['memP95'] === undefined) return false;
115
+ if (!('memMax' in value) || value['memMax'] === undefined) return false;
116
+ if (!('disk' in value) || value['disk'] === undefined) return false;
117
+ if (!('confidence' in value) || value['confidence'] === undefined) return false;
118
+ if (!('totalProvisionedCpus' in value) || value['totalProvisionedCpus'] === undefined) return false;
119
+ if (!('totalProvisionedMemoryMb' in value) || value['totalProvisionedMemoryMb'] === undefined) return false;
120
+ if (!('totalProvisionedDiskKb' in value) || value['totalProvisionedDiskKb'] === undefined) return false;
121
+ return true;
122
+ }
123
+
124
+ export function RightsizingClusterUtilizationFromJSON(json: any): RightsizingClusterUtilization {
125
+ return RightsizingClusterUtilizationFromJSONTyped(json, false);
126
+ }
127
+
128
+ export function RightsizingClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterUtilization {
129
+ if (json == null) {
130
+ return json;
131
+ }
132
+ return {
133
+
134
+ 'clusterId': json['cluster_id'],
135
+ 'vmCount': json['vm_count'],
136
+ 'cpuAvg': json['cpu_avg'],
137
+ 'cpuP95': json['cpu_p95'],
138
+ 'cpuMax': json['cpu_max'],
139
+ 'memAvg': json['mem_avg'],
140
+ 'memP95': json['mem_p95'],
141
+ 'memMax': json['mem_max'],
142
+ 'disk': json['disk'],
143
+ 'confidence': json['confidence'],
144
+ 'totalProvisionedCpus': json['total_provisioned_cpus'],
145
+ 'totalProvisionedMemoryMb': json['total_provisioned_memory_mb'],
146
+ 'totalProvisionedDiskKb': json['total_provisioned_disk_kb'],
147
+ };
148
+ }
149
+
150
+ export function RightsizingClusterUtilizationToJSON(json: any): RightsizingClusterUtilization {
151
+ return RightsizingClusterUtilizationToJSONTyped(json, false);
152
+ }
153
+
154
+ export function RightsizingClusterUtilizationToJSONTyped(value?: RightsizingClusterUtilization | null, ignoreDiscriminator: boolean = false): any {
155
+ if (value == null) {
156
+ return value;
157
+ }
158
+
159
+ return {
160
+
161
+ 'cluster_id': value['clusterId'],
162
+ 'vm_count': value['vmCount'],
163
+ 'cpu_avg': value['cpuAvg'],
164
+ 'cpu_p95': value['cpuP95'],
165
+ 'cpu_max': value['cpuMax'],
166
+ 'mem_avg': value['memAvg'],
167
+ 'mem_p95': value['memP95'],
168
+ 'mem_max': value['memMax'],
169
+ 'disk': value['disk'],
170
+ 'confidence': value['confidence'],
171
+ 'total_provisioned_cpus': value['totalProvisionedCpus'],
172
+ 'total_provisioned_memory_mb': value['totalProvisionedMemoryMb'],
173
+ 'total_provisioned_disk_kb': value['totalProvisionedDiskKb'],
174
+ };
175
+ }
176
+
@@ -31,6 +31,24 @@ export interface VmUtilizationDetails {
31
31
  * @memberof VmUtilizationDetails
32
32
  */
33
33
  vmName: string;
34
+ /**
35
+ * Number of vCPUs provisioned for this VM
36
+ * @type {number}
37
+ * @memberof VmUtilizationDetails
38
+ */
39
+ provisionedCpus: number;
40
+ /**
41
+ * Provisioned RAM (MB)
42
+ * @type {number}
43
+ * @memberof VmUtilizationDetails
44
+ */
45
+ provisionedMemoryMb: number;
46
+ /**
47
+ * Provisioned disk (KB)
48
+ * @type {number}
49
+ * @memberof VmUtilizationDetails
50
+ */
51
+ provisionedDiskKb: number;
34
52
  /**
35
53
  * CPU utilization average (%)
36
54
  * @type {number}
@@ -99,6 +117,9 @@ export interface VmUtilizationDetails {
99
117
  export function instanceOfVmUtilizationDetails(value: object): value is VmUtilizationDetails {
100
118
  if (!('moid' in value) || value['moid'] === undefined) return false;
101
119
  if (!('vmName' in value) || value['vmName'] === undefined) return false;
120
+ if (!('provisionedCpus' in value) || value['provisionedCpus'] === undefined) return false;
121
+ if (!('provisionedMemoryMb' in value) || value['provisionedMemoryMb'] === undefined) return false;
122
+ if (!('provisionedDiskKb' in value) || value['provisionedDiskKb'] === undefined) return false;
102
123
  if (!('cpuAvg' in value) || value['cpuAvg'] === undefined) return false;
103
124
  if (!('cpuP95' in value) || value['cpuP95'] === undefined) return false;
104
125
  if (!('cpuMax' in value) || value['cpuMax'] === undefined) return false;
@@ -124,6 +145,9 @@ export function VmUtilizationDetailsFromJSONTyped(json: any, ignoreDiscriminator
124
145
 
125
146
  'moid': json['moid'],
126
147
  'vmName': json['vm_name'],
148
+ 'provisionedCpus': json['provisioned_cpus'],
149
+ 'provisionedMemoryMb': json['provisioned_memory_mb'],
150
+ 'provisionedDiskKb': json['provisioned_disk_kb'],
127
151
  'cpuAvg': json['cpu_avg'],
128
152
  'cpuP95': json['cpu_p95'],
129
153
  'cpuMax': json['cpu_max'],
@@ -150,6 +174,9 @@ export function VmUtilizationDetailsToJSONTyped(value?: VmUtilizationDetails | n
150
174
 
151
175
  'moid': value['moid'],
152
176
  'vm_name': value['vmName'],
177
+ 'provisioned_cpus': value['provisionedCpus'],
178
+ 'provisioned_memory_mb': value['provisionedMemoryMb'],
179
+ 'provisioned_disk_kb': value['provisionedDiskKb'],
153
180
  'cpu_avg': value['cpuAvg'],
154
181
  'cpu_p95': value['cpuP95'],
155
182
  'cpu_max': value['cpuMax'],
@@ -34,6 +34,8 @@ export * from './OsInfo.js';
34
34
  export * from './PairCapability.js';
35
35
  export * from './PairCapabilityRequest.js';
36
36
  export * from './PutForecasterCredentials403Response.js';
37
+ export * from './RightsizingClusterListResponse.js';
38
+ export * from './RightsizingClusterUtilization.js';
37
39
  export * from './RightsizingCollectRequest.js';
38
40
  export * from './RightsizingMetricStats.js';
39
41
  export * from './RightsizingReport.js';