@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0-d4bdc4301890
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 +20 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +29 -17
- package/dist/apis/DefaultApi.d.ts +260 -130
- package/dist/apis/DefaultApi.js +313 -172
- package/dist/esm/apis/DefaultApi.d.ts +260 -130
- package/dist/esm/apis/DefaultApi.js +295 -154
- package/dist/esm/models/InspectorStatus.d.ts +20 -7
- package/dist/esm/models/InspectorStatus.js +12 -7
- package/dist/esm/models/RightsizingCollectRequest.d.ts +70 -0
- package/dist/esm/models/RightsizingCollectRequest.js +56 -0
- package/dist/esm/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/esm/models/RightsizingMetricStats.js +63 -0
- package/dist/esm/models/RightsizingReport.d.ts +81 -0
- package/dist/esm/models/RightsizingReport.js +76 -0
- package/dist/esm/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingReportListResponse.js +48 -0
- package/dist/esm/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/esm/models/RightsizingReportSummary.js +71 -0
- package/dist/esm/models/RightsizingVMReport.d.ts +53 -0
- package/dist/esm/models/RightsizingVMReport.js +57 -0
- package/dist/esm/models/StartInspectionRequest.d.ts +32 -0
- package/dist/esm/models/StartInspectionRequest.js +43 -0
- package/dist/esm/models/VMs.d.ts +18 -0
- package/dist/esm/models/VMs.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +31 -1
- package/dist/esm/models/VirtualMachine.js +12 -4
- package/dist/esm/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/esm/models/VirtualMachineDetail.js +3 -3
- package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
- package/dist/esm/models/VmInspectionConcern.js +51 -0
- package/dist/esm/models/VmInspectionResults.d.ts +33 -0
- package/dist/esm/models/VmInspectionResults.js +42 -0
- package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
- package/dist/esm/models/VmInspectionStatus.js +1 -2
- package/dist/esm/models/VmUtilizationDetails.d.ts +98 -0
- package/dist/esm/models/VmUtilizationDetails.js +87 -0
- package/dist/esm/models/index.d.ts +10 -1
- package/dist/esm/models/index.js +10 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/InspectorStatus.d.ts +20 -7
- package/dist/models/InspectorStatus.js +12 -7
- package/dist/models/RightsizingCollectRequest.d.ts +70 -0
- package/dist/models/RightsizingCollectRequest.js +63 -0
- package/dist/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/models/RightsizingMetricStats.js +70 -0
- package/dist/models/RightsizingReport.d.ts +81 -0
- package/dist/models/RightsizingReport.js +83 -0
- package/dist/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/models/RightsizingReportListResponse.js +55 -0
- package/dist/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/models/RightsizingReportSummary.js +78 -0
- package/dist/models/RightsizingVMReport.d.ts +53 -0
- package/dist/models/RightsizingVMReport.js +64 -0
- package/dist/models/StartInspectionRequest.d.ts +32 -0
- package/dist/models/StartInspectionRequest.js +50 -0
- package/dist/models/VMs.d.ts +18 -0
- package/dist/models/VMs.js +4 -0
- package/dist/models/VirtualMachine.d.ts +31 -1
- package/dist/models/VirtualMachine.js +12 -4
- package/dist/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/models/VirtualMachineDetail.js +3 -3
- package/dist/models/VmInspectionConcern.d.ts +44 -0
- package/dist/models/VmInspectionConcern.js +58 -0
- package/dist/models/VmInspectionResults.d.ts +33 -0
- package/dist/models/VmInspectionResults.js +49 -0
- package/dist/models/VmInspectionStatus.d.ts +0 -1
- package/dist/models/VmInspectionStatus.js +1 -2
- package/dist/models/VmUtilizationDetails.d.ts +98 -0
- package/dist/models/VmUtilizationDetails.js +94 -0
- package/dist/models/index.d.ts +10 -1
- package/dist/models/index.js +10 -1
- package/dist/runtime.js +1 -1
- package/docs/DefaultApi.md +368 -163
- package/docs/InspectorStatus.md +4 -0
- package/docs/RightsizingCollectRequest.md +46 -0
- package/docs/RightsizingMetricStats.md +44 -0
- package/docs/RightsizingReport.md +50 -0
- package/docs/RightsizingReportListResponse.md +36 -0
- package/docs/RightsizingReportSummary.md +49 -0
- package/docs/RightsizingVMReport.md +40 -0
- package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +5 -6
- package/docs/VMs.md +4 -0
- package/docs/VirtualMachine.md +12 -2
- package/docs/VirtualMachineDetail.md +1 -1
- package/docs/VmInspectionConcern.md +39 -0
- package/docs/VmInspectionResults.md +35 -0
- package/docs/VmUtilizationDetails.md +56 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +564 -285
- package/src/models/InspectorStatus.ts +37 -7
- package/src/models/RightsizingCollectRequest.ts +123 -0
- package/src/models/RightsizingMetricStats.ts +111 -0
- package/src/models/RightsizingReport.ts +146 -0
- package/src/models/RightsizingReportListResponse.ts +83 -0
- package/src/models/RightsizingReportSummary.ts +129 -0
- package/src/models/RightsizingVMReport.ts +101 -0
- package/src/models/StartInspectionRequest.ts +66 -0
- package/src/models/VMs.ts +18 -0
- package/src/models/VirtualMachine.ts +43 -4
- package/src/models/VirtualMachineDetail.ts +11 -11
- package/src/models/VmInspectionConcern.ts +84 -0
- package/src/models/VmInspectionResults.ts +73 -0
- package/src/models/VmInspectionStatus.ts +1 -2
- package/src/models/VmUtilizationDetails.ts +165 -0
- package/src/models/index.ts +10 -1
- package/src/runtime.ts +1 -2
- package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
- package/dist/esm/models/InspectorStartRequest.js +0 -48
- package/dist/models/InspectorStartRequest.d.ts +0 -39
- package/dist/models/InspectorStartRequest.js +0 -55
- package/src/models/InspectorStartRequest.ts +0 -83
package/docs/InspectorStatus.md
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`state` | string
|
|
10
|
+
`credentials` | [VcenterCredentials](VcenterCredentials.md)
|
|
11
|
+
`vddk` | [VddkProperties](VddkProperties.md)
|
|
10
12
|
`error` | string
|
|
11
13
|
|
|
12
14
|
## Example
|
|
@@ -17,6 +19,8 @@ import type { InspectorStatus } from '@openshift-migration-advisor/agent-sdk'
|
|
|
17
19
|
// TODO: Update the object below with actual values
|
|
18
20
|
const example = {
|
|
19
21
|
"state": null,
|
|
22
|
+
"credentials": null,
|
|
23
|
+
"vddk": null,
|
|
20
24
|
"error": null,
|
|
21
25
|
} satisfies InspectorStatus
|
|
22
26
|
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# RightsizingCollectRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`credentials` | [VcenterCredentials](VcenterCredentials.md)
|
|
10
|
+
`lookbackHours` | number
|
|
11
|
+
`intervalId` | number
|
|
12
|
+
`nameFilter` | string
|
|
13
|
+
`clusterId` | string
|
|
14
|
+
`batchSize` | number
|
|
15
|
+
`discoverVms` | boolean
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { RightsizingCollectRequest } from '@openshift-migration-advisor/agent-sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"credentials": null,
|
|
25
|
+
"lookbackHours": null,
|
|
26
|
+
"intervalId": null,
|
|
27
|
+
"nameFilter": null,
|
|
28
|
+
"clusterId": null,
|
|
29
|
+
"batchSize": null,
|
|
30
|
+
"discoverVms": null,
|
|
31
|
+
} satisfies RightsizingCollectRequest
|
|
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 RightsizingCollectRequest
|
|
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
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# RightsizingMetricStats
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`sampleCount` | number
|
|
10
|
+
`average` | number
|
|
11
|
+
`p95` | number
|
|
12
|
+
`p99` | number
|
|
13
|
+
`max` | number
|
|
14
|
+
`latest` | number
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { RightsizingMetricStats } from '@openshift-migration-advisor/agent-sdk'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"sampleCount": null,
|
|
24
|
+
"average": null,
|
|
25
|
+
"p95": null,
|
|
26
|
+
"p99": null,
|
|
27
|
+
"max": null,
|
|
28
|
+
"latest": null,
|
|
29
|
+
} satisfies RightsizingMetricStats
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as RightsizingMetricStats
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
# RightsizingReport
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`vcenter` | string
|
|
11
|
+
`clusterId` | string
|
|
12
|
+
`windowStart` | Date
|
|
13
|
+
`windowEnd` | Date
|
|
14
|
+
`intervalId` | number
|
|
15
|
+
`expectedSampleCount` | number
|
|
16
|
+
`vms` | [Array<RightsizingVMReport>](RightsizingVMReport.md)
|
|
17
|
+
`createdAt` | Date
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { RightsizingReport } from '@openshift-migration-advisor/agent-sdk'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"id": null,
|
|
27
|
+
"vcenter": null,
|
|
28
|
+
"clusterId": null,
|
|
29
|
+
"windowStart": null,
|
|
30
|
+
"windowEnd": null,
|
|
31
|
+
"intervalId": null,
|
|
32
|
+
"expectedSampleCount": null,
|
|
33
|
+
"vms": null,
|
|
34
|
+
"createdAt": null,
|
|
35
|
+
} satisfies RightsizingReport
|
|
36
|
+
|
|
37
|
+
console.log(example)
|
|
38
|
+
|
|
39
|
+
// Convert the instance to a JSON string
|
|
40
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
41
|
+
console.log(exampleJSON)
|
|
42
|
+
|
|
43
|
+
// Parse the JSON string back to an object
|
|
44
|
+
const exampleParsed = JSON.parse(exampleJSON) as RightsizingReport
|
|
45
|
+
console.log(exampleParsed)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
49
|
+
|
|
50
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# RightsizingReportListResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`reports` | [Array<RightsizingReportSummary>](RightsizingReportSummary.md)
|
|
10
|
+
`total` | number
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { RightsizingReportListResponse } from '@openshift-migration-advisor/agent-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"reports": null,
|
|
20
|
+
"total": null,
|
|
21
|
+
} satisfies RightsizingReportListResponse
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as RightsizingReportListResponse
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
|
|
2
|
+
# RightsizingReportSummary
|
|
3
|
+
|
|
4
|
+
Rightsizing report metadata without VM metrics. Use GET /rightsizing/{id} to retrieve the full report including metrics.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`id` | string
|
|
11
|
+
`vcenter` | string
|
|
12
|
+
`clusterId` | string
|
|
13
|
+
`windowStart` | Date
|
|
14
|
+
`windowEnd` | Date
|
|
15
|
+
`intervalId` | number
|
|
16
|
+
`expectedSampleCount` | number
|
|
17
|
+
`createdAt` | Date
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { RightsizingReportSummary } from '@openshift-migration-advisor/agent-sdk'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"id": null,
|
|
27
|
+
"vcenter": null,
|
|
28
|
+
"clusterId": null,
|
|
29
|
+
"windowStart": null,
|
|
30
|
+
"windowEnd": null,
|
|
31
|
+
"intervalId": null,
|
|
32
|
+
"expectedSampleCount": null,
|
|
33
|
+
"createdAt": null,
|
|
34
|
+
} satisfies RightsizingReportSummary
|
|
35
|
+
|
|
36
|
+
console.log(example)
|
|
37
|
+
|
|
38
|
+
// Convert the instance to a JSON string
|
|
39
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
40
|
+
console.log(exampleJSON)
|
|
41
|
+
|
|
42
|
+
// Parse the JSON string back to an object
|
|
43
|
+
const exampleParsed = JSON.parse(exampleJSON) as RightsizingReportSummary
|
|
44
|
+
console.log(exampleParsed)
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
48
|
+
|
|
49
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# RightsizingVMReport
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`moid` | string
|
|
11
|
+
`metrics` | [{ [key: string]: RightsizingMetricStats; }](RightsizingMetricStats.md)
|
|
12
|
+
`warnings` | Array<string>
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { RightsizingVMReport } from '@openshift-migration-advisor/agent-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"name": null,
|
|
22
|
+
"moid": null,
|
|
23
|
+
"metrics": null,
|
|
24
|
+
"warnings": null,
|
|
25
|
+
} satisfies RightsizingVMReport
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as RightsizingVMReport
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# StartInspectionRequest
|
|
3
3
|
|
|
4
|
+
Array of VirtualMachine id
|
|
4
5
|
|
|
5
6
|
## Properties
|
|
6
7
|
|
|
7
8
|
Name | Type
|
|
8
9
|
------------ | -------------
|
|
9
|
-
`vcenterCredentials` | [VcenterCredentials](VcenterCredentials.md)
|
|
10
10
|
`vmIds` | Array<string>
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import type {
|
|
15
|
+
import type { StartInspectionRequest } from '@openshift-migration-advisor/agent-sdk'
|
|
16
16
|
|
|
17
17
|
// TODO: Update the object below with actual values
|
|
18
18
|
const example = {
|
|
19
|
-
"vcenterCredentials": null,
|
|
20
19
|
"vmIds": null,
|
|
21
|
-
} satisfies
|
|
20
|
+
} satisfies StartInspectionRequest
|
|
22
21
|
|
|
23
22
|
console.log(example)
|
|
24
23
|
|
|
@@ -27,7 +26,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
27
26
|
console.log(exampleJSON)
|
|
28
27
|
|
|
29
28
|
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
29
|
+
const exampleParsed = JSON.parse(exampleJSON) as StartInspectionRequest
|
|
31
30
|
console.log(exampleParsed)
|
|
32
31
|
```
|
|
33
32
|
|
package/docs/VMs.md
CHANGED
|
@@ -12,11 +12,13 @@ Name | Type
|
|
|
12
12
|
`totalWithSharedDisks` | number
|
|
13
13
|
`cpuCores` | [VMResourceBreakdown](VMResourceBreakdown.md)
|
|
14
14
|
`diskSizeTier` | [{ [key: string]: DiskSizeTierSummary; }](DiskSizeTierSummary.md)
|
|
15
|
+
`diskComplexityTier` | [{ [key: string]: DiskSizeTierSummary; }](DiskSizeTierSummary.md)
|
|
15
16
|
`diskTypes` | [{ [key: string]: DiskTypeSummary; }](DiskTypeSummary.md)
|
|
16
17
|
`distributionByCpuTier` | { [key: string]: number; }
|
|
17
18
|
`distributionByMemoryTier` | { [key: string]: number; }
|
|
18
19
|
`distributionByNicCount` | { [key: string]: number; }
|
|
19
20
|
`distributionByComplexity` | { [key: string]: number; }
|
|
21
|
+
`complexityDistribution` | [{ [key: string]: DiskSizeTierSummary; }](DiskSizeTierSummary.md)
|
|
20
22
|
`ramGB` | [VMResourceBreakdown](VMResourceBreakdown.md)
|
|
21
23
|
`diskGB` | [VMResourceBreakdown](VMResourceBreakdown.md)
|
|
22
24
|
`diskCount` | [VMResourceBreakdown](VMResourceBreakdown.md)
|
|
@@ -40,11 +42,13 @@ const example = {
|
|
|
40
42
|
"totalWithSharedDisks": null,
|
|
41
43
|
"cpuCores": null,
|
|
42
44
|
"diskSizeTier": null,
|
|
45
|
+
"diskComplexityTier": null,
|
|
43
46
|
"diskTypes": null,
|
|
44
47
|
"distributionByCpuTier": null,
|
|
45
48
|
"distributionByMemoryTier": null,
|
|
46
49
|
"distributionByNicCount": null,
|
|
47
50
|
"distributionByComplexity": null,
|
|
51
|
+
"complexityDistribution": null,
|
|
48
52
|
"ramGB": null,
|
|
49
53
|
"diskGB": null,
|
|
50
54
|
"diskCount": null,
|
package/docs/VirtualMachine.md
CHANGED
|
@@ -16,8 +16,13 @@ Name | Type
|
|
|
16
16
|
`issueCount` | number
|
|
17
17
|
`migratable` | boolean
|
|
18
18
|
`template` | boolean
|
|
19
|
-
`
|
|
19
|
+
`inspectionStatus` | [VmInspectionStatus](VmInspectionStatus.md)
|
|
20
|
+
`inspectionConcernCount` | number
|
|
20
21
|
`tags` | Array<string>
|
|
22
|
+
`utilizationCpuP95` | number
|
|
23
|
+
`utilizationMemP95` | number
|
|
24
|
+
`utilizationDisk` | number
|
|
25
|
+
`utilizationConfidence` | number
|
|
21
26
|
|
|
22
27
|
## Example
|
|
23
28
|
|
|
@@ -36,8 +41,13 @@ const example = {
|
|
|
36
41
|
"issueCount": null,
|
|
37
42
|
"migratable": null,
|
|
38
43
|
"template": null,
|
|
39
|
-
"
|
|
44
|
+
"inspectionStatus": null,
|
|
45
|
+
"inspectionConcernCount": null,
|
|
40
46
|
"tags": null,
|
|
47
|
+
"utilizationCpuP95": null,
|
|
48
|
+
"utilizationMemP95": null,
|
|
49
|
+
"utilizationDisk": null,
|
|
50
|
+
"utilizationConfidence": null,
|
|
41
51
|
} satisfies VirtualMachine
|
|
42
52
|
|
|
43
53
|
console.log(example)
|
|
@@ -36,7 +36,7 @@ Name | Type
|
|
|
36
36
|
`devices` | [Array<VMDevice>](VMDevice.md)
|
|
37
37
|
`guestNetworks` | [Array<GuestNetwork>](GuestNetwork.md)
|
|
38
38
|
`issues` | [Array<VMIssue>](VMIssue.md)
|
|
39
|
-
`inspection` | [
|
|
39
|
+
`inspection` | [VmInspectionResults](VmInspectionResults.md)
|
|
40
40
|
|
|
41
41
|
## Example
|
|
42
42
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
# VmInspectionConcern
|
|
3
|
+
|
|
4
|
+
Represents the structure of vm-migration-detective library inspection concerns
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`label` | string
|
|
11
|
+
`message` | string
|
|
12
|
+
`category` | string
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { VmInspectionConcern } from '@openshift-migration-advisor/agent-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"label": null,
|
|
22
|
+
"message": null,
|
|
23
|
+
"category": null,
|
|
24
|
+
} satisfies VmInspectionConcern
|
|
25
|
+
|
|
26
|
+
console.log(example)
|
|
27
|
+
|
|
28
|
+
// Convert the instance to a JSON string
|
|
29
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
30
|
+
console.log(exampleJSON)
|
|
31
|
+
|
|
32
|
+
// Parse the JSON string back to an object
|
|
33
|
+
const exampleParsed = JSON.parse(exampleJSON) as VmInspectionConcern
|
|
34
|
+
console.log(exampleParsed)
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
38
|
+
|
|
39
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
# VmInspectionResults
|
|
3
|
+
|
|
4
|
+
VirtualMachine Inspection results
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`concerns` | [Array<VmInspectionConcern>](VmInspectionConcern.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { VmInspectionResults } from '@openshift-migration-advisor/agent-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"concerns": null,
|
|
20
|
+
} satisfies VmInspectionResults
|
|
21
|
+
|
|
22
|
+
console.log(example)
|
|
23
|
+
|
|
24
|
+
// Convert the instance to a JSON string
|
|
25
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
26
|
+
console.log(exampleJSON)
|
|
27
|
+
|
|
28
|
+
// Parse the JSON string back to an object
|
|
29
|
+
const exampleParsed = JSON.parse(exampleJSON) as VmInspectionResults
|
|
30
|
+
console.log(exampleParsed)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
34
|
+
|
|
35
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
|
|
2
|
+
# VmUtilizationDetails
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`moid` | string
|
|
10
|
+
`vmName` | string
|
|
11
|
+
`cpuAvg` | number
|
|
12
|
+
`cpuP95` | number
|
|
13
|
+
`cpuMax` | number
|
|
14
|
+
`cpuLatest` | number
|
|
15
|
+
`memAvg` | number
|
|
16
|
+
`memP95` | number
|
|
17
|
+
`memMax` | number
|
|
18
|
+
`memLatest` | number
|
|
19
|
+
`disk` | number
|
|
20
|
+
`confidence` | number
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import type { VmUtilizationDetails } from '@openshift-migration-advisor/agent-sdk'
|
|
26
|
+
|
|
27
|
+
// TODO: Update the object below with actual values
|
|
28
|
+
const example = {
|
|
29
|
+
"moid": null,
|
|
30
|
+
"vmName": null,
|
|
31
|
+
"cpuAvg": null,
|
|
32
|
+
"cpuP95": null,
|
|
33
|
+
"cpuMax": null,
|
|
34
|
+
"cpuLatest": null,
|
|
35
|
+
"memAvg": null,
|
|
36
|
+
"memP95": null,
|
|
37
|
+
"memMax": null,
|
|
38
|
+
"memLatest": null,
|
|
39
|
+
"disk": null,
|
|
40
|
+
"confidence": null,
|
|
41
|
+
} satisfies VmUtilizationDetails
|
|
42
|
+
|
|
43
|
+
console.log(example)
|
|
44
|
+
|
|
45
|
+
// Convert the instance to a JSON string
|
|
46
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
47
|
+
console.log(exampleJSON)
|
|
48
|
+
|
|
49
|
+
// Parse the JSON string back to an object
|
|
50
|
+
const exampleParsed = JSON.parse(exampleJSON) as VmUtilizationDetails
|
|
51
|
+
console.log(exampleParsed)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
55
|
+
|
|
56
|
+
|
package/package.json
CHANGED