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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +6 -2
  3. package/dist/apis/DefaultApi.d.ts +66 -0
  4. package/dist/apis/DefaultApi.js +75 -0
  5. package/dist/esm/apis/DefaultApi.d.ts +66 -0
  6. package/dist/esm/apis/DefaultApi.js +75 -0
  7. package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
  8. package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
  9. package/dist/esm/models/RightsizingClusterUtilization.d.ts +106 -0
  10. package/dist/esm/models/RightsizingClusterUtilization.js +91 -0
  11. package/dist/esm/models/VmUtilizationDetails.d.ts +18 -0
  12. package/dist/esm/models/VmUtilizationDetails.js +12 -0
  13. package/dist/esm/models/index.d.ts +2 -0
  14. package/dist/esm/models/index.js +2 -0
  15. package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
  16. package/dist/models/RightsizingClusterListResponse.js +55 -0
  17. package/dist/models/RightsizingClusterUtilization.d.ts +106 -0
  18. package/dist/models/RightsizingClusterUtilization.js +98 -0
  19. package/dist/models/VmUtilizationDetails.d.ts +18 -0
  20. package/dist/models/VmUtilizationDetails.js +12 -0
  21. package/dist/models/index.d.ts +2 -0
  22. package/dist/models/index.js +2 -0
  23. package/docs/DefaultApi.md +128 -0
  24. package/docs/RightsizingClusterListResponse.md +36 -0
  25. package/docs/RightsizingClusterUtilization.md +58 -0
  26. package/docs/VmUtilizationDetails.md +6 -0
  27. package/package.json +1 -1
  28. package/src/apis/DefaultApi.ts +135 -0
  29. package/src/models/RightsizingClusterListResponse.ts +83 -0
  30. package/src/models/RightsizingClusterUtilization.ts +176 -0
  31. package/src/models/VmUtilizationDetails.ts +27 -0
  32. package/src/models/index.ts +2 -0
@@ -37,6 +37,8 @@ docs/OsInfo.md
37
37
  docs/PairCapability.md
38
38
  docs/PairCapabilityRequest.md
39
39
  docs/PutForecasterCredentials403Response.md
40
+ docs/RightsizingClusterListResponse.md
41
+ docs/RightsizingClusterUtilization.md
40
42
  docs/RightsizingCollectRequest.md
41
43
  docs/RightsizingMetricStats.md
42
44
  docs/RightsizingReport.md
@@ -102,6 +104,8 @@ src/models/OsInfo.ts
102
104
  src/models/PairCapability.ts
103
105
  src/models/PairCapabilityRequest.ts
104
106
  src/models/PutForecasterCredentials403Response.ts
107
+ src/models/RightsizingClusterListResponse.ts
108
+ src/models/RightsizingClusterUtilization.ts
105
109
  src/models/RightsizingCollectRequest.ts
106
110
  src/models/RightsizingMetricStats.ts
107
111
  src/models/RightsizingReport.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/agent-sdk@0.12.0-1f1dc16fb9e5
