@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0-914fe80385ee
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 +50 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +56 -17
- package/dist/apis/DefaultApi.d.ts +706 -126
- package/dist/apis/DefaultApi.js +916 -285
- package/dist/esm/apis/DefaultApi.d.ts +706 -126
- package/dist/esm/apis/DefaultApi.js +898 -267
- 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/InspectorStatus.d.ts +20 -7
- package/dist/esm/models/InspectorStatus.js +12 -7
- 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 +112 -0
- package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
- package/dist/esm/models/RightsizingCollectRequest.d.ts +70 -0
- package/dist/esm/models/RightsizingCollectRequest.js +56 -0
- package/dist/esm/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/esm/models/RightsizingMetricStats.js +63 -0
- package/dist/esm/models/RightsizingReport.d.ts +81 -0
- package/dist/esm/models/RightsizingReport.js +76 -0
- package/dist/esm/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingReportListResponse.js +48 -0
- package/dist/esm/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/esm/models/RightsizingReportSummary.js +71 -0
- package/dist/esm/models/RightsizingVMReport.d.ts +53 -0
- package/dist/esm/models/RightsizingVMReport.js +57 -0
- package/dist/esm/models/StartInspectionRequest.d.ts +32 -0
- package/dist/esm/models/StartInspectionRequest.js +43 -0
- package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/esm/models/StopForecasterPair202Response.js +49 -0
- package/dist/esm/models/VMs.d.ts +18 -0
- package/dist/esm/models/VMs.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +31 -1
- package/dist/esm/models/VirtualMachine.js +12 -4
- package/dist/esm/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/esm/models/VirtualMachineDetail.js +3 -3
- package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
- package/dist/esm/models/VmInspectionConcern.js +51 -0
- package/dist/esm/models/VmInspectionResults.d.ts +33 -0
- package/dist/esm/models/VmInspectionResults.js +42 -0
- package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
- package/dist/esm/models/VmInspectionStatus.js +1 -2
- package/dist/esm/models/VmUtilizationDetails.d.ts +116 -0
- package/dist/esm/models/VmUtilizationDetails.js +99 -0
- package/dist/esm/models/index.d.ts +25 -1
- package/dist/esm/models/index.js +25 -1
- package/dist/esm/runtime.js +1 -1
- 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/InspectorStatus.d.ts +20 -7
- package/dist/models/InspectorStatus.js +12 -7
- 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 +112 -0
- package/dist/models/RightsizingClusterUtilization.js +102 -0
- package/dist/models/RightsizingCollectRequest.d.ts +70 -0
- package/dist/models/RightsizingCollectRequest.js +63 -0
- package/dist/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/models/RightsizingMetricStats.js +70 -0
- package/dist/models/RightsizingReport.d.ts +81 -0
- package/dist/models/RightsizingReport.js +83 -0
- package/dist/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/models/RightsizingReportListResponse.js +55 -0
- package/dist/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/models/RightsizingReportSummary.js +78 -0
- package/dist/models/RightsizingVMReport.d.ts +53 -0
- package/dist/models/RightsizingVMReport.js +64 -0
- package/dist/models/StartInspectionRequest.d.ts +32 -0
- package/dist/models/StartInspectionRequest.js +50 -0
- package/dist/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/models/StopForecasterPair202Response.js +57 -0
- package/dist/models/VMs.d.ts +18 -0
- package/dist/models/VMs.js +4 -0
- package/dist/models/VirtualMachine.d.ts +31 -1
- package/dist/models/VirtualMachine.js +12 -4
- package/dist/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/models/VirtualMachineDetail.js +3 -3
- package/dist/models/VmInspectionConcern.d.ts +44 -0
- package/dist/models/VmInspectionConcern.js +58 -0
- package/dist/models/VmInspectionResults.d.ts +33 -0
- package/dist/models/VmInspectionResults.js +49 -0
- package/dist/models/VmInspectionStatus.d.ts +0 -1
- package/dist/models/VmInspectionStatus.js +1 -2
- package/dist/models/VmUtilizationDetails.d.ts +116 -0
- package/dist/models/VmUtilizationDetails.js +106 -0
- package/dist/models/index.d.ts +25 -1
- package/dist/models/index.js +25 -1
- package/dist/runtime.js +1 -1
- package/docs/BenchmarkRun.md +58 -0
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +1265 -240
- 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/InspectorStatus.md +4 -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 +60 -0
- package/docs/RightsizingCollectRequest.md +46 -0
- package/docs/RightsizingMetricStats.md +44 -0
- package/docs/RightsizingReport.md +50 -0
- package/docs/RightsizingReportListResponse.md +36 -0
- package/docs/RightsizingReportSummary.md +49 -0
- package/docs/RightsizingVMReport.md +40 -0
- package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +5 -6
- package/docs/StopForecasterPair202Response.md +36 -0
- package/docs/VMs.md +4 -0
- package/docs/VirtualMachine.md +12 -2
- package/docs/VirtualMachineDetail.md +1 -1
- package/docs/VmInspectionConcern.md +39 -0
- package/docs/VmInspectionResults.md +35 -0
- package/docs/VmUtilizationDetails.md +62 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +1548 -350
- 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/InspectorStatus.ts +37 -7
- 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 +185 -0
- package/src/models/RightsizingCollectRequest.ts +123 -0
- package/src/models/RightsizingMetricStats.ts +111 -0
- package/src/models/RightsizingReport.ts +146 -0
- package/src/models/RightsizingReportListResponse.ts +83 -0
- package/src/models/RightsizingReportSummary.ts +129 -0
- package/src/models/RightsizingVMReport.ts +101 -0
- package/src/models/StartInspectionRequest.ts +66 -0
- package/src/models/StopForecasterPair202Response.ts +83 -0
- package/src/models/VMs.ts +18 -0
- package/src/models/VirtualMachine.ts +43 -4
- package/src/models/VirtualMachineDetail.ts +11 -11
- package/src/models/VmInspectionConcern.ts +84 -0
- package/src/models/VmInspectionResults.ts +73 -0
- package/src/models/VmInspectionStatus.ts +1 -2
- package/src/models/VmUtilizationDetails.ts +192 -0
- package/src/models/index.ts +25 -1
- package/src/runtime.ts +1 -2
- package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
- package/dist/esm/models/InspectorStartRequest.js +0 -48
- package/dist/models/InspectorStartRequest.d.ts +0 -39
- package/dist/models/InspectorStartRequest.js +0 -55
- package/src/models/InspectorStartRequest.ts +0 -83
|
@@ -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,112 @@
|
|
|
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
|
+
* vSphere MoRef of the ClusterComputeResource (e.g. "domain-c123").
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RightsizingClusterUtilization
|
|
22
|
+
*/
|
|
23
|
+
clusterId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Display name of the cluster as reported by vCenter (e.g. "production-cluster").
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RightsizingClusterUtilization
|
|
28
|
+
*/
|
|
29
|
+
clusterName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Number of VMs with utilization data in this cluster
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof RightsizingClusterUtilization
|
|
34
|
+
*/
|
|
35
|
+
vmCount: number;
|
|
36
|
+
/**
|
|
37
|
+
* SUM(vCPUs × cpu_avg%) / SUM(vCPUs) — weighted average CPU utilization (%)
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof RightsizingClusterUtilization
|
|
40
|
+
*/
|
|
41
|
+
cpuAvg: number;
|
|
42
|
+
/**
|
|
43
|
+
* 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).
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof RightsizingClusterUtilization
|
|
47
|
+
*/
|
|
48
|
+
cpuP95: number;
|
|
49
|
+
/**
|
|
50
|
+
* Weighted summary of per-VM max values (see cpu_p95 note)
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof RightsizingClusterUtilization
|
|
53
|
+
*/
|
|
54
|
+
cpuMax: number;
|
|
55
|
+
/**
|
|
56
|
+
* SUM(provisionedMB × mem_avg%) / SUM(provisionedMB) — weighted average memory utilization (%)
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof RightsizingClusterUtilization
|
|
59
|
+
*/
|
|
60
|
+
memAvg: number;
|
|
61
|
+
/**
|
|
62
|
+
* Weighted summary of per-VM memory p95 values (see cpu_p95 note)
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof RightsizingClusterUtilization
|
|
65
|
+
*/
|
|
66
|
+
memP95: number;
|
|
67
|
+
/**
|
|
68
|
+
* Weighted summary of per-VM memory max values (see cpu_p95 note)
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof RightsizingClusterUtilization
|
|
71
|
+
*/
|
|
72
|
+
memMax: number;
|
|
73
|
+
/**
|
|
74
|
+
* SUM(provisionedKB × disk%) / SUM(provisionedKB) — weighted average disk utilization (%)
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof RightsizingClusterUtilization
|
|
77
|
+
*/
|
|
78
|
+
disk: number;
|
|
79
|
+
/**
|
|
80
|
+
* SUM(vCPUs × confidence%) / SUM(vCPUs). vCPU-weighted data coverage (0–100 %). Interpret utilization cautiously when low.
|
|
81
|
+
*
|
|
82
|
+
* @type {number}
|
|
83
|
+
* @memberof RightsizingClusterUtilization
|
|
84
|
+
*/
|
|
85
|
+
confidence: number;
|
|
86
|
+
/**
|
|
87
|
+
* Sum of vCPU counts across all VMs in the cluster
|
|
88
|
+
* @type {number}
|
|
89
|
+
* @memberof RightsizingClusterUtilization
|
|
90
|
+
*/
|
|
91
|
+
totalProvisionedCpus: number;
|
|
92
|
+
/**
|
|
93
|
+
* Sum of provisioned RAM (MB) across all VMs in the cluster
|
|
94
|
+
* @type {number}
|
|
95
|
+
* @memberof RightsizingClusterUtilization
|
|
96
|
+
*/
|
|
97
|
+
totalProvisionedMemoryMb: number;
|
|
98
|
+
/**
|
|
99
|
+
* Sum of provisioned disk (KB) across all VMs in the cluster
|
|
100
|
+
* @type {number}
|
|
101
|
+
* @memberof RightsizingClusterUtilization
|
|
102
|
+
*/
|
|
103
|
+
totalProvisionedDiskKb: number;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Check if a given object implements the RightsizingClusterUtilization interface.
|
|
107
|
+
*/
|
|
108
|
+
export declare function instanceOfRightsizingClusterUtilization(value: object): value is RightsizingClusterUtilization;
|
|
109
|
+
export declare function RightsizingClusterUtilizationFromJSON(json: any): RightsizingClusterUtilization;
|
|
110
|
+
export declare function RightsizingClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterUtilization;
|
|
111
|
+
export declare function RightsizingClusterUtilizationToJSON(json: any): RightsizingClusterUtilization;
|
|
112
|
+
export declare function RightsizingClusterUtilizationToJSONTyped(value?: RightsizingClusterUtilization | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,102 @@
|
|
|
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 (!('clusterName' in value) || value['clusterName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('cpuAvg' in value) || value['cpuAvg'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('cpuP95' in value) || value['cpuP95'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('cpuMax' in value) || value['cpuMax'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('memAvg' in value) || value['memAvg'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('memP95' in value) || value['memP95'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('memMax' in value) || value['memMax'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('disk' in value) || value['disk'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('totalProvisionedCpus' in value) || value['totalProvisionedCpus'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('totalProvisionedMemoryMb' in value) || value['totalProvisionedMemoryMb'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('totalProvisionedDiskKb' in value) || value['totalProvisionedDiskKb'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
function RightsizingClusterUtilizationFromJSON(json) {
|
|
56
|
+
return RightsizingClusterUtilizationFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function RightsizingClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'clusterId': json['cluster_id'],
|
|
64
|
+
'clusterName': json['cluster_name'],
|
|
65
|
+
'vmCount': json['vm_count'],
|
|
66
|
+
'cpuAvg': json['cpu_avg'],
|
|
67
|
+
'cpuP95': json['cpu_p95'],
|
|
68
|
+
'cpuMax': json['cpu_max'],
|
|
69
|
+
'memAvg': json['mem_avg'],
|
|
70
|
+
'memP95': json['mem_p95'],
|
|
71
|
+
'memMax': json['mem_max'],
|
|
72
|
+
'disk': json['disk'],
|
|
73
|
+
'confidence': json['confidence'],
|
|
74
|
+
'totalProvisionedCpus': json['total_provisioned_cpus'],
|
|
75
|
+
'totalProvisionedMemoryMb': json['total_provisioned_memory_mb'],
|
|
76
|
+
'totalProvisionedDiskKb': json['total_provisioned_disk_kb'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function RightsizingClusterUtilizationToJSON(json) {
|
|
80
|
+
return RightsizingClusterUtilizationToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
function RightsizingClusterUtilizationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
'cluster_id': value['clusterId'],
|
|
88
|
+
'cluster_name': value['clusterName'],
|
|
89
|
+
'vm_count': value['vmCount'],
|
|
90
|
+
'cpu_avg': value['cpuAvg'],
|
|
91
|
+
'cpu_p95': value['cpuP95'],
|
|
92
|
+
'cpu_max': value['cpuMax'],
|
|
93
|
+
'mem_avg': value['memAvg'],
|
|
94
|
+
'mem_p95': value['memP95'],
|
|
95
|
+
'mem_max': value['memMax'],
|
|
96
|
+
'disk': value['disk'],
|
|
97
|
+
'confidence': value['confidence'],
|
|
98
|
+
'total_provisioned_cpus': value['totalProvisionedCpus'],
|
|
99
|
+
'total_provisioned_memory_mb': value['totalProvisionedMemoryMb'],
|
|
100
|
+
'total_provisioned_disk_kb': value['totalProvisionedDiskKb'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { VcenterCredentials } from './VcenterCredentials.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RightsizingCollectRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface RightsizingCollectRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {VcenterCredentials}
|
|
22
|
+
* @memberof RightsizingCollectRequest
|
|
23
|
+
*/
|
|
24
|
+
credentials: VcenterCredentials;
|
|
25
|
+
/**
|
|
26
|
+
* Lookback window in hours (default 720 = 30 days)
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof RightsizingCollectRequest
|
|
29
|
+
*/
|
|
30
|
+
lookbackHours?: number;
|
|
31
|
+
/**
|
|
32
|
+
* vSphere historical interval ID in seconds (300=day, 1800=week, 7200=month)
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof RightsizingCollectRequest
|
|
35
|
+
*/
|
|
36
|
+
intervalId?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Filter VMs by name substring
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof RightsizingCollectRequest
|
|
41
|
+
*/
|
|
42
|
+
nameFilter?: string;
|
|
43
|
+
/**
|
|
44
|
+
* MoRef value of a ClusterComputeResource to scope discovery (e.g. domain-c123)
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof RightsizingCollectRequest
|
|
47
|
+
*/
|
|
48
|
+
clusterId?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Number of VMs per QueryPerf round-trip
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof RightsizingCollectRequest
|
|
53
|
+
*/
|
|
54
|
+
batchSize?: number;
|
|
55
|
+
/**
|
|
56
|
+
* If true, discover VMs live from vSphere. If false (default), use the VMs already stored in the local inventory.
|
|
57
|
+
*
|
|
58
|
+
* @type {boolean}
|
|
59
|
+
* @memberof RightsizingCollectRequest
|
|
60
|
+
*/
|
|
61
|
+
discoverVms?: boolean;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the RightsizingCollectRequest interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfRightsizingCollectRequest(value: object): value is RightsizingCollectRequest;
|
|
67
|
+
export declare function RightsizingCollectRequestFromJSON(json: any): RightsizingCollectRequest;
|
|
68
|
+
export declare function RightsizingCollectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingCollectRequest;
|
|
69
|
+
export declare function RightsizingCollectRequestToJSON(json: any): RightsizingCollectRequest;
|
|
70
|
+
export declare function RightsizingCollectRequestToJSONTyped(value?: RightsizingCollectRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfRightsizingCollectRequest = instanceOfRightsizingCollectRequest;
|
|
17
|
+
exports.RightsizingCollectRequestFromJSON = RightsizingCollectRequestFromJSON;
|
|
18
|
+
exports.RightsizingCollectRequestFromJSONTyped = RightsizingCollectRequestFromJSONTyped;
|
|
19
|
+
exports.RightsizingCollectRequestToJSON = RightsizingCollectRequestToJSON;
|
|
20
|
+
exports.RightsizingCollectRequestToJSONTyped = RightsizingCollectRequestToJSONTyped;
|
|
21
|
+
const VcenterCredentials_js_1 = require("./VcenterCredentials.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the RightsizingCollectRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfRightsizingCollectRequest(value) {
|
|
26
|
+
if (!('credentials' in value) || value['credentials'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function RightsizingCollectRequestFromJSON(json) {
|
|
31
|
+
return RightsizingCollectRequestFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function RightsizingCollectRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['credentials']),
|
|
39
|
+
'lookbackHours': json['lookback_hours'] == null ? undefined : json['lookback_hours'],
|
|
40
|
+
'intervalId': json['interval_id'] == null ? undefined : json['interval_id'],
|
|
41
|
+
'nameFilter': json['name_filter'] == null ? undefined : json['name_filter'],
|
|
42
|
+
'clusterId': json['cluster_id'] == null ? undefined : json['cluster_id'],
|
|
43
|
+
'batchSize': json['batch_size'] == null ? undefined : json['batch_size'],
|
|
44
|
+
'discoverVms': json['discover_vms'] == null ? undefined : json['discover_vms'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function RightsizingCollectRequestToJSON(json) {
|
|
48
|
+
return RightsizingCollectRequestToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function RightsizingCollectRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['credentials']),
|
|
56
|
+
'lookback_hours': value['lookbackHours'],
|
|
57
|
+
'interval_id': value['intervalId'],
|
|
58
|
+
'name_filter': value['nameFilter'],
|
|
59
|
+
'cluster_id': value['clusterId'],
|
|
60
|
+
'batch_size': value['batchSize'],
|
|
61
|
+
'discover_vms': value['discoverVms'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 RightsizingMetricStats
|
|
16
|
+
*/
|
|
17
|
+
export interface RightsizingMetricStats {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof RightsizingMetricStats
|
|
22
|
+
*/
|
|
23
|
+
sampleCount: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof RightsizingMetricStats
|
|
28
|
+
*/
|
|
29
|
+
average: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof RightsizingMetricStats
|
|
34
|
+
*/
|
|
35
|
+
p95: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof RightsizingMetricStats
|
|
40
|
+
*/
|
|
41
|
+
p99: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof RightsizingMetricStats
|
|
46
|
+
*/
|
|
47
|
+
max: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof RightsizingMetricStats
|
|
52
|
+
*/
|
|
53
|
+
latest: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the RightsizingMetricStats interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfRightsizingMetricStats(value: object): value is RightsizingMetricStats;
|
|
59
|
+
export declare function RightsizingMetricStatsFromJSON(json: any): RightsizingMetricStats;
|
|
60
|
+
export declare function RightsizingMetricStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingMetricStats;
|
|
61
|
+
export declare function RightsizingMetricStatsToJSON(json: any): RightsizingMetricStats;
|
|
62
|
+
export declare function RightsizingMetricStatsToJSONTyped(value?: RightsizingMetricStats | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.instanceOfRightsizingMetricStats = instanceOfRightsizingMetricStats;
|
|
17
|
+
exports.RightsizingMetricStatsFromJSON = RightsizingMetricStatsFromJSON;
|
|
18
|
+
exports.RightsizingMetricStatsFromJSONTyped = RightsizingMetricStatsFromJSONTyped;
|
|
19
|
+
exports.RightsizingMetricStatsToJSON = RightsizingMetricStatsToJSON;
|
|
20
|
+
exports.RightsizingMetricStatsToJSONTyped = RightsizingMetricStatsToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RightsizingMetricStats interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRightsizingMetricStats(value) {
|
|
25
|
+
if (!('sampleCount' in value) || value['sampleCount'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('average' in value) || value['average'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('p95' in value) || value['p95'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('p99' in value) || value['p99'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('max' in value) || value['max'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('latest' in value) || value['latest'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function RightsizingMetricStatsFromJSON(json) {
|
|
40
|
+
return RightsizingMetricStatsFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function RightsizingMetricStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'sampleCount': json['sample_count'],
|
|
48
|
+
'average': json['average'],
|
|
49
|
+
'p95': json['p95'],
|
|
50
|
+
'p99': json['p99'],
|
|
51
|
+
'max': json['max'],
|
|
52
|
+
'latest': json['latest'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function RightsizingMetricStatsToJSON(json) {
|
|
56
|
+
return RightsizingMetricStatsToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function RightsizingMetricStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'sample_count': value['sampleCount'],
|
|
64
|
+
'average': value['average'],
|
|
65
|
+
'p95': value['p95'],
|
|
66
|
+
'p99': value['p99'],
|
|
67
|
+
'max': value['max'],
|
|
68
|
+
'latest': value['latest'],
|
|
69
|
+
};
|
|
70
|
+
}
|