@openshift-migration-advisor/agent-sdk 0.12.0-d4bdc4301890 → 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 +30 -0
- package/README.md +29 -2
- package/dist/apis/DefaultApi.d.ts +442 -0
- package/dist/apis/DefaultApi.js +484 -0
- package/dist/esm/apis/DefaultApi.d.ts +442 -0
- package/dist/esm/apis/DefaultApi.js +484 -0
- package/dist/esm/models/BenchmarkRun.d.ts +104 -0
- package/dist/esm/models/BenchmarkRun.js +85 -0
- package/dist/esm/models/DatastoreDetail.d.ts +90 -0
- package/dist/esm/models/DatastoreDetail.js +74 -0
- package/dist/esm/models/DatastorePair.d.ts +50 -0
- package/dist/esm/models/DatastorePair.js +53 -0
- package/dist/esm/models/EstimateRange.d.ts +44 -0
- package/dist/esm/models/EstimateRange.js +45 -0
- package/dist/esm/models/ForecastStats.d.ts +87 -0
- package/dist/esm/models/ForecastStats.js +64 -0
- package/dist/esm/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
- package/dist/esm/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/esm/models/ForecasterPairStatus.js +82 -0
- package/dist/esm/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/esm/models/ForecasterStartRequest.js +53 -0
- package/dist/esm/models/ForecasterStatus.d.ts +47 -0
- package/dist/esm/models/ForecasterStatus.js +53 -0
- package/dist/esm/models/PairCapability.d.ts +60 -0
- package/dist/esm/models/PairCapability.js +64 -0
- package/dist/esm/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/esm/models/PairCapabilityRequest.js +47 -0
- package/dist/esm/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/esm/models/PutForecasterCredentials403Response.js +43 -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/StopForecasterPair202Response.d.ts +45 -0
- package/dist/esm/models/StopForecasterPair202Response.js +49 -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 +15 -0
- package/dist/esm/models/index.js +15 -0
- package/dist/models/BenchmarkRun.d.ts +104 -0
- package/dist/models/BenchmarkRun.js +92 -0
- package/dist/models/DatastoreDetail.d.ts +90 -0
- package/dist/models/DatastoreDetail.js +82 -0
- package/dist/models/DatastorePair.d.ts +50 -0
- package/dist/models/DatastorePair.js +60 -0
- package/dist/models/EstimateRange.d.ts +44 -0
- package/dist/models/EstimateRange.js +52 -0
- package/dist/models/ForecastStats.d.ts +87 -0
- package/dist/models/ForecastStats.js +71 -0
- package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/models/ForecasterDatastoresRequest.js +49 -0
- package/dist/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/models/ForecasterPairStatus.js +90 -0
- package/dist/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/models/ForecasterStartRequest.js +60 -0
- package/dist/models/ForecasterStatus.d.ts +47 -0
- package/dist/models/ForecasterStatus.js +61 -0
- package/dist/models/PairCapability.d.ts +60 -0
- package/dist/models/PairCapability.js +72 -0
- package/dist/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/models/PairCapabilityRequest.js +54 -0
- package/dist/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/models/PutForecasterCredentials403Response.js +50 -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/StopForecasterPair202Response.d.ts +45 -0
- package/dist/models/StopForecasterPair202Response.js +57 -0
- package/dist/models/VmUtilizationDetails.d.ts +18 -0
- package/dist/models/VmUtilizationDetails.js +12 -0
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/docs/BenchmarkRun.md +58 -0
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +875 -66
- package/docs/EstimateRange.md +39 -0
- package/docs/ForecastStats.md +52 -0
- package/docs/ForecasterDatastoresRequest.md +34 -0
- package/docs/ForecasterPairStatus.md +52 -0
- package/docs/ForecasterStartRequest.md +42 -0
- package/docs/ForecasterStatus.md +36 -0
- package/docs/PairCapability.md +40 -0
- package/docs/PairCapabilityRequest.md +36 -0
- package/docs/PutForecasterCredentials403Response.md +36 -0
- package/docs/RightsizingClusterListResponse.md +36 -0
- package/docs/RightsizingClusterUtilization.md +58 -0
- package/docs/StopForecasterPair202Response.md +36 -0
- package/docs/VmUtilizationDetails.md +6 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +919 -17
- package/src/models/BenchmarkRun.ts +171 -0
- package/src/models/DatastoreDetail.ts +146 -0
- package/src/models/DatastorePair.ts +92 -0
- package/src/models/EstimateRange.ts +81 -0
- package/src/models/ForecastStats.ts +147 -0
- package/src/models/ForecasterDatastoresRequest.ts +73 -0
- package/src/models/ForecasterPairStatus.ts +158 -0
- package/src/models/ForecasterStartRequest.ts +113 -0
- package/src/models/ForecasterStatus.ts +93 -0
- package/src/models/PairCapability.ts +106 -0
- package/src/models/PairCapabilityRequest.ts +89 -0
- package/src/models/PutForecasterCredentials403Response.ts +73 -0
- package/src/models/RightsizingClusterListResponse.ts +83 -0
- package/src/models/RightsizingClusterUtilization.ts +176 -0
- package/src/models/StopForecasterPair202Response.ts +83 -0
- package/src/models/VmUtilizationDetails.ts +27 -0
- package/src/models/index.ts +15 -0
|
@@ -0,0 +1,43 @@
|
|
|
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 PutForecasterCredentials403Response interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPutForecasterCredentials403Response(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function PutForecasterCredentials403ResponseFromJSON(json) {
|
|
21
|
+
return PutForecasterCredentials403ResponseFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function PutForecasterCredentials403ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
29
|
+
'missingPrivileges': json['missingPrivileges'] == null ? undefined : json['missingPrivileges'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function PutForecasterCredentials403ResponseToJSON(json) {
|
|
33
|
+
return PutForecasterCredentials403ResponseToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function PutForecasterCredentials403ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'error': value['error'],
|
|
41
|
+
'missingPrivileges': value['missingPrivileges'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -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,48 @@
|
|
|
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
|
+
import { RightsizingClusterUtilizationFromJSON, RightsizingClusterUtilizationToJSON, } from './RightsizingClusterUtilization.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the RightsizingClusterListResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfRightsizingClusterListResponse(value) {
|
|
19
|
+
if (!('reportId' in value) || value['reportId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function RightsizingClusterListResponseFromJSON(json) {
|
|
26
|
+
return RightsizingClusterListResponseFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function RightsizingClusterListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'reportId': json['report_id'],
|
|
34
|
+
'clusters': (json['clusters'].map(RightsizingClusterUtilizationFromJSON)),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function RightsizingClusterListResponseToJSON(json) {
|
|
38
|
+
return RightsizingClusterListResponseToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function RightsizingClusterListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'report_id': value['reportId'],
|
|
46
|
+
'clusters': (value['clusters'].map(RightsizingClusterUtilizationToJSON)),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -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,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
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 StopForecasterPair202Response
|
|
16
|
+
*/
|
|
17
|
+
export interface StopForecasterPair202Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StopForecasterPair202Response
|
|
22
|
+
*/
|
|
23
|
+
pairName?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {StopForecasterPair202ResponseStateEnum}
|
|
27
|
+
* @memberof StopForecasterPair202Response
|
|
28
|
+
*/
|
|
29
|
+
state?: StopForecasterPair202ResponseStateEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const StopForecasterPair202ResponseStateEnum: {
|
|
35
|
+
readonly Canceled: "canceled";
|
|
36
|
+
};
|
|
37
|
+
export type StopForecasterPair202ResponseStateEnum = typeof StopForecasterPair202ResponseStateEnum[keyof typeof StopForecasterPair202ResponseStateEnum];
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the StopForecasterPair202Response interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfStopForecasterPair202Response(value: object): value is StopForecasterPair202Response;
|
|
42
|
+
export declare function StopForecasterPair202ResponseFromJSON(json: any): StopForecasterPair202Response;
|
|
43
|
+
export declare function StopForecasterPair202ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StopForecasterPair202Response;
|
|
44
|
+
export declare function StopForecasterPair202ResponseToJSON(json: any): StopForecasterPair202Response;
|
|
45
|
+
export declare function StopForecasterPair202ResponseToJSONTyped(value?: StopForecasterPair202Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const StopForecasterPair202ResponseStateEnum = {
|
|
18
|
+
Canceled: 'canceled'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the StopForecasterPair202Response interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfStopForecasterPair202Response(value) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function StopForecasterPair202ResponseFromJSON(json) {
|
|
27
|
+
return StopForecasterPair202ResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function StopForecasterPair202ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'pairName': json['pairName'] == null ? undefined : json['pairName'],
|
|
35
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function StopForecasterPair202ResponseToJSON(json) {
|
|
39
|
+
return StopForecasterPair202ResponseToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function StopForecasterPair202ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'pairName': value['pairName'],
|
|
47
|
+
'state': value['state'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -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'],
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
export * from './AgentModeRequest.js';
|
|
2
2
|
export * from './AgentStatus.js';
|
|
3
|
+
export * from './BenchmarkRun.js';
|
|
3
4
|
export * from './CollectorStartRequest.js';
|
|
4
5
|
export * from './CollectorStatus.js';
|
|
5
6
|
export * from './CreateGroupRequest.js';
|
|
6
7
|
export * from './Datastore.js';
|
|
8
|
+
export * from './DatastoreDetail.js';
|
|
9
|
+
export * from './DatastorePair.js';
|
|
7
10
|
export * from './DiskSizeTierSummary.js';
|
|
8
11
|
export * from './DiskTypeSummary.js';
|
|
12
|
+
export * from './EstimateRange.js';
|
|
13
|
+
export * from './ForecastStats.js';
|
|
14
|
+
export * from './ForecasterDatastoresRequest.js';
|
|
15
|
+
export * from './ForecasterPairStatus.js';
|
|
16
|
+
export * from './ForecasterStartRequest.js';
|
|
17
|
+
export * from './ForecasterStatus.js';
|
|
9
18
|
export * from './GetInventory200Response.js';
|
|
10
19
|
export * from './Group.js';
|
|
11
20
|
export * from './GroupListResponse.js';
|
|
@@ -20,6 +29,11 @@ export * from './InventoryData.js';
|
|
|
20
29
|
export * from './MigrationIssue.js';
|
|
21
30
|
export * from './Network.js';
|
|
22
31
|
export * from './OsInfo.js';
|
|
32
|
+
export * from './PairCapability.js';
|
|
33
|
+
export * from './PairCapabilityRequest.js';
|
|
34
|
+
export * from './PutForecasterCredentials403Response.js';
|
|
35
|
+
export * from './RightsizingClusterListResponse.js';
|
|
36
|
+
export * from './RightsizingClusterUtilization.js';
|
|
23
37
|
export * from './RightsizingCollectRequest.js';
|
|
24
38
|
export * from './RightsizingMetricStats.js';
|
|
25
39
|
export * from './RightsizingReport.js';
|
|
@@ -27,6 +41,7 @@ export * from './RightsizingReportListResponse.js';
|
|
|
27
41
|
export * from './RightsizingReportSummary.js';
|
|
28
42
|
export * from './RightsizingVMReport.js';
|
|
29
43
|
export * from './StartInspectionRequest.js';
|
|
44
|
+
export * from './StopForecasterPair202Response.js';
|
|
30
45
|
export * from './UpdateGroupRequest.js';
|
|
31
46
|
export * from './UpdateInventory.js';
|
|
32
47
|
export * from './VCenter.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -2,12 +2,21 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AgentModeRequest.js';
|
|
4
4
|
export * from './AgentStatus.js';
|
|
5
|
+
export * from './BenchmarkRun.js';
|
|
5
6
|
export * from './CollectorStartRequest.js';
|
|
6
7
|
export * from './CollectorStatus.js';
|
|
7
8
|
export * from './CreateGroupRequest.js';
|
|
8
9
|
export * from './Datastore.js';
|
|
10
|
+
export * from './DatastoreDetail.js';
|
|
11
|
+
export * from './DatastorePair.js';
|
|
9
12
|
export * from './DiskSizeTierSummary.js';
|
|
10
13
|
export * from './DiskTypeSummary.js';
|
|
14
|
+
export * from './EstimateRange.js';
|
|
15
|
+
export * from './ForecastStats.js';
|
|
16
|
+
export * from './ForecasterDatastoresRequest.js';
|
|
17
|
+
export * from './ForecasterPairStatus.js';
|
|
18
|
+
export * from './ForecasterStartRequest.js';
|
|
19
|
+
export * from './ForecasterStatus.js';
|
|
11
20
|
export * from './GetInventory200Response.js';
|
|
12
21
|
export * from './Group.js';
|
|
13
22
|
export * from './GroupListResponse.js';
|
|
@@ -22,6 +31,11 @@ export * from './InventoryData.js';
|
|
|
22
31
|
export * from './MigrationIssue.js';
|
|
23
32
|
export * from './Network.js';
|
|
24
33
|
export * from './OsInfo.js';
|
|
34
|
+
export * from './PairCapability.js';
|
|
35
|
+
export * from './PairCapabilityRequest.js';
|
|
36
|
+
export * from './PutForecasterCredentials403Response.js';
|
|
37
|
+
export * from './RightsizingClusterListResponse.js';
|
|
38
|
+
export * from './RightsizingClusterUtilization.js';
|
|
25
39
|
export * from './RightsizingCollectRequest.js';
|
|
26
40
|
export * from './RightsizingMetricStats.js';
|
|
27
41
|
export * from './RightsizingReport.js';
|
|
@@ -29,6 +43,7 @@ export * from './RightsizingReportListResponse.js';
|
|
|
29
43
|
export * from './RightsizingReportSummary.js';
|
|
30
44
|
export * from './RightsizingVMReport.js';
|
|
31
45
|
export * from './StartInspectionRequest.js';
|
|
46
|
+
export * from './StopForecasterPair202Response.js';
|
|
32
47
|
export * from './UpdateGroupRequest.js';
|
|
33
48
|
export * from './UpdateInventory.js';
|
|
34
49
|
export * from './VCenter.js';
|
|
@@ -0,0 +1,104 @@
|
|
|
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 BenchmarkRun
|
|
16
|
+
*/
|
|
17
|
+
export interface BenchmarkRun {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof BenchmarkRun
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof BenchmarkRun
|
|
28
|
+
*/
|
|
29
|
+
sessionId: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BenchmarkRun
|
|
34
|
+
*/
|
|
35
|
+
pairName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BenchmarkRun
|
|
40
|
+
*/
|
|
41
|
+
sourceDatastore: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof BenchmarkRun
|
|
46
|
+
*/
|
|
47
|
+
targetDatastore: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof BenchmarkRun
|
|
52
|
+
*/
|
|
53
|
+
iteration: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof BenchmarkRun
|
|
58
|
+
*/
|
|
59
|
+
diskSizeGb: number;
|
|
60
|
+
/**
|
|
61
|
+
* Time spent on disk creation and random fill (iteration 1 only)
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof BenchmarkRun
|
|
64
|
+
*/
|
|
65
|
+
prepDurationSec?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof BenchmarkRun
|
|
70
|
+
*/
|
|
71
|
+
durationSec: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof BenchmarkRun
|
|
76
|
+
*/
|
|
77
|
+
throughputMbps: number;
|
|
78
|
+
/**
|
|
79
|
+
* Benchmark method used (e.g., vm_native)
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof BenchmarkRun
|
|
82
|
+
*/
|
|
83
|
+
method?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Error message if this iteration failed
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof BenchmarkRun
|
|
88
|
+
*/
|
|
89
|
+
error?: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {Date}
|
|
93
|
+
* @memberof BenchmarkRun
|
|
94
|
+
*/
|
|
95
|
+
createdAt: Date;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Check if a given object implements the BenchmarkRun interface.
|
|
99
|
+
*/
|
|
100
|
+
export declare function instanceOfBenchmarkRun(value: object): value is BenchmarkRun;
|
|
101
|
+
export declare function BenchmarkRunFromJSON(json: any): BenchmarkRun;
|
|
102
|
+
export declare function BenchmarkRunFromJSONTyped(json: any, ignoreDiscriminator: boolean): BenchmarkRun;
|
|
103
|
+
export declare function BenchmarkRunToJSON(json: any): BenchmarkRun;
|
|
104
|
+
export declare function BenchmarkRunToJSONTyped(value?: BenchmarkRun | null, ignoreDiscriminator?: boolean): any;
|