@openshift-migration-advisor/agent-sdk 0.12.0-914fe80385ee → 0.12.0-a3d6bdc8bce2
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 +16 -0
- package/README.md +19 -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/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/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 +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/StartInspectionRequest.d.ts +8 -1
- package/dist/esm/models/StartInspectionRequest.js +5 -0
- 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 +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 +18 -6
- package/dist/esm/models/VirtualMachine.js +14 -10
- package/dist/esm/models/VirtualMachineDetail.d.ts +19 -0
- package/dist/esm/models/VirtualMachineDetail.js +7 -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 +8 -0
- package/dist/esm/models/index.js +8 -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/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/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 +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/StartInspectionRequest.d.ts +8 -1
- package/dist/models/StartInspectionRequest.js +5 -0
- 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 +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 +18 -6
- package/dist/models/VirtualMachine.js +14 -10
- package/dist/models/VirtualMachineDetail.d.ts +19 -0
- package/dist/models/VirtualMachineDetail.js +7 -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 +8 -0
- package/dist/models/index.js +8 -0
- package/docs/AgentStatus.md +2 -2
- package/docs/ClusterFeatures.md +38 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/DefaultApi.md +529 -60
- 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/InspectorStatus.md +0 -4
- 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/StartInspectionRequest.md +3 -1
- package/docs/UpdateGroupRequest.md +0 -2
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMFilterOptionsResponse.md +40 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VirtualMachine.md +14 -10
- package/docs/VirtualMachineDetail.md +6 -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/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/InspectorStatus.ts +1 -28
- 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/StartInspectionRequest.ts +18 -1
- package/src/models/UpdateGroupRequest.ts +0 -8
- 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 +32 -16
- package/src/models/VirtualMachineDetail.ts +31 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmUtilizationDetails.ts +48 -48
- package/src/models/index.ts +8 -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}
|
|
@@ -89,35 +95,41 @@ export interface VirtualMachine {
|
|
|
89
95
|
*/
|
|
90
96
|
inspectionConcernCount?: number;
|
|
91
97
|
/**
|
|
92
|
-
*
|
|
98
|
+
* Names of groups this VM matches
|
|
99
|
+
* @type {Array<string>}
|
|
100
|
+
* @memberof VirtualMachine
|
|
101
|
+
*/
|
|
102
|
+
groups?: Array<string>;
|
|
103
|
+
/**
|
|
104
|
+
* User-defined labels for this VM
|
|
93
105
|
* @type {Array<string>}
|
|
94
106
|
* @memberof VirtualMachine
|
|
95
107
|
*/
|
|
96
|
-
|
|
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
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
65
|
+
'groups': json['groups'] == null ? undefined : json['groups'],
|
|
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
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'
|
|
94
|
+
'groups': value['groups'],
|
|
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
|
}
|
|
@@ -13,6 +13,7 @@ import type { VMNIC } from './VMNIC.js';
|
|
|
13
13
|
import type { GuestNetwork } from './GuestNetwork.js';
|
|
14
14
|
import type { VMIssue } from './VMIssue.js';
|
|
15
15
|
import type { VMDevice } from './VMDevice.js';
|
|
16
|
+
import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
|
|
16
17
|
import type { VMDisk } from './VMDisk.js';
|
|
17
18
|
import type { VmInspectionResults } from './VmInspectionResults.js';
|
|
18
19
|
/**
|
|
@@ -147,6 +148,18 @@ export interface VirtualMachineDetail {
|
|
|
147
148
|
* @memberof VirtualMachineDetail
|
|
148
149
|
*/
|
|
149
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>;
|
|
150
163
|
/**
|
|
151
164
|
* Whether VMware Fault Tolerance is enabled, which maintains a live shadow VirtualMachine for instant failover
|
|
152
165
|
* @type {boolean}
|
|
@@ -207,6 +220,12 @@ export interface VirtualMachineDetail {
|
|
|
207
220
|
* @memberof VirtualMachineDetail
|
|
208
221
|
*/
|
|
209
222
|
inspection?: VmInspectionResults;
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* @type {VmUtilizationDetails}
|
|
226
|
+
* @memberof VirtualMachineDetail
|
|
227
|
+
*/
|
|
228
|
+
utilization?: VmUtilizationDetails;
|
|
210
229
|
}
|
|
211
230
|
/**
|
|
212
231
|
* Check if a given object implements the VirtualMachineDetail interface.
|
|
@@ -22,6 +22,7 @@ const VMNIC_js_1 = require("./VMNIC.js");
|
|
|
22
22
|
const GuestNetwork_js_1 = require("./GuestNetwork.js");
|
|
23
23
|
const VMIssue_js_1 = require("./VMIssue.js");
|
|
24
24
|
const VMDevice_js_1 = require("./VMDevice.js");
|
|
25
|
+
const VmUtilizationDetails_js_1 = require("./VmUtilizationDetails.js");
|
|
25
26
|
const VMDisk_js_1 = require("./VMDisk.js");
|
|
26
27
|
const VmInspectionResults_js_1 = require("./VmInspectionResults.js");
|
|
27
28
|
/**
|
|
@@ -77,6 +78,8 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
77
78
|
'storageUsed': json['storageUsed'] == null ? undefined : json['storageUsed'],
|
|
78
79
|
'template': json['template'] == null ? undefined : json['template'],
|
|
79
80
|
'migratable': json['migratable'] == null ? undefined : json['migratable'],
|
|
81
|
+
'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
|
|
82
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
80
83
|
'faultToleranceEnabled': json['faultToleranceEnabled'] == null ? undefined : json['faultToleranceEnabled'],
|
|
81
84
|
'nestedHVEnabled': json['nestedHVEnabled'] == null ? undefined : json['nestedHVEnabled'],
|
|
82
85
|
'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
|
|
@@ -87,6 +90,7 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
87
90
|
'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkFromJSON)),
|
|
88
91
|
'issues': json['issues'] == null ? undefined : (json['issues'].map(VMIssue_js_1.VMIssueFromJSON)),
|
|
89
92
|
'inspection': json['inspection'] == null ? undefined : (0, VmInspectionResults_js_1.VmInspectionResultsFromJSON)(json['inspection']),
|
|
93
|
+
'utilization': json['utilization'] == null ? undefined : (0, VmUtilizationDetails_js_1.VmUtilizationDetailsFromJSON)(json['utilization']),
|
|
90
94
|
};
|
|
91
95
|
}
|
|
92
96
|
function VirtualMachineDetailToJSON(json) {
|
|
@@ -118,6 +122,8 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
118
122
|
'storageUsed': value['storageUsed'],
|
|
119
123
|
'template': value['template'],
|
|
120
124
|
'migratable': value['migratable'],
|
|
125
|
+
'migrationExcluded': value['migrationExcluded'],
|
|
126
|
+
'labels': value['labels'],
|
|
121
127
|
'faultToleranceEnabled': value['faultToleranceEnabled'],
|
|
122
128
|
'nestedHVEnabled': value['nestedHVEnabled'],
|
|
123
129
|
'toolsStatus': value['toolsStatus'],
|
|
@@ -128,5 +134,6 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
128
134
|
'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkToJSON)),
|
|
129
135
|
'issues': value['issues'] == null ? undefined : (value['issues'].map(VMIssue_js_1.VMIssueToJSON)),
|
|
130
136
|
'inspection': (0, VmInspectionResults_js_1.VmInspectionResultsToJSON)(value['inspection']),
|
|
137
|
+
'utilization': (0, VmUtilizationDetails_js_1.VmUtilizationDetailsToJSON)(value['utilization']),
|
|
131
138
|
};
|
|
132
139
|
}
|
|
@@ -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,15 @@
|
|
|
1
1
|
export * from './AgentModeRequest.js';
|
|
2
2
|
export * from './AgentStatus.js';
|
|
3
3
|
export * from './BenchmarkRun.js';
|
|
4
|
+
export * from './ClusterFeatures.js';
|
|
5
|
+
export * from './ClusterUtilization.js';
|
|
4
6
|
export * from './CollectorStartRequest.js';
|
|
5
7
|
export * from './CollectorStatus.js';
|
|
6
8
|
export * from './CreateGroupRequest.js';
|
|
7
9
|
export * from './Datastore.js';
|
|
8
10
|
export * from './DatastoreDetail.js';
|
|
9
11
|
export * from './DatastorePair.js';
|
|
12
|
+
export * from './DeleteLabelGloballyResponse.js';
|
|
10
13
|
export * from './DiskSizeTierSummary.js';
|
|
11
14
|
export * from './DiskTypeSummary.js';
|
|
12
15
|
export * from './EstimateRange.js';
|
|
@@ -33,6 +36,7 @@ export * from './PairCapability.js';
|
|
|
33
36
|
export * from './PairCapabilityRequest.js';
|
|
34
37
|
export * from './PutForecasterCredentials403Response.js';
|
|
35
38
|
export * from './RightsizingClusterListResponse.js';
|
|
39
|
+
export * from './RightsizingClusterResponse.js';
|
|
36
40
|
export * from './RightsizingClusterUtilization.js';
|
|
37
41
|
export * from './RightsizingCollectRequest.js';
|
|
38
42
|
export * from './RightsizingMetricStats.js';
|
|
@@ -44,10 +48,13 @@ export * from './StartInspectionRequest.js';
|
|
|
44
48
|
export * from './StopForecasterPair202Response.js';
|
|
45
49
|
export * from './UpdateGroupRequest.js';
|
|
46
50
|
export * from './UpdateInventory.js';
|
|
51
|
+
export * from './UpdateLabelVMsRequest.js';
|
|
47
52
|
export * from './VCenter.js';
|
|
48
53
|
export * from './VMDevice.js';
|
|
49
54
|
export * from './VMDisk.js';
|
|
55
|
+
export * from './VMFilterOptionsResponse.js';
|
|
50
56
|
export * from './VMIssue.js';
|
|
57
|
+
export * from './VMLabelsResponse.js';
|
|
51
58
|
export * from './VMNIC.js';
|
|
52
59
|
export * from './VMResourceBreakdown.js';
|
|
53
60
|
export * from './VMs.js';
|
|
@@ -57,6 +64,7 @@ export * from './VersionInfo.js';
|
|
|
57
64
|
export * from './VirtualMachine.js';
|
|
58
65
|
export * from './VirtualMachineDetail.js';
|
|
59
66
|
export * from './VirtualMachineListResponse.js';
|
|
67
|
+
export * from './VirtualMachineUpdateRequest.js';
|
|
60
68
|
export * from './VmInspectionConcern.js';
|
|
61
69
|
export * from './VmInspectionResults.js';
|
|
62
70
|
export * from './VmInspectionStatus.js';
|
package/dist/models/index.js
CHANGED
|
@@ -19,12 +19,15 @@ 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);
|
|
23
|
+
__exportStar(require("./ClusterUtilization.js"), exports);
|
|
22
24
|
__exportStar(require("./CollectorStartRequest.js"), exports);
|
|
23
25
|
__exportStar(require("./CollectorStatus.js"), exports);
|
|
24
26
|
__exportStar(require("./CreateGroupRequest.js"), exports);
|
|
25
27
|
__exportStar(require("./Datastore.js"), exports);
|
|
26
28
|
__exportStar(require("./DatastoreDetail.js"), exports);
|
|
27
29
|
__exportStar(require("./DatastorePair.js"), exports);
|
|
30
|
+
__exportStar(require("./DeleteLabelGloballyResponse.js"), exports);
|
|
28
31
|
__exportStar(require("./DiskSizeTierSummary.js"), exports);
|
|
29
32
|
__exportStar(require("./DiskTypeSummary.js"), exports);
|
|
30
33
|
__exportStar(require("./EstimateRange.js"), exports);
|
|
@@ -51,6 +54,7 @@ __exportStar(require("./PairCapability.js"), exports);
|
|
|
51
54
|
__exportStar(require("./PairCapabilityRequest.js"), exports);
|
|
52
55
|
__exportStar(require("./PutForecasterCredentials403Response.js"), exports);
|
|
53
56
|
__exportStar(require("./RightsizingClusterListResponse.js"), exports);
|
|
57
|
+
__exportStar(require("./RightsizingClusterResponse.js"), exports);
|
|
54
58
|
__exportStar(require("./RightsizingClusterUtilization.js"), exports);
|
|
55
59
|
__exportStar(require("./RightsizingCollectRequest.js"), exports);
|
|
56
60
|
__exportStar(require("./RightsizingMetricStats.js"), exports);
|
|
@@ -62,10 +66,13 @@ __exportStar(require("./StartInspectionRequest.js"), exports);
|
|
|
62
66
|
__exportStar(require("./StopForecasterPair202Response.js"), exports);
|
|
63
67
|
__exportStar(require("./UpdateGroupRequest.js"), exports);
|
|
64
68
|
__exportStar(require("./UpdateInventory.js"), exports);
|
|
69
|
+
__exportStar(require("./UpdateLabelVMsRequest.js"), exports);
|
|
65
70
|
__exportStar(require("./VCenter.js"), exports);
|
|
66
71
|
__exportStar(require("./VMDevice.js"), exports);
|
|
67
72
|
__exportStar(require("./VMDisk.js"), exports);
|
|
73
|
+
__exportStar(require("./VMFilterOptionsResponse.js"), exports);
|
|
68
74
|
__exportStar(require("./VMIssue.js"), exports);
|
|
75
|
+
__exportStar(require("./VMLabelsResponse.js"), exports);
|
|
69
76
|
__exportStar(require("./VMNIC.js"), exports);
|
|
70
77
|
__exportStar(require("./VMResourceBreakdown.js"), exports);
|
|
71
78
|
__exportStar(require("./VMs.js"), exports);
|
|
@@ -75,6 +82,7 @@ __exportStar(require("./VersionInfo.js"), exports);
|
|
|
75
82
|
__exportStar(require("./VirtualMachine.js"), exports);
|
|
76
83
|
__exportStar(require("./VirtualMachineDetail.js"), exports);
|
|
77
84
|
__exportStar(require("./VirtualMachineListResponse.js"), exports);
|
|
85
|
+
__exportStar(require("./VirtualMachineUpdateRequest.js"), exports);
|
|
78
86
|
__exportStar(require("./VmInspectionConcern.js"), exports);
|
|
79
87
|
__exportStar(require("./VmInspectionResults.js"), exports);
|
|
80
88
|
__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
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# ClusterUtilization
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`cpu_avg` | number
|
|
10
|
+
`cpu_p95` | number
|
|
11
|
+
`cpu_max` | number
|
|
12
|
+
`mem_avg` | number
|
|
13
|
+
`mem_p95` | number
|
|
14
|
+
`mem_max` | number
|
|
15
|
+
`confidence` | number
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { ClusterUtilization } from '@openshift-migration-advisor/agent-sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"cpu_avg": null,
|
|
25
|
+
"cpu_p95": null,
|
|
26
|
+
"cpu_max": null,
|
|
27
|
+
"mem_avg": null,
|
|
28
|
+
"mem_p95": null,
|
|
29
|
+
"mem_max": null,
|
|
30
|
+
"confidence": null,
|
|
31
|
+
} satisfies ClusterUtilization
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as ClusterUtilization
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|