@openshift-migration-advisor/agent-sdk 0.12.0-d5edcd6935f2 → 0.12.0-e4c04f972747
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 +22 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +25 -5
- package/dist/apis/DefaultApi.d.ts +369 -38
- package/dist/apis/DefaultApi.js +410 -43
- package/dist/esm/apis/DefaultApi.d.ts +369 -38
- package/dist/esm/apis/DefaultApi.js +410 -43
- package/dist/esm/models/AgentStatus.d.ts +1 -1
- package/dist/esm/models/AgentStatus.js +3 -3
- package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
- package/dist/esm/models/ApplicationListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +51 -0
- package/dist/esm/models/ApplicationOverview.js +56 -0
- package/dist/esm/models/ApplicationVM.d.ts +38 -0
- package/dist/esm/models/ApplicationVM.js +47 -0
- package/dist/esm/models/ClusterFeatures.d.ts +54 -0
- package/dist/esm/models/ClusterFeatures.js +54 -0
- package/dist/esm/models/ClusterUtilization.d.ts +68 -0
- package/dist/esm/models/ClusterUtilization.js +67 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
- package/dist/esm/models/Group.d.ts +0 -6
- package/dist/esm/models/Group.js +0 -2
- package/dist/esm/models/GroupResponse.d.ts +7 -0
- package/dist/esm/models/GroupResponse.js +3 -0
- package/dist/esm/models/Inventory.d.ts +7 -1
- package/dist/esm/models/Inventory.js +5 -3
- package/dist/esm/models/InventoryData.d.ts +14 -0
- package/dist/esm/models/InventoryData.js +6 -0
- package/dist/esm/models/RightsizingClusterListResponse.d.ts +1 -1
- package/dist/esm/models/RightsizingClusterListResponse.js +3 -3
- package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +12 -12
- package/dist/esm/models/RightsizingClusterUtilization.js +36 -36
- package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
- package/dist/esm/models/RightsizingCollectRequest.js +12 -12
- package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/esm/models/RightsizingMetricStats.js +3 -3
- package/dist/esm/models/RightsizingReport.d.ts +6 -6
- package/dist/esm/models/RightsizingReport.js +18 -18
- package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/esm/models/RightsizingReportSummary.js +18 -18
- package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/esm/models/UpdateGroupRequest.js +0 -2
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -0
- package/dist/esm/models/VMNIC.d.ts +12 -0
- package/dist/esm/models/VMNIC.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +30 -6
- package/dist/esm/models/VirtualMachine.js +18 -10
- package/dist/esm/models/VirtualMachineDetail.d.ts +12 -0
- package/dist/esm/models/VirtualMachineDetail.js +4 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
- package/dist/esm/models/VmUtilizationDetails.d.ts +12 -12
- package/dist/esm/models/VmUtilizationDetails.js +36 -36
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- package/dist/models/ApplicationListResponse.d.ts +33 -0
- package/dist/models/ApplicationListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +51 -0
- package/dist/models/ApplicationOverview.js +63 -0
- package/dist/models/ApplicationVM.d.ts +38 -0
- package/dist/models/ApplicationVM.js +54 -0
- package/dist/models/ClusterFeatures.d.ts +54 -0
- package/dist/models/ClusterFeatures.js +62 -0
- package/dist/models/ClusterUtilization.d.ts +68 -0
- package/dist/models/ClusterUtilization.js +74 -0
- package/dist/models/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/models/DeleteLabelGloballyResponse.js +54 -0
- package/dist/models/Group.d.ts +0 -6
- package/dist/models/Group.js +0 -2
- package/dist/models/GroupResponse.d.ts +7 -0
- package/dist/models/GroupResponse.js +3 -0
- package/dist/models/Inventory.d.ts +7 -1
- package/dist/models/Inventory.js +5 -3
- package/dist/models/InventoryData.d.ts +14 -0
- package/dist/models/InventoryData.js +6 -0
- package/dist/models/RightsizingClusterListResponse.d.ts +1 -1
- package/dist/models/RightsizingClusterListResponse.js +3 -3
- package/dist/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterResponse.js +55 -0
- package/dist/models/RightsizingClusterUtilization.d.ts +12 -12
- package/dist/models/RightsizingClusterUtilization.js +36 -36
- package/dist/models/RightsizingCollectRequest.d.ts +6 -6
- package/dist/models/RightsizingCollectRequest.js +12 -12
- package/dist/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/models/RightsizingMetricStats.js +3 -3
- package/dist/models/RightsizingReport.d.ts +6 -6
- package/dist/models/RightsizingReport.js +18 -18
- package/dist/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/models/RightsizingReportSummary.js +18 -18
- package/dist/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/models/UpdateGroupRequest.js +0 -2
- package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/models/UpdateLabelVMsRequest.js +50 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/models/VMFilterOptionsResponse.js +66 -0
- package/dist/models/VMLabelsResponse.d.ts +38 -0
- package/dist/models/VMLabelsResponse.js +54 -0
- package/dist/models/VMNIC.d.ts +12 -0
- package/dist/models/VMNIC.js +4 -0
- package/dist/models/VirtualMachine.d.ts +30 -6
- package/dist/models/VirtualMachine.js +18 -10
- package/dist/models/VirtualMachineDetail.d.ts +12 -0
- package/dist/models/VirtualMachineDetail.js +4 -0
- package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/models/VirtualMachineUpdateRequest.js +50 -0
- package/dist/models/VmUtilizationDetails.d.ts +12 -12
- package/dist/models/VmUtilizationDetails.js +36 -36
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/docs/AgentStatus.md +2 -2
- package/docs/ApplicationListResponse.md +34 -0
- package/docs/ApplicationOverview.md +40 -0
- package/docs/ApplicationVM.md +36 -0
- package/docs/ClusterFeatures.md +38 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/DefaultApi.md +679 -79
- package/docs/DeleteLabelGloballyResponse.md +36 -0
- package/docs/GetInventory200Response.md +4 -2
- package/docs/Group.md +0 -2
- package/docs/GroupResponse.md +2 -0
- package/docs/Inventory.md +4 -2
- package/docs/InventoryData.md +4 -0
- package/docs/RightsizingClusterListResponse.md +2 -2
- package/docs/RightsizingClusterResponse.md +36 -0
- package/docs/RightsizingClusterUtilization.md +24 -24
- package/docs/RightsizingCollectRequest.md +12 -12
- package/docs/RightsizingMetricStats.md +2 -2
- package/docs/RightsizingReport.md +12 -12
- package/docs/RightsizingReportSummary.md +12 -12
- package/docs/UpdateGroupRequest.md +0 -2
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMFilterOptionsResponse.md +42 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VMNIC.md +4 -0
- package/docs/VirtualMachine.md +18 -10
- package/docs/VirtualMachineDetail.md +4 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmUtilizationDetails.md +24 -24
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +806 -111
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/ApplicationListResponse.ts +74 -0
- package/src/models/ApplicationOverview.ts +101 -0
- package/src/models/ApplicationVM.ts +75 -0
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CreateGroupRequest.ts +0 -8
- package/src/models/DeleteLabelGloballyResponse.ts +75 -0
- package/src/models/Group.ts +0 -8
- package/src/models/GroupResponse.ts +15 -0
- package/src/models/Inventory.ts +12 -4
- package/src/models/InventoryData.ts +30 -0
- package/src/models/RightsizingClusterListResponse.ts +4 -4
- package/src/models/RightsizingClusterResponse.ts +83 -0
- package/src/models/RightsizingClusterUtilization.ts +48 -48
- package/src/models/RightsizingCollectRequest.ts +18 -18
- package/src/models/RightsizingMetricStats.ts +4 -4
- package/src/models/RightsizingReport.ts +24 -24
- package/src/models/RightsizingReportSummary.ts +24 -24
- package/src/models/UpdateGroupRequest.ts +0 -8
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMFilterOptionsResponse.ts +102 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VMNIC.ts +16 -0
- package/src/models/VirtualMachine.ts +48 -16
- package/src/models/VirtualMachineDetail.ts +16 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmUtilizationDetails.ts +48 -48
- package/src/models/index.ts +11 -0
|
@@ -21,7 +21,13 @@ export interface Inventory {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof Inventory
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
vcenter_id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Version of the vCenter api. For example "8.0.3.0"
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Inventory
|
|
29
|
+
*/
|
|
30
|
+
vcenter_version?: string;
|
|
25
31
|
/**
|
|
26
32
|
* Map of cluster names to their inventory data
|
|
27
33
|
* @type {{ [key: string]: InventoryData; }}
|
|
@@ -17,7 +17,7 @@ import { InventoryDataFromJSON, InventoryDataToJSON, } from './InventoryData.js'
|
|
|
17
17
|
* Check if a given object implements the Inventory interface.
|
|
18
18
|
*/
|
|
19
19
|
export function instanceOfInventory(value) {
|
|
20
|
-
if (!('
|
|
20
|
+
if (!('vcenter_id' in value) || value['vcenter_id'] === undefined)
|
|
21
21
|
return false;
|
|
22
22
|
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
23
23
|
return false;
|
|
@@ -31,7 +31,8 @@ export function InventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
return json;
|
|
32
32
|
}
|
|
33
33
|
return {
|
|
34
|
-
'
|
|
34
|
+
'vcenter_id': json['vcenter_id'],
|
|
35
|
+
'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
35
36
|
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
36
37
|
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
37
38
|
};
|
|
@@ -44,7 +45,8 @@ export function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
45
|
return value;
|
|
45
46
|
}
|
|
46
47
|
return {
|
|
47
|
-
'vcenter_id': value['
|
|
48
|
+
'vcenter_id': value['vcenter_id'],
|
|
49
|
+
'vcenter_version': value['vcenter_version'],
|
|
48
50
|
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
49
51
|
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
50
52
|
};
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { VCenter } from './VCenter.js';
|
|
13
13
|
import type { Infra } from './Infra.js';
|
|
14
|
+
import type { ClusterUtilization } from './ClusterUtilization.js';
|
|
14
15
|
import type { VMs } from './VMs.js';
|
|
16
|
+
import type { ClusterFeatures } from './ClusterFeatures.js';
|
|
15
17
|
/**
|
|
16
18
|
*
|
|
17
19
|
* @export
|
|
@@ -24,6 +26,18 @@ export interface InventoryData {
|
|
|
24
26
|
* @memberof InventoryData
|
|
25
27
|
*/
|
|
26
28
|
vcenter?: VCenter;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {ClusterFeatures}
|
|
32
|
+
* @memberof InventoryData
|
|
33
|
+
*/
|
|
34
|
+
clusterFeatures?: ClusterFeatures;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {ClusterUtilization}
|
|
38
|
+
* @memberof InventoryData
|
|
39
|
+
*/
|
|
40
|
+
clusterUtilization?: ClusterUtilization;
|
|
27
41
|
/**
|
|
28
42
|
*
|
|
29
43
|
* @type {VMs}
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { VCenterFromJSON, VCenterToJSON, } from './VCenter.js';
|
|
15
15
|
import { InfraFromJSON, InfraToJSON, } from './Infra.js';
|
|
16
|
+
import { ClusterUtilizationFromJSON, ClusterUtilizationToJSON, } from './ClusterUtilization.js';
|
|
16
17
|
import { VMsFromJSON, VMsToJSON, } from './VMs.js';
|
|
18
|
+
import { ClusterFeaturesFromJSON, ClusterFeaturesToJSON, } from './ClusterFeatures.js';
|
|
17
19
|
/**
|
|
18
20
|
* Check if a given object implements the InventoryData interface.
|
|
19
21
|
*/
|
|
@@ -33,6 +35,8 @@ export function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
35
|
}
|
|
34
36
|
return {
|
|
35
37
|
'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
|
|
38
|
+
'clusterFeatures': json['clusterFeatures'] == null ? undefined : ClusterFeaturesFromJSON(json['clusterFeatures']),
|
|
39
|
+
'clusterUtilization': json['clusterUtilization'] == null ? undefined : ClusterUtilizationFromJSON(json['clusterUtilization']),
|
|
36
40
|
'vms': VMsFromJSON(json['vms']),
|
|
37
41
|
'infra': InfraFromJSON(json['infra']),
|
|
38
42
|
};
|
|
@@ -46,6 +50,8 @@ export function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
50
|
}
|
|
47
51
|
return {
|
|
48
52
|
'vcenter': VCenterToJSON(value['vcenter']),
|
|
53
|
+
'clusterFeatures': ClusterFeaturesToJSON(value['clusterFeatures']),
|
|
54
|
+
'clusterUtilization': ClusterUtilizationToJSON(value['clusterUtilization']),
|
|
49
55
|
'vms': VMsToJSON(value['vms']),
|
|
50
56
|
'infra': InfraToJSON(value['infra']),
|
|
51
57
|
};
|
|
@@ -16,7 +16,7 @@ import { RightsizingClusterUtilizationFromJSON, RightsizingClusterUtilizationToJ
|
|
|
16
16
|
* Check if a given object implements the RightsizingClusterListResponse interface.
|
|
17
17
|
*/
|
|
18
18
|
export function instanceOfRightsizingClusterListResponse(value) {
|
|
19
|
-
if (!('
|
|
19
|
+
if (!('report_id' in value) || value['report_id'] === undefined)
|
|
20
20
|
return false;
|
|
21
21
|
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
22
22
|
return false;
|
|
@@ -30,7 +30,7 @@ export function RightsizingClusterListResponseFromJSONTyped(json, ignoreDiscrimi
|
|
|
30
30
|
return json;
|
|
31
31
|
}
|
|
32
32
|
return {
|
|
33
|
-
'
|
|
33
|
+
'report_id': json['report_id'],
|
|
34
34
|
'clusters': (json['clusters'].map(RightsizingClusterUtilizationFromJSON)),
|
|
35
35
|
};
|
|
36
36
|
}
|
|
@@ -42,7 +42,7 @@ export function RightsizingClusterListResponseToJSONTyped(value, ignoreDiscrimin
|
|
|
42
42
|
return value;
|
|
43
43
|
}
|
|
44
44
|
return {
|
|
45
|
-
'report_id': value['
|
|
45
|
+
'report_id': value['report_id'],
|
|
46
46
|
'clusters': (value['clusters'].map(RightsizingClusterUtilizationToJSON)),
|
|
47
47
|
};
|
|
48
48
|
}
|
|
@@ -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 RightsizingClusterResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface RightsizingClusterResponse {
|
|
19
|
+
/**
|
|
20
|
+
* The report ID this data was aggregated from
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RightsizingClusterResponse
|
|
23
|
+
*/
|
|
24
|
+
report_id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {RightsizingClusterUtilization}
|
|
28
|
+
* @memberof RightsizingClusterResponse
|
|
29
|
+
*/
|
|
30
|
+
cluster: RightsizingClusterUtilization;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the RightsizingClusterResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfRightsizingClusterResponse(value: object): value is RightsizingClusterResponse;
|
|
36
|
+
export declare function RightsizingClusterResponseFromJSON(json: any): RightsizingClusterResponse;
|
|
37
|
+
export declare function RightsizingClusterResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterResponse;
|
|
38
|
+
export declare function RightsizingClusterResponseToJSON(json: any): RightsizingClusterResponse;
|
|
39
|
+
export declare function RightsizingClusterResponseToJSONTyped(value?: RightsizingClusterResponse | 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 RightsizingClusterResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfRightsizingClusterResponse(value) {
|
|
19
|
+
if (!('report_id' in value) || value['report_id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('cluster' in value) || value['cluster'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function RightsizingClusterResponseFromJSON(json) {
|
|
26
|
+
return RightsizingClusterResponseFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function RightsizingClusterResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'report_id': json['report_id'],
|
|
34
|
+
'cluster': RightsizingClusterUtilizationFromJSON(json['cluster']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function RightsizingClusterResponseToJSON(json) {
|
|
38
|
+
return RightsizingClusterResponseToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function RightsizingClusterResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'report_id': value['report_id'],
|
|
46
|
+
'cluster': RightsizingClusterUtilizationToJSON(value['cluster']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -20,56 +20,56 @@ export interface RightsizingClusterUtilization {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RightsizingClusterUtilization
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
cluster_id: string;
|
|
24
24
|
/**
|
|
25
25
|
* Display name of the cluster as reported by vCenter (e.g. "production-cluster").
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RightsizingClusterUtilization
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
cluster_name: string;
|
|
30
30
|
/**
|
|
31
31
|
* Number of VMs with utilization data in this cluster
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof RightsizingClusterUtilization
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
vm_count: number;
|
|
36
36
|
/**
|
|
37
37
|
* SUM(vCPUs × cpu_avg%) / SUM(vCPUs) — weighted average CPU utilization (%)
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof RightsizingClusterUtilization
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
cpu_avg: number;
|
|
42
42
|
/**
|
|
43
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
44
|
*
|
|
45
45
|
* @type {number}
|
|
46
46
|
* @memberof RightsizingClusterUtilization
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
cpu_p95: number;
|
|
49
49
|
/**
|
|
50
50
|
* Weighted summary of per-VM max values (see cpu_p95 note)
|
|
51
51
|
* @type {number}
|
|
52
52
|
* @memberof RightsizingClusterUtilization
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
cpu_max: number;
|
|
55
55
|
/**
|
|
56
56
|
* SUM(provisionedMB × mem_avg%) / SUM(provisionedMB) — weighted average memory utilization (%)
|
|
57
57
|
* @type {number}
|
|
58
58
|
* @memberof RightsizingClusterUtilization
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
mem_avg: number;
|
|
61
61
|
/**
|
|
62
62
|
* Weighted summary of per-VM memory p95 values (see cpu_p95 note)
|
|
63
63
|
* @type {number}
|
|
64
64
|
* @memberof RightsizingClusterUtilization
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
mem_p95: number;
|
|
67
67
|
/**
|
|
68
68
|
* Weighted summary of per-VM memory max values (see cpu_p95 note)
|
|
69
69
|
* @type {number}
|
|
70
70
|
* @memberof RightsizingClusterUtilization
|
|
71
71
|
*/
|
|
72
|
-
|
|
72
|
+
mem_max: number;
|
|
73
73
|
/**
|
|
74
74
|
* SUM(provisionedKB × disk%) / SUM(provisionedKB) — weighted average disk utilization (%)
|
|
75
75
|
* @type {number}
|
|
@@ -88,19 +88,19 @@ export interface RightsizingClusterUtilization {
|
|
|
88
88
|
* @type {number}
|
|
89
89
|
* @memberof RightsizingClusterUtilization
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
total_provisioned_cpus: number;
|
|
92
92
|
/**
|
|
93
93
|
* Sum of provisioned RAM (MB) across all VMs in the cluster
|
|
94
94
|
* @type {number}
|
|
95
95
|
* @memberof RightsizingClusterUtilization
|
|
96
96
|
*/
|
|
97
|
-
|
|
97
|
+
total_provisioned_memory_mb: number;
|
|
98
98
|
/**
|
|
99
99
|
* Sum of provisioned disk (KB) across all VMs in the cluster
|
|
100
100
|
* @type {number}
|
|
101
101
|
* @memberof RightsizingClusterUtilization
|
|
102
102
|
*/
|
|
103
|
-
|
|
103
|
+
total_provisioned_disk_kb: number;
|
|
104
104
|
}
|
|
105
105
|
/**
|
|
106
106
|
* Check if a given object implements the RightsizingClusterUtilization interface.
|
|
@@ -15,33 +15,33 @@
|
|
|
15
15
|
* Check if a given object implements the RightsizingClusterUtilization interface.
|
|
16
16
|
*/
|
|
17
17
|
export function instanceOfRightsizingClusterUtilization(value) {
|
|
18
|
-
if (!('
|
|
18
|
+
if (!('cluster_id' in value) || value['cluster_id'] === undefined)
|
|
19
19
|
return false;
|
|
20
|
-
if (!('
|
|
20
|
+
if (!('cluster_name' in value) || value['cluster_name'] === undefined)
|
|
21
21
|
return false;
|
|
22
|
-
if (!('
|
|
22
|
+
if (!('vm_count' in value) || value['vm_count'] === undefined)
|
|
23
23
|
return false;
|
|
24
|
-
if (!('
|
|
24
|
+
if (!('cpu_avg' in value) || value['cpu_avg'] === undefined)
|
|
25
25
|
return false;
|
|
26
|
-
if (!('
|
|
26
|
+
if (!('cpu_p95' in value) || value['cpu_p95'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
-
if (!('
|
|
28
|
+
if (!('cpu_max' in value) || value['cpu_max'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
-
if (!('
|
|
30
|
+
if (!('mem_avg' in value) || value['mem_avg'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('
|
|
32
|
+
if (!('mem_p95' in value) || value['mem_p95'] === undefined)
|
|
33
33
|
return false;
|
|
34
|
-
if (!('
|
|
34
|
+
if (!('mem_max' in value) || value['mem_max'] === undefined)
|
|
35
35
|
return false;
|
|
36
36
|
if (!('disk' in value) || value['disk'] === undefined)
|
|
37
37
|
return false;
|
|
38
38
|
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('
|
|
40
|
+
if (!('total_provisioned_cpus' in value) || value['total_provisioned_cpus'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
-
if (!('
|
|
42
|
+
if (!('total_provisioned_memory_mb' in value) || value['total_provisioned_memory_mb'] === undefined)
|
|
43
43
|
return false;
|
|
44
|
-
if (!('
|
|
44
|
+
if (!('total_provisioned_disk_kb' in value) || value['total_provisioned_disk_kb'] === undefined)
|
|
45
45
|
return false;
|
|
46
46
|
return true;
|
|
47
47
|
}
|
|
@@ -53,20 +53,20 @@ export function RightsizingClusterUtilizationFromJSONTyped(json, ignoreDiscrimin
|
|
|
53
53
|
return json;
|
|
54
54
|
}
|
|
55
55
|
return {
|
|
56
|
-
'
|
|
57
|
-
'
|
|
58
|
-
'
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'
|
|
56
|
+
'cluster_id': json['cluster_id'],
|
|
57
|
+
'cluster_name': json['cluster_name'],
|
|
58
|
+
'vm_count': json['vm_count'],
|
|
59
|
+
'cpu_avg': json['cpu_avg'],
|
|
60
|
+
'cpu_p95': json['cpu_p95'],
|
|
61
|
+
'cpu_max': json['cpu_max'],
|
|
62
|
+
'mem_avg': json['mem_avg'],
|
|
63
|
+
'mem_p95': json['mem_p95'],
|
|
64
|
+
'mem_max': json['mem_max'],
|
|
65
65
|
'disk': json['disk'],
|
|
66
66
|
'confidence': json['confidence'],
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'
|
|
67
|
+
'total_provisioned_cpus': json['total_provisioned_cpus'],
|
|
68
|
+
'total_provisioned_memory_mb': json['total_provisioned_memory_mb'],
|
|
69
|
+
'total_provisioned_disk_kb': json['total_provisioned_disk_kb'],
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
export function RightsizingClusterUtilizationToJSON(json) {
|
|
@@ -77,19 +77,19 @@ export function RightsizingClusterUtilizationToJSONTyped(value, ignoreDiscrimina
|
|
|
77
77
|
return value;
|
|
78
78
|
}
|
|
79
79
|
return {
|
|
80
|
-
'cluster_id': value['
|
|
81
|
-
'cluster_name': value['
|
|
82
|
-
'vm_count': value['
|
|
83
|
-
'cpu_avg': value['
|
|
84
|
-
'cpu_p95': value['
|
|
85
|
-
'cpu_max': value['
|
|
86
|
-
'mem_avg': value['
|
|
87
|
-
'mem_p95': value['
|
|
88
|
-
'mem_max': value['
|
|
80
|
+
'cluster_id': value['cluster_id'],
|
|
81
|
+
'cluster_name': value['cluster_name'],
|
|
82
|
+
'vm_count': value['vm_count'],
|
|
83
|
+
'cpu_avg': value['cpu_avg'],
|
|
84
|
+
'cpu_p95': value['cpu_p95'],
|
|
85
|
+
'cpu_max': value['cpu_max'],
|
|
86
|
+
'mem_avg': value['mem_avg'],
|
|
87
|
+
'mem_p95': value['mem_p95'],
|
|
88
|
+
'mem_max': value['mem_max'],
|
|
89
89
|
'disk': value['disk'],
|
|
90
90
|
'confidence': value['confidence'],
|
|
91
|
-
'total_provisioned_cpus': value['
|
|
92
|
-
'total_provisioned_memory_mb': value['
|
|
93
|
-
'total_provisioned_disk_kb': value['
|
|
91
|
+
'total_provisioned_cpus': value['total_provisioned_cpus'],
|
|
92
|
+
'total_provisioned_memory_mb': value['total_provisioned_memory_mb'],
|
|
93
|
+
'total_provisioned_disk_kb': value['total_provisioned_disk_kb'],
|
|
94
94
|
};
|
|
95
95
|
}
|
|
@@ -27,38 +27,38 @@ export interface RightsizingCollectRequest {
|
|
|
27
27
|
* @type {number}
|
|
28
28
|
* @memberof RightsizingCollectRequest
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
lookback_hours?: number;
|
|
31
31
|
/**
|
|
32
32
|
* vSphere historical interval ID in seconds (300=day, 1800=week, 7200=month)
|
|
33
33
|
* @type {number}
|
|
34
34
|
* @memberof RightsizingCollectRequest
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
interval_id?: number;
|
|
37
37
|
/**
|
|
38
38
|
* Filter VMs by name substring
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof RightsizingCollectRequest
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
name_filter?: string;
|
|
43
43
|
/**
|
|
44
44
|
* MoRef value of a ClusterComputeResource to scope discovery (e.g. domain-c123)
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof RightsizingCollectRequest
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
cluster_id?: string;
|
|
49
49
|
/**
|
|
50
50
|
* Number of VMs per QueryPerf round-trip
|
|
51
51
|
* @type {number}
|
|
52
52
|
* @memberof RightsizingCollectRequest
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
batch_size?: number;
|
|
55
55
|
/**
|
|
56
56
|
* If true, discover VMs live from vSphere. If false (default), use the VMs already stored in the local inventory.
|
|
57
57
|
*
|
|
58
58
|
* @type {boolean}
|
|
59
59
|
* @memberof RightsizingCollectRequest
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
discover_vms?: boolean;
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* Check if a given object implements the RightsizingCollectRequest interface.
|
|
@@ -29,12 +29,12 @@ export function RightsizingCollectRequestFromJSONTyped(json, ignoreDiscriminator
|
|
|
29
29
|
}
|
|
30
30
|
return {
|
|
31
31
|
'credentials': VcenterCredentialsFromJSON(json['credentials']),
|
|
32
|
-
'
|
|
33
|
-
'
|
|
34
|
-
'
|
|
35
|
-
'
|
|
36
|
-
'
|
|
37
|
-
'
|
|
32
|
+
'lookback_hours': json['lookback_hours'] == null ? undefined : json['lookback_hours'],
|
|
33
|
+
'interval_id': json['interval_id'] == null ? undefined : json['interval_id'],
|
|
34
|
+
'name_filter': json['name_filter'] == null ? undefined : json['name_filter'],
|
|
35
|
+
'cluster_id': json['cluster_id'] == null ? undefined : json['cluster_id'],
|
|
36
|
+
'batch_size': json['batch_size'] == null ? undefined : json['batch_size'],
|
|
37
|
+
'discover_vms': json['discover_vms'] == null ? undefined : json['discover_vms'],
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
export function RightsizingCollectRequestToJSON(json) {
|
|
@@ -46,11 +46,11 @@ export function RightsizingCollectRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
48
48
|
'credentials': VcenterCredentialsToJSON(value['credentials']),
|
|
49
|
-
'lookback_hours': value['
|
|
50
|
-
'interval_id': value['
|
|
51
|
-
'name_filter': value['
|
|
52
|
-
'cluster_id': value['
|
|
53
|
-
'batch_size': value['
|
|
54
|
-
'discover_vms': value['
|
|
49
|
+
'lookback_hours': value['lookback_hours'],
|
|
50
|
+
'interval_id': value['interval_id'],
|
|
51
|
+
'name_filter': value['name_filter'],
|
|
52
|
+
'cluster_id': value['cluster_id'],
|
|
53
|
+
'batch_size': value['batch_size'],
|
|
54
|
+
'discover_vms': value['discover_vms'],
|
|
55
55
|
};
|
|
56
56
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* Check if a given object implements the RightsizingMetricStats interface.
|
|
16
16
|
*/
|
|
17
17
|
export function instanceOfRightsizingMetricStats(value) {
|
|
18
|
-
if (!('
|
|
18
|
+
if (!('sample_count' in value) || value['sample_count'] === undefined)
|
|
19
19
|
return false;
|
|
20
20
|
if (!('average' in value) || value['average'] === undefined)
|
|
21
21
|
return false;
|
|
@@ -37,7 +37,7 @@ export function RightsizingMetricStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
return json;
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
|
-
'
|
|
40
|
+
'sample_count': json['sample_count'],
|
|
41
41
|
'average': json['average'],
|
|
42
42
|
'p95': json['p95'],
|
|
43
43
|
'p99': json['p99'],
|
|
@@ -53,7 +53,7 @@ export function RightsizingMetricStatsToJSONTyped(value, ignoreDiscriminator = f
|
|
|
53
53
|
return value;
|
|
54
54
|
}
|
|
55
55
|
return {
|
|
56
|
-
'sample_count': value['
|
|
56
|
+
'sample_count': value['sample_count'],
|
|
57
57
|
'average': value['average'],
|
|
58
58
|
'p95': value['p95'],
|
|
59
59
|
'p99': value['p99'],
|
|
@@ -33,31 +33,31 @@ export interface RightsizingReport {
|
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof RightsizingReport
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
cluster_id: string;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {Date}
|
|
40
40
|
* @memberof RightsizingReport
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
window_start: Date;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {Date}
|
|
46
46
|
* @memberof RightsizingReport
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
window_end: Date;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {number}
|
|
52
52
|
* @memberof RightsizingReport
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
interval_id: number;
|
|
55
55
|
/**
|
|
56
56
|
* Theoretical maximum samples for the window (lookback / interval)
|
|
57
57
|
* @type {number}
|
|
58
58
|
* @memberof RightsizingReport
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
expected_sample_count: number;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {Array<RightsizingVMReport>}
|
|
@@ -69,7 +69,7 @@ export interface RightsizingReport {
|
|
|
69
69
|
* @type {Date}
|
|
70
70
|
* @memberof RightsizingReport
|
|
71
71
|
*/
|
|
72
|
-
|
|
72
|
+
created_at: Date;
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
* Check if a given object implements the RightsizingReport interface.
|