@openshift-migration-advisor/agent-sdk 0.12.0-b2d61b72e086 → 0.12.0-bbcf7fe3b88e
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 +14 -0
- package/README.md +18 -4
- package/dist/apis/DefaultApi.d.ts +303 -41
- package/dist/apis/DefaultApi.js +335 -46
- package/dist/esm/apis/DefaultApi.d.ts +303 -41
- package/dist/esm/apis/DefaultApi.js +335 -46
- package/dist/esm/models/AgentStatus.d.ts +1 -1
- package/dist/esm/models/AgentStatus.js +3 -3
- package/dist/esm/models/ClusterFeatures.d.ts +54 -0
- package/dist/esm/models/ClusterFeatures.js +54 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
- package/dist/esm/models/InspectorStatus.d.ts +0 -17
- package/dist/esm/models/InspectorStatus.js +1 -10
- package/dist/esm/models/Inventory.d.ts +7 -1
- package/dist/esm/models/Inventory.js +5 -3
- package/dist/esm/models/InventoryData.d.ts +7 -0
- package/dist/esm/models/InventoryData.js +3 -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/StartInspectionRequest.d.ts +8 -1
- package/dist/esm/models/StartInspectionRequest.js +5 -0
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +50 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +55 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -0
- package/dist/esm/models/VirtualMachine.d.ts +16 -4
- package/dist/esm/models/VirtualMachine.js +12 -8
- 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 +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- package/dist/models/ClusterFeatures.d.ts +54 -0
- package/dist/models/ClusterFeatures.js +62 -0
- package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/models/DeleteLabelGloballyResponse.js +54 -0
- package/dist/models/InspectorStatus.d.ts +0 -17
- package/dist/models/InspectorStatus.js +1 -10
- package/dist/models/Inventory.d.ts +7 -1
- package/dist/models/Inventory.js +5 -3
- package/dist/models/InventoryData.d.ts +7 -0
- package/dist/models/InventoryData.js +3 -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/StartInspectionRequest.d.ts +8 -1
- package/dist/models/StartInspectionRequest.js +5 -0
- package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/models/UpdateLabelVMsRequest.js +50 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +50 -0
- package/dist/models/VMFilterOptionsResponse.js +62 -0
- package/dist/models/VMLabelsResponse.d.ts +38 -0
- package/dist/models/VMLabelsResponse.js +54 -0
- package/dist/models/VirtualMachine.d.ts +16 -4
- package/dist/models/VirtualMachine.js +12 -8
- 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 +7 -0
- package/dist/models/index.js +7 -0
- package/docs/AgentStatus.md +2 -2
- package/docs/ClusterFeatures.md +38 -0
- package/docs/DefaultApi.md +529 -60
- package/docs/DeleteLabelGloballyResponse.md +36 -0
- package/docs/GetInventory200Response.md +4 -2
- package/docs/InspectorStatus.md +0 -4
- package/docs/Inventory.md +4 -2
- package/docs/InventoryData.md +2 -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/StartInspectionRequest.md +3 -1
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMFilterOptionsResponse.md +40 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VirtualMachine.md +12 -8
- 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 +641 -88
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/DeleteLabelGloballyResponse.ts +75 -0
- package/src/models/InspectorStatus.ts +1 -28
- package/src/models/Inventory.ts +12 -4
- package/src/models/InventoryData.ts +15 -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/StartInspectionRequest.ts +18 -1
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMFilterOptionsResponse.ts +93 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VirtualMachine.ts +28 -12
- 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 +7 -0
|
@@ -76,6 +76,12 @@ export interface VirtualMachine {
|
|
|
76
76
|
* @memberof VirtualMachine
|
|
77
77
|
*/
|
|
78
78
|
template?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Whether this VM is excluded from migration
|
|
81
|
+
* @type {boolean}
|
|
82
|
+
* @memberof VirtualMachine
|
|
83
|
+
*/
|
|
84
|
+
migrationExcluded?: boolean;
|
|
79
85
|
/**
|
|
80
86
|
*
|
|
81
87
|
* @type {VmInspectionStatus}
|
|
@@ -94,30 +100,36 @@ export interface VirtualMachine {
|
|
|
94
100
|
* @memberof VirtualMachine
|
|
95
101
|
*/
|
|
96
102
|
tags?: Array<string>;
|
|
103
|
+
/**
|
|
104
|
+
* User-defined labels for this VM
|
|
105
|
+
* @type {Array<string>}
|
|
106
|
+
* @memberof VirtualMachine
|
|
107
|
+
*/
|
|
108
|
+
labels?: Array<string>;
|
|
97
109
|
/**
|
|
98
110
|
* CPU utilization at p95 (%); absent when no utilization data
|
|
99
111
|
* @type {number}
|
|
100
112
|
* @memberof VirtualMachine
|
|
101
113
|
*/
|
|
102
|
-
|
|
114
|
+
utilization_cpu_p95?: number;
|
|
103
115
|
/**
|
|
104
116
|
* Memory utilization at p95 (%); absent when no utilization data
|
|
105
117
|
* @type {number}
|
|
106
118
|
* @memberof VirtualMachine
|
|
107
119
|
*/
|
|
108
|
-
|
|
120
|
+
utilization_mem_p95?: number;
|
|
109
121
|
/**
|
|
110
122
|
* Disk utilization (%); absent when no utilization data
|
|
111
123
|
* @type {number}
|
|
112
124
|
* @memberof VirtualMachine
|
|
113
125
|
*/
|
|
114
|
-
|
|
126
|
+
utilization_disk?: number;
|
|
115
127
|
/**
|
|
116
128
|
* Data confidence — sample_count / expected_sample_count × 100
|
|
117
129
|
* @type {number}
|
|
118
130
|
* @memberof VirtualMachine
|
|
119
131
|
*/
|
|
120
|
-
|
|
132
|
+
utilization_confidence?: number;
|
|
121
133
|
}
|
|
122
134
|
/**
|
|
123
135
|
* Check if a given object implements the VirtualMachine interface.
|
|
@@ -59,13 +59,15 @@ function VirtualMachineFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
59
|
'issueCount': json['issueCount'],
|
|
60
60
|
'migratable': json['migratable'] == null ? undefined : json['migratable'],
|
|
61
61
|
'template': json['template'] == null ? undefined : json['template'],
|
|
62
|
+
'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
|
|
62
63
|
'inspectionStatus': json['inspectionStatus'] == null ? undefined : (0, VmInspectionStatus_js_1.VmInspectionStatusFromJSON)(json['inspectionStatus']),
|
|
63
64
|
'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
|
|
64
65
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
65
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
66
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
67
|
+
'utilization_cpu_p95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
|
|
68
|
+
'utilization_mem_p95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
|
|
69
|
+
'utilization_disk': json['utilization_disk'] == null ? undefined : json['utilization_disk'],
|
|
70
|
+
'utilization_confidence': json['utilization_confidence'] == null ? undefined : json['utilization_confidence'],
|
|
69
71
|
};
|
|
70
72
|
}
|
|
71
73
|
function VirtualMachineToJSON(json) {
|
|
@@ -86,12 +88,14 @@ function VirtualMachineToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
86
88
|
'issueCount': value['issueCount'],
|
|
87
89
|
'migratable': value['migratable'],
|
|
88
90
|
'template': value['template'],
|
|
91
|
+
'migrationExcluded': value['migrationExcluded'],
|
|
89
92
|
'inspectionStatus': (0, VmInspectionStatus_js_1.VmInspectionStatusToJSON)(value['inspectionStatus']),
|
|
90
93
|
'inspectionConcernCount': value['inspectionConcernCount'],
|
|
91
94
|
'tags': value['tags'],
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'
|
|
95
|
+
'labels': value['labels'],
|
|
96
|
+
'utilization_cpu_p95': value['utilization_cpu_p95'],
|
|
97
|
+
'utilization_mem_p95': value['utilization_mem_p95'],
|
|
98
|
+
'utilization_disk': value['utilization_disk'],
|
|
99
|
+
'utilization_confidence': value['utilization_confidence'],
|
|
96
100
|
};
|
|
97
101
|
}
|
|
@@ -148,6 +148,18 @@ export interface VirtualMachineDetail {
|
|
|
148
148
|
* @memberof VirtualMachineDetail
|
|
149
149
|
*/
|
|
150
150
|
migratable?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Whether this VM is excluded from migration
|
|
153
|
+
* @type {boolean}
|
|
154
|
+
* @memberof VirtualMachineDetail
|
|
155
|
+
*/
|
|
156
|
+
migrationExcluded?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* User-defined labels for this VM
|
|
159
|
+
* @type {Array<string>}
|
|
160
|
+
* @memberof VirtualMachineDetail
|
|
161
|
+
*/
|
|
162
|
+
labels?: Array<string>;
|
|
151
163
|
/**
|
|
152
164
|
* Whether VMware Fault Tolerance is enabled, which maintains a live shadow VirtualMachine for instant failover
|
|
153
165
|
* @type {boolean}
|
|
@@ -78,6 +78,8 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
78
78
|
'storageUsed': json['storageUsed'] == null ? undefined : json['storageUsed'],
|
|
79
79
|
'template': json['template'] == null ? undefined : json['template'],
|
|
80
80
|
'migratable': json['migratable'] == null ? undefined : json['migratable'],
|
|
81
|
+
'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
|
|
82
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
81
83
|
'faultToleranceEnabled': json['faultToleranceEnabled'] == null ? undefined : json['faultToleranceEnabled'],
|
|
82
84
|
'nestedHVEnabled': json['nestedHVEnabled'] == null ? undefined : json['nestedHVEnabled'],
|
|
83
85
|
'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
|
|
@@ -120,6 +122,8 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
120
122
|
'storageUsed': value['storageUsed'],
|
|
121
123
|
'template': value['template'],
|
|
122
124
|
'migratable': value['migratable'],
|
|
125
|
+
'migrationExcluded': value['migrationExcluded'],
|
|
126
|
+
'labels': value['labels'],
|
|
123
127
|
'faultToleranceEnabled': value['faultToleranceEnabled'],
|
|
124
128
|
'nestedHVEnabled': value['nestedHVEnabled'],
|
|
125
129
|
'toolsStatus': value['toolsStatus'],
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VirtualMachineUpdateRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface VirtualMachineUpdateRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Whether to exclude this VM from migration
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof VirtualMachineUpdateRequest
|
|
22
|
+
*/
|
|
23
|
+
migrationExcluded?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* User-defined labels (replaces existing labels)
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof VirtualMachineUpdateRequest
|
|
28
|
+
*/
|
|
29
|
+
labels?: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the VirtualMachineUpdateRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfVirtualMachineUpdateRequest(value: object): value is VirtualMachineUpdateRequest;
|
|
35
|
+
export declare function VirtualMachineUpdateRequestFromJSON(json: any): VirtualMachineUpdateRequest;
|
|
36
|
+
export declare function VirtualMachineUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineUpdateRequest;
|
|
37
|
+
export declare function VirtualMachineUpdateRequestToJSON(json: any): VirtualMachineUpdateRequest;
|
|
38
|
+
export declare function VirtualMachineUpdateRequestToJSONTyped(value?: VirtualMachineUpdateRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfVirtualMachineUpdateRequest = instanceOfVirtualMachineUpdateRequest;
|
|
17
|
+
exports.VirtualMachineUpdateRequestFromJSON = VirtualMachineUpdateRequestFromJSON;
|
|
18
|
+
exports.VirtualMachineUpdateRequestFromJSONTyped = VirtualMachineUpdateRequestFromJSONTyped;
|
|
19
|
+
exports.VirtualMachineUpdateRequestToJSON = VirtualMachineUpdateRequestToJSON;
|
|
20
|
+
exports.VirtualMachineUpdateRequestToJSONTyped = VirtualMachineUpdateRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the VirtualMachineUpdateRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfVirtualMachineUpdateRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function VirtualMachineUpdateRequestFromJSON(json) {
|
|
28
|
+
return VirtualMachineUpdateRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function VirtualMachineUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
|
|
36
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function VirtualMachineUpdateRequestToJSON(json) {
|
|
40
|
+
return VirtualMachineUpdateRequestToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function VirtualMachineUpdateRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'migrationExcluded': value['migrationExcluded'],
|
|
48
|
+
'labels': value['labels'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -26,73 +26,73 @@ export interface VmUtilizationDetails {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof VmUtilizationDetails
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
vm_name: string;
|
|
30
30
|
/**
|
|
31
31
|
* Number of vCPUs provisioned for this VM
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof VmUtilizationDetails
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
provisioned_cpus: number;
|
|
36
36
|
/**
|
|
37
37
|
* Provisioned RAM (MB)
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof VmUtilizationDetails
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
provisioned_memory_mb: number;
|
|
42
42
|
/**
|
|
43
43
|
* Provisioned disk (KB)
|
|
44
44
|
* @type {number}
|
|
45
45
|
* @memberof VmUtilizationDetails
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
provisioned_disk_kb: number;
|
|
48
48
|
/**
|
|
49
49
|
* CPU utilization average (%)
|
|
50
50
|
* @type {number}
|
|
51
51
|
* @memberof VmUtilizationDetails
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
cpu_avg: number;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {number}
|
|
57
57
|
* @memberof VmUtilizationDetails
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
cpu_p95: number;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {number}
|
|
63
63
|
* @memberof VmUtilizationDetails
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
cpu_max: number;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {number}
|
|
69
69
|
* @memberof VmUtilizationDetails
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
cpu_latest: number;
|
|
72
72
|
/**
|
|
73
73
|
* Memory utilization average (%)
|
|
74
74
|
* @type {number}
|
|
75
75
|
* @memberof VmUtilizationDetails
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
mem_avg: number;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {number}
|
|
81
81
|
* @memberof VmUtilizationDetails
|
|
82
82
|
*/
|
|
83
|
-
|
|
83
|
+
mem_p95: number;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {number}
|
|
87
87
|
* @memberof VmUtilizationDetails
|
|
88
88
|
*/
|
|
89
|
-
|
|
89
|
+
mem_max: number;
|
|
90
90
|
/**
|
|
91
91
|
*
|
|
92
92
|
* @type {number}
|
|
93
93
|
* @memberof VmUtilizationDetails
|
|
94
94
|
*/
|
|
95
|
-
|
|
95
|
+
mem_latest: number;
|
|
96
96
|
/**
|
|
97
97
|
* Disk utilization (%)
|
|
98
98
|
* @type {number}
|
|
@@ -24,29 +24,29 @@ exports.VmUtilizationDetailsToJSONTyped = VmUtilizationDetailsToJSONTyped;
|
|
|
24
24
|
function instanceOfVmUtilizationDetails(value) {
|
|
25
25
|
if (!('moid' in value) || value['moid'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('vm_name' in value) || value['vm_name'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('
|
|
29
|
+
if (!('provisioned_cpus' in value) || value['provisioned_cpus'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('
|
|
31
|
+
if (!('provisioned_memory_mb' in value) || value['provisioned_memory_mb'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('
|
|
33
|
+
if (!('provisioned_disk_kb' in value) || value['provisioned_disk_kb'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
-
if (!('
|
|
35
|
+
if (!('cpu_avg' in value) || value['cpu_avg'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
-
if (!('
|
|
37
|
+
if (!('cpu_p95' in value) || value['cpu_p95'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('
|
|
39
|
+
if (!('cpu_max' in value) || value['cpu_max'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
-
if (!('
|
|
41
|
+
if (!('cpu_latest' in value) || value['cpu_latest'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
-
if (!('
|
|
43
|
+
if (!('mem_avg' in value) || value['mem_avg'] === undefined)
|
|
44
44
|
return false;
|
|
45
|
-
if (!('
|
|
45
|
+
if (!('mem_p95' in value) || value['mem_p95'] === undefined)
|
|
46
46
|
return false;
|
|
47
|
-
if (!('
|
|
47
|
+
if (!('mem_max' in value) || value['mem_max'] === undefined)
|
|
48
48
|
return false;
|
|
49
|
-
if (!('
|
|
49
|
+
if (!('mem_latest' in value) || value['mem_latest'] === undefined)
|
|
50
50
|
return false;
|
|
51
51
|
if (!('disk' in value) || value['disk'] === undefined)
|
|
52
52
|
return false;
|
|
@@ -63,18 +63,18 @@ function VmUtilizationDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
}
|
|
64
64
|
return {
|
|
65
65
|
'moid': json['moid'],
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'
|
|
71
|
-
'
|
|
72
|
-
'
|
|
73
|
-
'
|
|
74
|
-
'
|
|
75
|
-
'
|
|
76
|
-
'
|
|
77
|
-
'
|
|
66
|
+
'vm_name': json['vm_name'],
|
|
67
|
+
'provisioned_cpus': json['provisioned_cpus'],
|
|
68
|
+
'provisioned_memory_mb': json['provisioned_memory_mb'],
|
|
69
|
+
'provisioned_disk_kb': json['provisioned_disk_kb'],
|
|
70
|
+
'cpu_avg': json['cpu_avg'],
|
|
71
|
+
'cpu_p95': json['cpu_p95'],
|
|
72
|
+
'cpu_max': json['cpu_max'],
|
|
73
|
+
'cpu_latest': json['cpu_latest'],
|
|
74
|
+
'mem_avg': json['mem_avg'],
|
|
75
|
+
'mem_p95': json['mem_p95'],
|
|
76
|
+
'mem_max': json['mem_max'],
|
|
77
|
+
'mem_latest': json['mem_latest'],
|
|
78
78
|
'disk': json['disk'],
|
|
79
79
|
'confidence': json['confidence'],
|
|
80
80
|
};
|
|
@@ -88,18 +88,18 @@ function VmUtilizationDetailsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
88
88
|
}
|
|
89
89
|
return {
|
|
90
90
|
'moid': value['moid'],
|
|
91
|
-
'vm_name': value['
|
|
92
|
-
'provisioned_cpus': value['
|
|
93
|
-
'provisioned_memory_mb': value['
|
|
94
|
-
'provisioned_disk_kb': value['
|
|
95
|
-
'cpu_avg': value['
|
|
96
|
-
'cpu_p95': value['
|
|
97
|
-
'cpu_max': value['
|
|
98
|
-
'cpu_latest': value['
|
|
99
|
-
'mem_avg': value['
|
|
100
|
-
'mem_p95': value['
|
|
101
|
-
'mem_max': value['
|
|
102
|
-
'mem_latest': value['
|
|
91
|
+
'vm_name': value['vm_name'],
|
|
92
|
+
'provisioned_cpus': value['provisioned_cpus'],
|
|
93
|
+
'provisioned_memory_mb': value['provisioned_memory_mb'],
|
|
94
|
+
'provisioned_disk_kb': value['provisioned_disk_kb'],
|
|
95
|
+
'cpu_avg': value['cpu_avg'],
|
|
96
|
+
'cpu_p95': value['cpu_p95'],
|
|
97
|
+
'cpu_max': value['cpu_max'],
|
|
98
|
+
'cpu_latest': value['cpu_latest'],
|
|
99
|
+
'mem_avg': value['mem_avg'],
|
|
100
|
+
'mem_p95': value['mem_p95'],
|
|
101
|
+
'mem_max': value['mem_max'],
|
|
102
|
+
'mem_latest': value['mem_latest'],
|
|
103
103
|
'disk': value['disk'],
|
|
104
104
|
'confidence': value['confidence'],
|
|
105
105
|
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export * from './AgentModeRequest.js';
|
|
2
2
|
export * from './AgentStatus.js';
|
|
3
3
|
export * from './BenchmarkRun.js';
|
|
4
|
+
export * from './ClusterFeatures.js';
|
|
4
5
|
export * from './CollectorStartRequest.js';
|
|
5
6
|
export * from './CollectorStatus.js';
|
|
6
7
|
export * from './CreateGroupRequest.js';
|
|
7
8
|
export * from './Datastore.js';
|
|
8
9
|
export * from './DatastoreDetail.js';
|
|
9
10
|
export * from './DatastorePair.js';
|
|
11
|
+
export * from './DeleteLabelGloballyResponse.js';
|
|
10
12
|
export * from './DiskSizeTierSummary.js';
|
|
11
13
|
export * from './DiskTypeSummary.js';
|
|
12
14
|
export * from './EstimateRange.js';
|
|
@@ -33,6 +35,7 @@ export * from './PairCapability.js';
|
|
|
33
35
|
export * from './PairCapabilityRequest.js';
|
|
34
36
|
export * from './PutForecasterCredentials403Response.js';
|
|
35
37
|
export * from './RightsizingClusterListResponse.js';
|
|
38
|
+
export * from './RightsizingClusterResponse.js';
|
|
36
39
|
export * from './RightsizingClusterUtilization.js';
|
|
37
40
|
export * from './RightsizingCollectRequest.js';
|
|
38
41
|
export * from './RightsizingMetricStats.js';
|
|
@@ -44,10 +47,13 @@ export * from './StartInspectionRequest.js';
|
|
|
44
47
|
export * from './StopForecasterPair202Response.js';
|
|
45
48
|
export * from './UpdateGroupRequest.js';
|
|
46
49
|
export * from './UpdateInventory.js';
|
|
50
|
+
export * from './UpdateLabelVMsRequest.js';
|
|
47
51
|
export * from './VCenter.js';
|
|
48
52
|
export * from './VMDevice.js';
|
|
49
53
|
export * from './VMDisk.js';
|
|
54
|
+
export * from './VMFilterOptionsResponse.js';
|
|
50
55
|
export * from './VMIssue.js';
|
|
56
|
+
export * from './VMLabelsResponse.js';
|
|
51
57
|
export * from './VMNIC.js';
|
|
52
58
|
export * from './VMResourceBreakdown.js';
|
|
53
59
|
export * from './VMs.js';
|
|
@@ -57,6 +63,7 @@ export * from './VersionInfo.js';
|
|
|
57
63
|
export * from './VirtualMachine.js';
|
|
58
64
|
export * from './VirtualMachineDetail.js';
|
|
59
65
|
export * from './VirtualMachineListResponse.js';
|
|
66
|
+
export * from './VirtualMachineUpdateRequest.js';
|
|
60
67
|
export * from './VmInspectionConcern.js';
|
|
61
68
|
export * from './VmInspectionResults.js';
|
|
62
69
|
export * from './VmInspectionStatus.js';
|
package/dist/models/index.js
CHANGED
|
@@ -19,12 +19,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("./AgentModeRequest.js"), exports);
|
|
20
20
|
__exportStar(require("./AgentStatus.js"), exports);
|
|
21
21
|
__exportStar(require("./BenchmarkRun.js"), exports);
|
|
22
|
+
__exportStar(require("./ClusterFeatures.js"), exports);
|
|
22
23
|
__exportStar(require("./CollectorStartRequest.js"), exports);
|
|
23
24
|
__exportStar(require("./CollectorStatus.js"), exports);
|
|
24
25
|
__exportStar(require("./CreateGroupRequest.js"), exports);
|
|
25
26
|
__exportStar(require("./Datastore.js"), exports);
|
|
26
27
|
__exportStar(require("./DatastoreDetail.js"), exports);
|
|
27
28
|
__exportStar(require("./DatastorePair.js"), exports);
|
|
29
|
+
__exportStar(require("./DeleteLabelGloballyResponse.js"), exports);
|
|
28
30
|
__exportStar(require("./DiskSizeTierSummary.js"), exports);
|
|
29
31
|
__exportStar(require("./DiskTypeSummary.js"), exports);
|
|
30
32
|
__exportStar(require("./EstimateRange.js"), exports);
|
|
@@ -51,6 +53,7 @@ __exportStar(require("./PairCapability.js"), exports);
|
|
|
51
53
|
__exportStar(require("./PairCapabilityRequest.js"), exports);
|
|
52
54
|
__exportStar(require("./PutForecasterCredentials403Response.js"), exports);
|
|
53
55
|
__exportStar(require("./RightsizingClusterListResponse.js"), exports);
|
|
56
|
+
__exportStar(require("./RightsizingClusterResponse.js"), exports);
|
|
54
57
|
__exportStar(require("./RightsizingClusterUtilization.js"), exports);
|
|
55
58
|
__exportStar(require("./RightsizingCollectRequest.js"), exports);
|
|
56
59
|
__exportStar(require("./RightsizingMetricStats.js"), exports);
|
|
@@ -62,10 +65,13 @@ __exportStar(require("./StartInspectionRequest.js"), exports);
|
|
|
62
65
|
__exportStar(require("./StopForecasterPair202Response.js"), exports);
|
|
63
66
|
__exportStar(require("./UpdateGroupRequest.js"), exports);
|
|
64
67
|
__exportStar(require("./UpdateInventory.js"), exports);
|
|
68
|
+
__exportStar(require("./UpdateLabelVMsRequest.js"), exports);
|
|
65
69
|
__exportStar(require("./VCenter.js"), exports);
|
|
66
70
|
__exportStar(require("./VMDevice.js"), exports);
|
|
67
71
|
__exportStar(require("./VMDisk.js"), exports);
|
|
72
|
+
__exportStar(require("./VMFilterOptionsResponse.js"), exports);
|
|
68
73
|
__exportStar(require("./VMIssue.js"), exports);
|
|
74
|
+
__exportStar(require("./VMLabelsResponse.js"), exports);
|
|
69
75
|
__exportStar(require("./VMNIC.js"), exports);
|
|
70
76
|
__exportStar(require("./VMResourceBreakdown.js"), exports);
|
|
71
77
|
__exportStar(require("./VMs.js"), exports);
|
|
@@ -75,6 +81,7 @@ __exportStar(require("./VersionInfo.js"), exports);
|
|
|
75
81
|
__exportStar(require("./VirtualMachine.js"), exports);
|
|
76
82
|
__exportStar(require("./VirtualMachineDetail.js"), exports);
|
|
77
83
|
__exportStar(require("./VirtualMachineListResponse.js"), exports);
|
|
84
|
+
__exportStar(require("./VirtualMachineUpdateRequest.js"), exports);
|
|
78
85
|
__exportStar(require("./VmInspectionConcern.js"), exports);
|
|
79
86
|
__exportStar(require("./VmInspectionResults.js"), exports);
|
|
80
87
|
__exportStar(require("./VmInspectionStatus.js"), exports);
|
package/docs/AgentStatus.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`mode` | string
|
|
10
|
-
`
|
|
10
|
+
`console_connection` | string
|
|
11
11
|
`error` | string
|
|
12
12
|
|
|
13
13
|
## Example
|
|
@@ -18,7 +18,7 @@ import type { AgentStatus } from '@openshift-migration-advisor/agent-sdk'
|
|
|
18
18
|
// TODO: Update the object below with actual values
|
|
19
19
|
const example = {
|
|
20
20
|
"mode": null,
|
|
21
|
-
"
|
|
21
|
+
"console_connection": null,
|
|
22
22
|
"error": null,
|
|
23
23
|
} satisfies AgentStatus
|
|
24
24
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# ClusterFeatures
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`drsEnabled` | boolean
|
|
10
|
+
`drsMode` | string
|
|
11
|
+
`storageDrsEnabled` | boolean
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { ClusterFeatures } from '@openshift-migration-advisor/agent-sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"drsEnabled": null,
|
|
21
|
+
"drsMode": null,
|
|
22
|
+
"storageDrsEnabled": null,
|
|
23
|
+
} satisfies ClusterFeatures
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as ClusterFeatures
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|