@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,54 @@
|
|
|
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.instanceOfPairCapabilityRequest = instanceOfPairCapabilityRequest;
|
|
17
|
+
exports.PairCapabilityRequestFromJSON = PairCapabilityRequestFromJSON;
|
|
18
|
+
exports.PairCapabilityRequestFromJSONTyped = PairCapabilityRequestFromJSONTyped;
|
|
19
|
+
exports.PairCapabilityRequestToJSON = PairCapabilityRequestToJSON;
|
|
20
|
+
exports.PairCapabilityRequestToJSONTyped = PairCapabilityRequestToJSONTyped;
|
|
21
|
+
const VcenterCredentials_js_1 = require("./VcenterCredentials.js");
|
|
22
|
+
const DatastorePair_js_1 = require("./DatastorePair.js");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PairCapabilityRequest interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPairCapabilityRequest(value) {
|
|
27
|
+
if (!('pairs' in value) || value['pairs'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function PairCapabilityRequestFromJSON(json) {
|
|
32
|
+
return PairCapabilityRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function PairCapabilityRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'credentials': json['credentials'] == null ? undefined : (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['credentials']),
|
|
40
|
+
'pairs': (json['pairs'].map(DatastorePair_js_1.DatastorePairFromJSON)),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PairCapabilityRequestToJSON(json) {
|
|
44
|
+
return PairCapabilityRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PairCapabilityRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['credentials']),
|
|
52
|
+
'pairs': (value['pairs'].map(DatastorePair_js_1.DatastorePairToJSON)),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 PutForecasterCredentials403Response
|
|
16
|
+
*/
|
|
17
|
+
export interface PutForecasterCredentials403Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PutForecasterCredentials403Response
|
|
22
|
+
*/
|
|
23
|
+
error?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof PutForecasterCredentials403Response
|
|
28
|
+
*/
|
|
29
|
+
missingPrivileges?: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PutForecasterCredentials403Response interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPutForecasterCredentials403Response(value: object): value is PutForecasterCredentials403Response;
|
|
35
|
+
export declare function PutForecasterCredentials403ResponseFromJSON(json: any): PutForecasterCredentials403Response;
|
|
36
|
+
export declare function PutForecasterCredentials403ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutForecasterCredentials403Response;
|
|
37
|
+
export declare function PutForecasterCredentials403ResponseToJSON(json: any): PutForecasterCredentials403Response;
|
|
38
|
+
export declare function PutForecasterCredentials403ResponseToJSONTyped(value?: PutForecasterCredentials403Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfPutForecasterCredentials403Response = instanceOfPutForecasterCredentials403Response;
|
|
17
|
+
exports.PutForecasterCredentials403ResponseFromJSON = PutForecasterCredentials403ResponseFromJSON;
|
|
18
|
+
exports.PutForecasterCredentials403ResponseFromJSONTyped = PutForecasterCredentials403ResponseFromJSONTyped;
|
|
19
|
+
exports.PutForecasterCredentials403ResponseToJSON = PutForecasterCredentials403ResponseToJSON;
|
|
20
|
+
exports.PutForecasterCredentials403ResponseToJSONTyped = PutForecasterCredentials403ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutForecasterCredentials403Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPutForecasterCredentials403Response(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PutForecasterCredentials403ResponseFromJSON(json) {
|
|
28
|
+
return PutForecasterCredentials403ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PutForecasterCredentials403ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
36
|
+
'missingPrivileges': json['missingPrivileges'] == null ? undefined : json['missingPrivileges'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function PutForecasterCredentials403ResponseToJSON(json) {
|
|
40
|
+
return PutForecasterCredentials403ResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function PutForecasterCredentials403ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'error': value['error'],
|
|
48
|
+
'missingPrivileges': value['missingPrivileges'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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,57 @@
|
|
|
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.StopForecasterPair202ResponseStateEnum = void 0;
|
|
17
|
+
exports.instanceOfStopForecasterPair202Response = instanceOfStopForecasterPair202Response;
|
|
18
|
+
exports.StopForecasterPair202ResponseFromJSON = StopForecasterPair202ResponseFromJSON;
|
|
19
|
+
exports.StopForecasterPair202ResponseFromJSONTyped = StopForecasterPair202ResponseFromJSONTyped;
|
|
20
|
+
exports.StopForecasterPair202ResponseToJSON = StopForecasterPair202ResponseToJSON;
|
|
21
|
+
exports.StopForecasterPair202ResponseToJSONTyped = StopForecasterPair202ResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.StopForecasterPair202ResponseStateEnum = {
|
|
26
|
+
Canceled: 'canceled'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the StopForecasterPair202Response interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfStopForecasterPair202Response(value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function StopForecasterPair202ResponseFromJSON(json) {
|
|
35
|
+
return StopForecasterPair202ResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function StopForecasterPair202ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'pairName': json['pairName'] == null ? undefined : json['pairName'],
|
|
43
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function StopForecasterPair202ResponseToJSON(json) {
|
|
47
|
+
return StopForecasterPair202ResponseToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function StopForecasterPair202ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'pairName': value['pairName'],
|
|
55
|
+
'state': value['state'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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
|
@@ -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';
|