@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.
- package/.openapi-generator/FILES +4 -0
- package/README.md +6 -2
- package/dist/apis/DefaultApi.d.ts +66 -0
- package/dist/apis/DefaultApi.js +75 -0
- package/dist/esm/apis/DefaultApi.d.ts +66 -0
- package/dist/esm/apis/DefaultApi.js +75 -0
- package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +106 -0
- package/dist/esm/models/RightsizingClusterUtilization.js +91 -0
- package/dist/esm/models/VmUtilizationDetails.d.ts +18 -0
- package/dist/esm/models/VmUtilizationDetails.js +12 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterListResponse.js +55 -0
- package/dist/models/RightsizingClusterUtilization.d.ts +106 -0
- package/dist/models/RightsizingClusterUtilization.js +98 -0
- package/dist/models/VmUtilizationDetails.d.ts +18 -0
- package/dist/models/VmUtilizationDetails.js +12 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/DefaultApi.md +128 -0
- package/docs/RightsizingClusterListResponse.md +36 -0
- package/docs/RightsizingClusterUtilization.md +58 -0
- package/docs/VmUtilizationDetails.md +6 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +135 -0
- package/src/models/RightsizingClusterListResponse.ts +83 -0
- package/src/models/RightsizingClusterUtilization.ts +176 -0
- package/src/models/VmUtilizationDetails.ts +27 -0
- package/src/models/index.ts +2 -0
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
* Check if a given object implements the RightsizingClusterUtilization interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfRightsizingClusterUtilization(value) {
|
|
18
|
+
if (!('clusterId' in value) || value['clusterId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('cpuAvg' in value) || value['cpuAvg'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('cpuP95' in value) || value['cpuP95'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('cpuMax' in value) || value['cpuMax'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('memAvg' in value) || value['memAvg'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('memP95' in value) || value['memP95'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('memMax' in value) || value['memMax'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('disk' in value) || value['disk'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('totalProvisionedCpus' in value) || value['totalProvisionedCpus'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('totalProvisionedMemoryMb' in value) || value['totalProvisionedMemoryMb'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('totalProvisionedDiskKb' in value) || value['totalProvisionedDiskKb'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
export function RightsizingClusterUtilizationFromJSON(json) {
|
|
47
|
+
return RightsizingClusterUtilizationFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function RightsizingClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'clusterId': json['cluster_id'],
|
|
55
|
+
'vmCount': json['vm_count'],
|
|
56
|
+
'cpuAvg': json['cpu_avg'],
|
|
57
|
+
'cpuP95': json['cpu_p95'],
|
|
58
|
+
'cpuMax': json['cpu_max'],
|
|
59
|
+
'memAvg': json['mem_avg'],
|
|
60
|
+
'memP95': json['mem_p95'],
|
|
61
|
+
'memMax': json['mem_max'],
|
|
62
|
+
'disk': json['disk'],
|
|
63
|
+
'confidence': json['confidence'],
|
|
64
|
+
'totalProvisionedCpus': json['total_provisioned_cpus'],
|
|
65
|
+
'totalProvisionedMemoryMb': json['total_provisioned_memory_mb'],
|
|
66
|
+
'totalProvisionedDiskKb': json['total_provisioned_disk_kb'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export function RightsizingClusterUtilizationToJSON(json) {
|
|
70
|
+
return RightsizingClusterUtilizationToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
export function RightsizingClusterUtilizationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
'cluster_id': value['clusterId'],
|
|
78
|
+
'vm_count': value['vmCount'],
|
|
79
|
+
'cpu_avg': value['cpuAvg'],
|
|
80
|
+
'cpu_p95': value['cpuP95'],
|
|
81
|
+
'cpu_max': value['cpuMax'],
|
|
82
|
+
'mem_avg': value['memAvg'],
|
|
83
|
+
'mem_p95': value['memP95'],
|
|
84
|
+
'mem_max': value['memMax'],
|
|
85
|
+
'disk': value['disk'],
|
|
86
|
+
'confidence': value['confidence'],
|
|
87
|
+
'total_provisioned_cpus': value['totalProvisionedCpus'],
|
|
88
|
+
'total_provisioned_memory_mb': value['totalProvisionedMemoryMb'],
|
|
89
|
+
'total_provisioned_disk_kb': value['totalProvisionedDiskKb'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -27,6 +27,24 @@ export interface VmUtilizationDetails {
|
|
|
27
27
|
* @memberof VmUtilizationDetails
|
|
28
28
|
*/
|
|
29
29
|
vmName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Number of vCPUs provisioned for this VM
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof VmUtilizationDetails
|
|
34
|
+
*/
|
|
35
|
+
provisionedCpus: number;
|
|
36
|
+
/**
|
|
37
|
+
* Provisioned RAM (MB)
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof VmUtilizationDetails
|
|
40
|
+
*/
|
|
41
|
+
provisionedMemoryMb: number;
|
|
42
|
+
/**
|
|
43
|
+
* Provisioned disk (KB)
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof VmUtilizationDetails
|
|
46
|
+
*/
|
|
47
|
+
provisionedDiskKb: number;
|
|
30
48
|
/**
|
|
31
49
|
* CPU utilization average (%)
|
|
32
50
|
* @type {number}
|
|
@@ -19,6 +19,12 @@ export function instanceOfVmUtilizationDetails(value) {
|
|
|
19
19
|
return false;
|
|
20
20
|
if (!('vmName' in value) || value['vmName'] === undefined)
|
|
21
21
|
return false;
|
|
22
|
+
if (!('provisionedCpus' in value) || value['provisionedCpus'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('provisionedMemoryMb' in value) || value['provisionedMemoryMb'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('provisionedDiskKb' in value) || value['provisionedDiskKb'] === undefined)
|
|
27
|
+
return false;
|
|
22
28
|
if (!('cpuAvg' in value) || value['cpuAvg'] === undefined)
|
|
23
29
|
return false;
|
|
24
30
|
if (!('cpuP95' in value) || value['cpuP95'] === undefined)
|
|
@@ -51,6 +57,9 @@ export function VmUtilizationDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
57
|
return {
|
|
52
58
|
'moid': json['moid'],
|
|
53
59
|
'vmName': json['vm_name'],
|
|
60
|
+
'provisionedCpus': json['provisioned_cpus'],
|
|
61
|
+
'provisionedMemoryMb': json['provisioned_memory_mb'],
|
|
62
|
+
'provisionedDiskKb': json['provisioned_disk_kb'],
|
|
54
63
|
'cpuAvg': json['cpu_avg'],
|
|
55
64
|
'cpuP95': json['cpu_p95'],
|
|
56
65
|
'cpuMax': json['cpu_max'],
|
|
@@ -73,6 +82,9 @@ export function VmUtilizationDetailsToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
73
82
|
return {
|
|
74
83
|
'moid': value['moid'],
|
|
75
84
|
'vm_name': value['vmName'],
|
|
85
|
+
'provisioned_cpus': value['provisionedCpus'],
|
|
86
|
+
'provisioned_memory_mb': value['provisionedMemoryMb'],
|
|
87
|
+
'provisioned_disk_kb': value['provisionedDiskKb'],
|
|
76
88
|
'cpu_avg': value['cpuAvg'],
|
|
77
89
|
'cpu_p95': value['cpuP95'],
|
|
78
90
|
'cpu_max': value['cpuMax'],
|
|
@@ -32,6 +32,8 @@ export * from './OsInfo.js';
|
|
|
32
32
|
export * from './PairCapability.js';
|
|
33
33
|
export * from './PairCapabilityRequest.js';
|
|
34
34
|
export * from './PutForecasterCredentials403Response.js';
|
|
35
|
+
export * from './RightsizingClusterListResponse.js';
|
|
36
|
+
export * from './RightsizingClusterUtilization.js';
|
|
35
37
|
export * from './RightsizingCollectRequest.js';
|
|
36
38
|
export * from './RightsizingMetricStats.js';
|
|
37
39
|
export * from './RightsizingReport.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -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';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
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
|
+
import type { RightsizingClusterUtilization } from './RightsizingClusterUtilization.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RightsizingClusterListResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface RightsizingClusterListResponse {
|
|
19
|
+
/**
|
|
20
|
+
* The report ID this data was aggregated from
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RightsizingClusterListResponse
|
|
23
|
+
*/
|
|
24
|
+
reportId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<RightsizingClusterUtilization>}
|
|
28
|
+
* @memberof RightsizingClusterListResponse
|
|
29
|
+
*/
|
|
30
|
+
clusters: Array<RightsizingClusterUtilization>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the RightsizingClusterListResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfRightsizingClusterListResponse(value: object): value is RightsizingClusterListResponse;
|
|
36
|
+
export declare function RightsizingClusterListResponseFromJSON(json: any): RightsizingClusterListResponse;
|
|
37
|
+
export declare function RightsizingClusterListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterListResponse;
|
|
38
|
+
export declare function RightsizingClusterListResponseToJSON(json: any): RightsizingClusterListResponse;
|
|
39
|
+
export declare function RightsizingClusterListResponseToJSONTyped(value?: RightsizingClusterListResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
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.instanceOfRightsizingClusterListResponse = instanceOfRightsizingClusterListResponse;
|
|
17
|
+
exports.RightsizingClusterListResponseFromJSON = RightsizingClusterListResponseFromJSON;
|
|
18
|
+
exports.RightsizingClusterListResponseFromJSONTyped = RightsizingClusterListResponseFromJSONTyped;
|
|
19
|
+
exports.RightsizingClusterListResponseToJSON = RightsizingClusterListResponseToJSON;
|
|
20
|
+
exports.RightsizingClusterListResponseToJSONTyped = RightsizingClusterListResponseToJSONTyped;
|
|
21
|
+
const RightsizingClusterUtilization_js_1 = require("./RightsizingClusterUtilization.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the RightsizingClusterListResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfRightsizingClusterListResponse(value) {
|
|
26
|
+
if (!('reportId' in value) || value['reportId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function RightsizingClusterListResponseFromJSON(json) {
|
|
33
|
+
return RightsizingClusterListResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function RightsizingClusterListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'reportId': json['report_id'],
|
|
41
|
+
'clusters': (json['clusters'].map(RightsizingClusterUtilization_js_1.RightsizingClusterUtilizationFromJSON)),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function RightsizingClusterListResponseToJSON(json) {
|
|
45
|
+
return RightsizingClusterListResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function RightsizingClusterListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'report_id': value['reportId'],
|
|
53
|
+
'clusters': (value['clusters'].map(RightsizingClusterUtilization_js_1.RightsizingClusterUtilizationToJSON)),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
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 RightsizingClusterUtilization
|
|
16
|
+
*/
|
|
17
|
+
export interface RightsizingClusterUtilization {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RightsizingClusterUtilization
|
|
22
|
+
*/
|
|
23
|
+
clusterId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Number of VMs with utilization data in this cluster
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof RightsizingClusterUtilization
|
|
28
|
+
*/
|
|
29
|
+
vmCount: number;
|
|
30
|
+
/**
|
|
31
|
+
* SUM(vCPUs × cpu_avg%) / SUM(vCPUs) — weighted average CPU utilization (%)
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof RightsizingClusterUtilization
|
|
34
|
+
*/
|
|
35
|
+
cpuAvg: number;
|
|
36
|
+
/**
|
|
37
|
+
* 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).
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof RightsizingClusterUtilization
|
|
41
|
+
*/
|
|
42
|
+
cpuP95: number;
|
|
43
|
+
/**
|
|
44
|
+
* Weighted summary of per-VM max values (see cpu_p95 note)
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof RightsizingClusterUtilization
|
|
47
|
+
*/
|
|
48
|
+
cpuMax: number;
|
|
49
|
+
/**
|
|
50
|
+
* SUM(provisionedMB × mem_avg%) / SUM(provisionedMB) — weighted average memory utilization (%)
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof RightsizingClusterUtilization
|
|
53
|
+
*/
|
|
54
|
+
memAvg: number;
|
|
55
|
+
/**
|
|
56
|
+
* Weighted summary of per-VM memory p95 values (see cpu_p95 note)
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof RightsizingClusterUtilization
|
|
59
|
+
*/
|
|
60
|
+
memP95: number;
|
|
61
|
+
/**
|
|
62
|
+
* Weighted summary of per-VM memory max values (see cpu_p95 note)
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof RightsizingClusterUtilization
|
|
65
|
+
*/
|
|
66
|
+
memMax: number;
|
|
67
|
+
/**
|
|
68
|
+
* SUM(provisionedKB × disk%) / SUM(provisionedKB) — weighted average disk utilization (%)
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof RightsizingClusterUtilization
|
|
71
|
+
*/
|
|
72
|
+
disk: number;
|
|
73
|
+
/**
|
|
74
|
+
* SUM(vCPUs × confidence%) / SUM(vCPUs). vCPU-weighted data coverage (0–100 %). Interpret utilization cautiously when low.
|
|
75
|
+
*
|
|
76
|
+
* @type {number}
|
|
77
|
+
* @memberof RightsizingClusterUtilization
|
|
78
|
+
*/
|
|
79
|
+
confidence: number;
|
|
80
|
+
/**
|
|
81
|
+
* Sum of vCPU counts across all VMs in the cluster
|
|
82
|
+
* @type {number}
|
|
83
|
+
* @memberof RightsizingClusterUtilization
|
|
84
|
+
*/
|
|
85
|
+
totalProvisionedCpus: number;
|
|
86
|
+
/**
|
|
87
|
+
* Sum of provisioned RAM (MB) across all VMs in the cluster
|
|
88
|
+
* @type {number}
|
|
89
|
+
* @memberof RightsizingClusterUtilization
|
|
90
|
+
*/
|
|
91
|
+
totalProvisionedMemoryMb: number;
|
|
92
|
+
/**
|
|
93
|
+
* Sum of provisioned disk (KB) across all VMs in the cluster
|
|
94
|
+
* @type {number}
|
|
95
|
+
* @memberof RightsizingClusterUtilization
|
|
96
|
+
*/
|
|
97
|
+
totalProvisionedDiskKb: number;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Check if a given object implements the RightsizingClusterUtilization interface.
|
|
101
|
+
*/
|
|
102
|
+
export declare function instanceOfRightsizingClusterUtilization(value: object): value is RightsizingClusterUtilization;
|
|
103
|
+
export declare function RightsizingClusterUtilizationFromJSON(json: any): RightsizingClusterUtilization;
|
|
104
|
+
export declare function RightsizingClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterUtilization;
|
|
105
|
+
export declare function RightsizingClusterUtilizationToJSON(json: any): RightsizingClusterUtilization;
|
|
106
|
+
export declare function RightsizingClusterUtilizationToJSONTyped(value?: RightsizingClusterUtilization | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
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.instanceOfRightsizingClusterUtilization = instanceOfRightsizingClusterUtilization;
|
|
17
|
+
exports.RightsizingClusterUtilizationFromJSON = RightsizingClusterUtilizationFromJSON;
|
|
18
|
+
exports.RightsizingClusterUtilizationFromJSONTyped = RightsizingClusterUtilizationFromJSONTyped;
|
|
19
|
+
exports.RightsizingClusterUtilizationToJSON = RightsizingClusterUtilizationToJSON;
|
|
20
|
+
exports.RightsizingClusterUtilizationToJSONTyped = RightsizingClusterUtilizationToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RightsizingClusterUtilization interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRightsizingClusterUtilization(value) {
|
|
25
|
+
if (!('clusterId' in value) || value['clusterId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('cpuAvg' in value) || value['cpuAvg'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('cpuP95' in value) || value['cpuP95'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('cpuMax' in value) || value['cpuMax'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('memAvg' in value) || value['memAvg'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('memP95' in value) || value['memP95'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('memMax' in value) || value['memMax'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('disk' in value) || value['disk'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('totalProvisionedCpus' in value) || value['totalProvisionedCpus'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('totalProvisionedMemoryMb' in value) || value['totalProvisionedMemoryMb'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('totalProvisionedDiskKb' in value) || value['totalProvisionedDiskKb'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
function RightsizingClusterUtilizationFromJSON(json) {
|
|
54
|
+
return RightsizingClusterUtilizationFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function RightsizingClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'clusterId': json['cluster_id'],
|
|
62
|
+
'vmCount': json['vm_count'],
|
|
63
|
+
'cpuAvg': json['cpu_avg'],
|
|
64
|
+
'cpuP95': json['cpu_p95'],
|
|
65
|
+
'cpuMax': json['cpu_max'],
|
|
66
|
+
'memAvg': json['mem_avg'],
|
|
67
|
+
'memP95': json['mem_p95'],
|
|
68
|
+
'memMax': json['mem_max'],
|
|
69
|
+
'disk': json['disk'],
|
|
70
|
+
'confidence': json['confidence'],
|
|
71
|
+
'totalProvisionedCpus': json['total_provisioned_cpus'],
|
|
72
|
+
'totalProvisionedMemoryMb': json['total_provisioned_memory_mb'],
|
|
73
|
+
'totalProvisionedDiskKb': json['total_provisioned_disk_kb'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function RightsizingClusterUtilizationToJSON(json) {
|
|
77
|
+
return RightsizingClusterUtilizationToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
function RightsizingClusterUtilizationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
'cluster_id': value['clusterId'],
|
|
85
|
+
'vm_count': value['vmCount'],
|
|
86
|
+
'cpu_avg': value['cpuAvg'],
|
|
87
|
+
'cpu_p95': value['cpuP95'],
|
|
88
|
+
'cpu_max': value['cpuMax'],
|
|
89
|
+
'mem_avg': value['memAvg'],
|
|
90
|
+
'mem_p95': value['memP95'],
|
|
91
|
+
'mem_max': value['memMax'],
|
|
92
|
+
'disk': value['disk'],
|
|
93
|
+
'confidence': value['confidence'],
|
|
94
|
+
'total_provisioned_cpus': value['totalProvisionedCpus'],
|
|
95
|
+
'total_provisioned_memory_mb': value['totalProvisionedMemoryMb'],
|
|
96
|
+
'total_provisioned_disk_kb': value['totalProvisionedDiskKb'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -27,6 +27,24 @@ export interface VmUtilizationDetails {
|
|
|
27
27
|
* @memberof VmUtilizationDetails
|
|
28
28
|
*/
|
|
29
29
|
vmName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Number of vCPUs provisioned for this VM
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof VmUtilizationDetails
|
|
34
|
+
*/
|
|
35
|
+
provisionedCpus: number;
|
|
36
|
+
/**
|
|
37
|
+
* Provisioned RAM (MB)
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof VmUtilizationDetails
|
|
40
|
+
*/
|
|
41
|
+
provisionedMemoryMb: number;
|
|
42
|
+
/**
|
|
43
|
+
* Provisioned disk (KB)
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof VmUtilizationDetails
|
|
46
|
+
*/
|
|
47
|
+
provisionedDiskKb: number;
|
|
30
48
|
/**
|
|
31
49
|
* CPU utilization average (%)
|
|
32
50
|
* @type {number}
|
|
@@ -26,6 +26,12 @@ function instanceOfVmUtilizationDetails(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('vmName' in value) || value['vmName'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('provisionedCpus' in value) || value['provisionedCpus'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('provisionedMemoryMb' in value) || value['provisionedMemoryMb'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('provisionedDiskKb' in value) || value['provisionedDiskKb'] === undefined)
|
|
34
|
+
return false;
|
|
29
35
|
if (!('cpuAvg' in value) || value['cpuAvg'] === undefined)
|
|
30
36
|
return false;
|
|
31
37
|
if (!('cpuP95' in value) || value['cpuP95'] === undefined)
|
|
@@ -58,6 +64,9 @@ function VmUtilizationDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
64
|
return {
|
|
59
65
|
'moid': json['moid'],
|
|
60
66
|
'vmName': json['vm_name'],
|
|
67
|
+
'provisionedCpus': json['provisioned_cpus'],
|
|
68
|
+
'provisionedMemoryMb': json['provisioned_memory_mb'],
|
|
69
|
+
'provisionedDiskKb': json['provisioned_disk_kb'],
|
|
61
70
|
'cpuAvg': json['cpu_avg'],
|
|
62
71
|
'cpuP95': json['cpu_p95'],
|
|
63
72
|
'cpuMax': json['cpu_max'],
|
|
@@ -80,6 +89,9 @@ function VmUtilizationDetailsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
80
89
|
return {
|
|
81
90
|
'moid': value['moid'],
|
|
82
91
|
'vm_name': value['vmName'],
|
|
92
|
+
'provisioned_cpus': value['provisionedCpus'],
|
|
93
|
+
'provisioned_memory_mb': value['provisionedMemoryMb'],
|
|
94
|
+
'provisioned_disk_kb': value['provisionedDiskKb'],
|
|
83
95
|
'cpu_avg': value['cpuAvg'],
|
|
84
96
|
'cpu_p95': value['cpuP95'],
|
|
85
97
|
'cpu_max': value['cpuMax'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ export * from './OsInfo.js';
|
|
|
32
32
|
export * from './PairCapability.js';
|
|
33
33
|
export * from './PairCapabilityRequest.js';
|
|
34
34
|
export * from './PutForecasterCredentials403Response.js';
|
|
35
|
+
export * from './RightsizingClusterListResponse.js';
|
|
36
|
+
export * from './RightsizingClusterUtilization.js';
|
|
35
37
|
export * from './RightsizingCollectRequest.js';
|
|
36
38
|
export * from './RightsizingMetricStats.js';
|
|
37
39
|
export * from './RightsizingReport.js';
|
package/dist/models/index.js
CHANGED
|
@@ -50,6 +50,8 @@ __exportStar(require("./OsInfo.js"), exports);
|
|
|
50
50
|
__exportStar(require("./PairCapability.js"), exports);
|
|
51
51
|
__exportStar(require("./PairCapabilityRequest.js"), exports);
|
|
52
52
|
__exportStar(require("./PutForecasterCredentials403Response.js"), exports);
|
|
53
|
+
__exportStar(require("./RightsizingClusterListResponse.js"), exports);
|
|
54
|
+
__exportStar(require("./RightsizingClusterUtilization.js"), exports);
|
|
53
55
|
__exportStar(require("./RightsizingCollectRequest.js"), exports);
|
|
54
56
|
__exportStar(require("./RightsizingMetricStats.js"), exports);
|
|
55
57
|
__exportStar(require("./RightsizingReport.js"), exports);
|