1
+ # @openshift-migration-advisor/agent-sdk@0.12.0-e6e9d25bdc36
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -63,7 +63,9 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
63
63
  *DefaultApi* | [**getInspectorStatus**](docs/DefaultApi.md#getinspectorstatus) | **GET** /inspector | Get inspector status
64
64
  *DefaultApi* | [**getInspectorVddkStatus**](docs/DefaultApi.md#getinspectorvddkstatus) | **GET** /inspector/vddk | Get VDDK status
65
65
  *DefaultApi* | [**getInventory**](docs/DefaultApi.md#getinventory) | **GET** /inventory | Get collected inventory
66
+ *DefaultApi* | [**getLatestRightsizingClusters**](docs/DefaultApi.md#getlatestrightsizingclusters) | **GET** /cluster_rightsizing | Get cluster-level utilization aggregates for the latest completed report
66
67
  *DefaultApi* | [**getRightsizingReport**](docs/DefaultApi.md#getrightsizingreport) | **GET** /rightsizing/{id} | Get a specific rightsizing report with full VM metrics
68
+ *DefaultApi* | [**getRightsizingReportClusters**](docs/DefaultApi.md#getrightsizingreportclusters) | **GET** /cluster_rightsizing/{report_id} | Get cluster-level utilization aggregates for a specific report
67
69
  *DefaultApi* | [**getVM**](docs/DefaultApi.md#getvm) | **GET** /vms/{id} | Get details about a vm
68
70
  *DefaultApi* | [**getVMUtilization**](docs/DefaultApi.md#getvmutilization) | **GET** /vms/{id}/utilization | Get utilization breakdown for a specific VM
69
71
  *DefaultApi* | [**getVMs**](docs/DefaultApi.md#getvms) | **GET** /vms | Get list of VMs with filtering and pagination
@@ -123,6 +125,8 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
123
125
  - [PairCapability](docs/PairCapability.md)
124
126
  - [PairCapabilityRequest](docs/PairCapabilityRequest.md)
125
127
  - [PutForecasterCredentials403Response](docs/PutForecasterCredentials403Response.md)
128
+ - [RightsizingClusterListResponse](docs/RightsizingClusterListResponse.md)
129
+ - [RightsizingClusterUtilization](docs/RightsizingClusterUtilization.md)
126
130
  - [RightsizingCollectRequest](docs/RightsizingCollectRequest.md)
127
131
  - [RightsizingMetricStats](docs/RightsizingMetricStats.md)
128
132
  - [RightsizingReport](docs/RightsizingReport.md)
@@ -163,7 +167,7 @@ and is automatically generated by the
163
167
  [OpenAPI Generator](https://openapi-generator.tech) project:
164
168
 
165
169
  - API version: `v1`
166
- - Package version: `0.12.0-1f1dc16fb9e5`
170
+ - Package version: `0.12.0-e6e9d25bdc36`
167
171
  - Generator version: `7.23.0-SNAPSHOT`
168
172
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
169
173
 
@@ -28,6 +28,7 @@ import { type GroupResponse } from '../models/GroupResponse.js';
28
28
  import { type InspectorStatus } from '../models/InspectorStatus.js';
29
29
  import { type PairCapability } from '../models/PairCapability.js';
30
30
  import { type PairCapabilityRequest } from '../models/PairCapabilityRequest.js';
31
+ import { type RightsizingClusterListResponse } from '../models/RightsizingClusterListResponse.js';
31
32
  import { type RightsizingCollectRequest } from '../models/RightsizingCollectRequest.js';
32
33
  import { type RightsizingReport } from '../models/RightsizingReport.js';
33
34
  import { type RightsizingReportListResponse } from '../models/RightsizingReportListResponse.js';
@@ -77,6 +78,9 @@ export interface GetInventoryRequest {
77
78
  export interface GetRightsizingReportRequest {
78
79
  id: string;
79
80
  }
81
+ export interface GetRightsizingReportClustersRequest {
82
+ reportId: string;
83
+ }
80
84
  export interface GetVMRequest {
81
85
  id: string;
82
86
  }
@@ -404,6 +408,24 @@ export interface DefaultApiInterface {
404
408
  * Get collected inventory
405
409
  */
406
410
  getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
411
+ /**
412
+ * Creates request options for getLatestRightsizingClusters without sending the request
413
+ * @throws {RequiredError}
414
+ * @memberof DefaultApiInterface
415
+ */
416
+ getLatestRightsizingClustersRequestOpts(): Promise<runtime.RequestOpts>;
417
+ /**
418
+ *
419
+ * @summary Get cluster-level utilization aggregates for the latest completed report
420
+ * @param {*} [options] Override http request option.
421
+ * @throws {RequiredError}
422
+ * @memberof DefaultApiInterface
423
+ */
424
+ getLatestRightsizingClustersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
425
+ /**
426
+ * Get cluster-level utilization aggregates for the latest completed report
427
+ */
428
+ getLatestRightsizingClusters(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
407
429
  /**
408
430
  * Creates request options for getRightsizingReport without sending the request
409
431
  * @param {string} id Report UUID
@@ -424,6 +446,26 @@ export interface DefaultApiInterface {
424
446
  * Get a specific rightsizing report with full VM metrics
425
447
  */
426
448
  getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport>;
449
+ /**
450
+ * Creates request options for getRightsizingReportClusters without sending the request
451
+ * @param {string} reportId Rightsizing report UUID
452
+ * @throws {RequiredError}
453
+ * @memberof DefaultApiInterface
454
+ */
455
+ getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
456
+ /**
457
+ *
458
+ * @summary Get cluster-level utilization aggregates for a specific report
459
+ * @param {string} reportId Rightsizing report UUID
460
+ * @param {*} [options] Override http request option.
461
+ * @throws {RequiredError}
462
+ * @memberof DefaultApiInterface
463
+ */
464
+ getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
465
+ /**
466
+ * Get cluster-level utilization aggregates for a specific report
467
+ */
468
+ getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
427
469
  /**
428
470
  * Creates request options for getVM without sending the request
429
471
  * @param {string} id VirtualMachine id
@@ -1020,6 +1062,18 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1020
1062
  * Get collected inventory
1021
1063
  */
1022
1064
  getInventory(requestParameters?: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
1065
+ /**
1066
+ * Creates request options for getLatestRightsizingClusters without sending the request
1067
+ */
1068
+ getLatestRightsizingClustersRequestOpts(): Promise<runtime.RequestOpts>;
1069
+ /**
1070
+ * Get cluster-level utilization aggregates for the latest completed report
1071
+ */
1072
+ getLatestRightsizingClustersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
1073
+ /**
1074
+ * Get cluster-level utilization aggregates for the latest completed report
1075
+ */
1076
+ getLatestRightsizingClusters(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
1023
1077
  /**
1024
1078
  * Creates request options for getRightsizingReport without sending the request
1025
1079
  */
@@ -1032,6 +1086,18 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1032
1086
  * Get a specific rightsizing report with full VM metrics
1033
1087
  */
1034
1088
  getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport>;
1089
+ /**
1090
+ * Creates request options for getRightsizingReportClusters without sending the request
1091
+ */
1092
+ getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
1093
+ /**
1094
+ * Get cluster-level utilization aggregates for a specific report
1095
+ */
1096
+ getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
1097
+ /**
1098
+ * Get cluster-level utilization aggregates for a specific report
1099
+ */
1100
+ getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
1035
1101
  /**
1036
1102
  * Creates request options for getVM without sending the request
1037
1103
  */
@@ -42,6 +42,7 @@ const GroupResponse_js_1 = require("../models/GroupResponse.js");
42
42
  const InspectorStatus_js_1 = require("../models/InspectorStatus.js");
43
43
  const PairCapability_js_1 = require("../models/PairCapability.js");
44
44
  const PairCapabilityRequest_js_1 = require("../models/PairCapabilityRequest.js");
45
+ const RightsizingClusterListResponse_js_1 = require("../models/RightsizingClusterListResponse.js");
45
46
  const RightsizingCollectRequest_js_1 = require("../models/RightsizingCollectRequest.js");
46
47
  const RightsizingReport_js_1 = require("../models/RightsizingReport.js");
47
48
  const RightsizingReportListResponse_js_1 = require("../models/RightsizingReportListResponse.js");
@@ -570,6 +571,41 @@ class DefaultApi extends runtime.BaseAPI {
570
571
  return yield response.value();
571
572
  });
572
573
  }
574
+ /**
575
+ * Creates request options for getLatestRightsizingClusters without sending the request
576
+ */
577
+ getLatestRightsizingClustersRequestOpts() {
578
+ return __awaiter(this, void 0, void 0, function* () {
579
+ const queryParameters = {};
580
+ const headerParameters = {};
581
+ let urlPath = `/cluster_rightsizing`;
582
+ return {
583
+ path: urlPath,
584
+ method: 'GET',
585
+ headers: headerParameters,
586
+ query: queryParameters,
587
+ };
588
+ });
589
+ }
590
+ /**
591
+ * Get cluster-level utilization aggregates for the latest completed report
592
+ */
593
+ getLatestRightsizingClustersRaw(initOverrides) {
594
+ return __awaiter(this, void 0, void 0, function* () {
595
+ const requestOptions = yield this.getLatestRightsizingClustersRequestOpts();
596
+ const response = yield this.request(requestOptions, initOverrides);
597
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
598
+ });
599
+ }
600
+ /**
601
+ * Get cluster-level utilization aggregates for the latest completed report
602
+ */
603
+ getLatestRightsizingClusters(initOverrides) {
604
+ return __awaiter(this, void 0, void 0, function* () {
605
+ const response = yield this.getLatestRightsizingClustersRaw(initOverrides);
606
+ return yield response.value();
607
+ });
608
+ }
573
609
  /**
574
610
  * Creates request options for getRightsizingReport without sending the request
575
611
  */
@@ -609,6 +645,45 @@ class DefaultApi extends runtime.BaseAPI {
609
645
  return yield response.value();
610
646
  });
611
647
  }
648
+ /**
649
+ * Creates request options for getRightsizingReportClusters without sending the request
650
+ */
651
+ getRightsizingReportClustersRequestOpts(requestParameters) {
652
+ return __awaiter(this, void 0, void 0, function* () {
653
+ if (requestParameters['reportId'] == null) {
654
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().');
655
+ }
656
+ const queryParameters = {};
657
+ const headerParameters = {};
658
+ let urlPath = `/cluster_rightsizing/{report_id}`;
659
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
660
+ return {
661
+ path: urlPath,
662
+ method: 'GET',
663
+ headers: headerParameters,
664
+ query: queryParameters,
665
+ };
666
+ });
667
+ }
668
+ /**
669
+ * Get cluster-level utilization aggregates for a specific report
670
+ */
671
+ getRightsizingReportClustersRaw(requestParameters, initOverrides) {
672
+ return __awaiter(this, void 0, void 0, function* () {
673
+ const requestOptions = yield this.getRightsizingReportClustersRequestOpts(requestParameters);
674
+ const response = yield this.request(requestOptions, initOverrides);
675
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
676
+ });
677
+ }
678
+ /**
679
+ * Get cluster-level utilization aggregates for a specific report
680
+ */
681
+ getRightsizingReportClusters(requestParameters, initOverrides) {
682
+ return __awaiter(this, void 0, void 0, function* () {
683
+ const response = yield this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
684
+ return yield response.value();
685
+ });
686
+ }
612
687
  /**
613
688
  * Creates request options for getVM without sending the request
614
689
  */
@@ -28,6 +28,7 @@ import { type GroupResponse } from '../models/GroupResponse.js';
28
28
  import { type InspectorStatus } from '../models/InspectorStatus.js';
29
29
  import { type PairCapability } from '../models/PairCapability.js';
30
30
  import { type PairCapabilityRequest } from '../models/PairCapabilityRequest.js';
31
+ import { type RightsizingClusterListResponse } from '../models/RightsizingClusterListResponse.js';
31
32
  import { type RightsizingCollectRequest } from '../models/RightsizingCollectRequest.js';
32
33
  import { type RightsizingReport } from '../models/RightsizingReport.js';
33
34
  import { type RightsizingReportListResponse } from '../models/RightsizingReportListResponse.js';
@@ -77,6 +78,9 @@ export interface GetInventoryRequest {
77
78
  export interface GetRightsizingReportRequest {
78
79
  id: string;
79
80
  }
81
+ export interface GetRightsizingReportClustersRequest {
82
+ reportId: string;
83
+ }
80
84
  export interface GetVMRequest {
81
85
  id: string;
82
86
  }
@@ -404,6 +408,24 @@ export interface DefaultApiInterface {
404
408
  * Get collected inventory
405
409
  */
406
410
  getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
411
+ /**
412
+ * Creates request options for getLatestRightsizingClusters without sending the request
413
+ * @throws {RequiredError}
414
+ * @memberof DefaultApiInterface
415
+ */
416
+ getLatestRightsizingClustersRequestOpts(): Promise<runtime.RequestOpts>;
417
+ /**
418
+ *
419
+ * @summary Get cluster-level utilization aggregates for the latest completed report
420
+ * @param {*} [options] Override http request option.
421
+ * @throws {RequiredError}
422
+ * @memberof DefaultApiInterface
423
+ */
424
+ getLatestRightsizingClustersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
425
+ /**
426
+ * Get cluster-level utilization aggregates for the latest completed report
427
+ */
428
+ getLatestRightsizingClusters(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
407
429
  /**
408
430
  * Creates request options for getRightsizingReport without sending the request
409
431
  * @param {string} id Report UUID
@@ -424,6 +446,26 @@ export interface DefaultApiInterface {
424
446
  * Get a specific rightsizing report with full VM metrics
425
447
  */
426
448
  getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport>;
449
+ /**
450
+ * Creates request options for getRightsizingReportClusters without sending the request
451
+ * @param {string} reportId Rightsizing report UUID
452
+ * @throws {RequiredError}
453
+ * @memberof DefaultApiInterface
454
+ */
455
+ getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
456
+ /**
457
+ *
458
+ * @summary Get cluster-level utilization aggregates for a specific report
459
+ * @param {string} reportId Rightsizing report UUID
460
+ * @param {*} [options] Override http request option.
461
+ * @throws {RequiredError}
462
+ * @memberof DefaultApiInterface
463
+ */
464
+ getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
465
+ /**
466
+ * Get cluster-level utilization aggregates for a specific report
467
+ */
468
+ getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
427
469
  /**
428
470
  * Creates request options for getVM without sending the request
429
471
  * @param {string} id VirtualMachine id
@@ -1020,6 +1062,18 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1020
1062
  * Get collected inventory
1021
1063
  */
1022
1064
  getInventory(requestParameters?: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
1065
+ /**
1066
+ * Creates request options for getLatestRightsizingClusters without sending the request
1067
+ */
1068
+ getLatestRightsizingClustersRequestOpts(): Promise<runtime.RequestOpts>;
1069
+ /**
1070
+ * Get cluster-level utilization aggregates for the latest completed report
1071
+ */
1072
+ getLatestRightsizingClustersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
1073
+ /**
1074
+ * Get cluster-level utilization aggregates for the latest completed report
1075
+ */
1076
+ getLatestRightsizingClusters(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
1023
1077
  /**
1024
1078
  * Creates request options for getRightsizingReport without sending the request
1025
1079
  */
@@ -1032,6 +1086,18 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1032
1086
  * Get a specific rightsizing report with full VM metrics
1033
1087
  */
1034
1088
  getRightsizingReport(requestParameters: GetRightsizingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingReport>;
1089
+ /**
1090
+ * Creates request options for getRightsizingReportClusters without sending the request
1091
+ */
1092
+ getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
1093
+ /**
1094
+ * Get cluster-level utilization aggregates for a specific report
1095
+ */
1096
+ getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
1097
+ /**
1098
+ * Get cluster-level utilization aggregates for a specific report
1099
+ */
1100
+ getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
1035
1101
  /**
1036
1102
  * Creates request options for getVM without sending the request
1037
1103
  */
@@ -39,6 +39,7 @@ import { GroupResponseFromJSON, } from '../models/GroupResponse.js';
39
39
  import { InspectorStatusFromJSON, } from '../models/InspectorStatus.js';
40
40
  import { PairCapabilityFromJSON, } from '../models/PairCapability.js';
41
41
  import { PairCapabilityRequestToJSON, } from '../models/PairCapabilityRequest.js';
42
+ import { RightsizingClusterListResponseFromJSON, } from '../models/RightsizingClusterListResponse.js';
42
43
  import { RightsizingCollectRequestToJSON, } from '../models/RightsizingCollectRequest.js';
43
44
  import { RightsizingReportFromJSON, } from '../models/RightsizingReport.js';
44
45
  import { RightsizingReportListResponseFromJSON, } from '../models/RightsizingReportListResponse.js';
@@ -567,6 +568,41 @@ export class DefaultApi extends runtime.BaseAPI {
567
568
  return yield response.value();
568
569
  });
569
570
  }
571
+ /**
572
+ * Creates request options for getLatestRightsizingClusters without sending the request
573
+ */
574
+ getLatestRightsizingClustersRequestOpts() {
575
+ return __awaiter(this, void 0, void 0, function* () {
576
+ const queryParameters = {};
577
+ const headerParameters = {};
578
+ let urlPath = `/cluster_rightsizing`;
579
+ return {
580
+ path: urlPath,
581
+ method: 'GET',
582
+ headers: headerParameters,
583
+ query: queryParameters,
584
+ };
585
+ });
586
+ }
587
+ /**
588
+ * Get cluster-level utilization aggregates for the latest completed report
589
+ */
590
+ getLatestRightsizingClustersRaw(initOverrides) {
591
+ return __awaiter(this, void 0, void 0, function* () {
592
+ const requestOptions = yield this.getLatestRightsizingClustersRequestOpts();
593
+ const response = yield this.request(requestOptions, initOverrides);
594
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
595
+ });
596
+ }
597
+ /**
598
+ * Get cluster-level utilization aggregates for the latest completed report
599
+ */
600
+ getLatestRightsizingClusters(initOverrides) {
601
+ return __awaiter(this, void 0, void 0, function* () {
602
+ const response = yield this.getLatestRightsizingClustersRaw(initOverrides);
603
+ return yield response.value();
604
+ });
605
+ }
570
606
  /**
571
607
  * Creates request options for getRightsizingReport without sending the request
572
608
  */
@@ -606,6 +642,45 @@ export class DefaultApi extends runtime.BaseAPI {
606
642
  return yield response.value();
607
643
  });
608
644
  }
645
+ /**
646
+ * Creates request options for getRightsizingReportClusters without sending the request
647
+ */
648
+ getRightsizingReportClustersRequestOpts(requestParameters) {
649
+ return __awaiter(this, void 0, void 0, function* () {
650
+ if (requestParameters['reportId'] == null) {
651
+ throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().');
652
+ }
653
+ const queryParameters = {};
654
+ const headerParameters = {};
655
+ let urlPath = `/cluster_rightsizing/{report_id}`;
656
+ urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
657
+ return {
658
+ path: urlPath,
659
+ method: 'GET',
660
+ headers: headerParameters,
661
+ query: queryParameters,
662
+ };
663
+ });
664
+ }
665
+ /**
666
+ * Get cluster-level utilization aggregates for a specific report
667
+ */
668
+ getRightsizingReportClustersRaw(requestParameters, initOverrides) {
669
+ return __awaiter(this, void 0, void 0, function* () {
670
+ const requestOptions = yield this.getRightsizingReportClustersRequestOpts(requestParameters);
671
+ const response = yield this.request(requestOptions, initOverrides);
672
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
673
+ });
674
+ }
675
+ /**
676
+ * Get cluster-level utilization aggregates for a specific report
677
+ */
678
+ getRightsizingReportClusters(requestParameters, initOverrides) {
679
+ return __awaiter(this, void 0, void 0, function* () {
680
+ const response = yield this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
681
+ return yield response.value();
682
+ });
683
+ }
609
684
  /**
610
685
  * Creates request options for getVM without sending the request
611
686
  */
@@ -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;