kb-cloud-client-typescript 2.4.0-alpha.118 → 2.4.0-alpha.119
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/dist/adminapi/apis/environment-api.d.ts +11 -11
- package/dist/adminapi/apis/environment-api.js +8 -8
- package/dist/adminapi/models/apelocal-capacity-mode.d.ts +24 -0
- package/dist/adminapi/models/apelocal-capacity-mode.d.ts.map +1 -0
- package/dist/adminapi/models/apelocal-capacity-mode.js +28 -0
- package/dist/adminapi/models/apelocal-capacity-mode.js.map +1 -0
- package/dist/adminapi/models/apelocal-capacity-observation.d.ts +43 -0
- package/dist/adminapi/models/apelocal-capacity-observation.d.ts.map +1 -0
- package/dist/adminapi/models/apelocal-capacity-observation.js +16 -0
- package/dist/adminapi/models/apelocal-capacity-observation.js.map +1 -0
- package/dist/adminapi/models/apelocal-capacity-observations.d.ts +68 -0
- package/dist/adminapi/models/apelocal-capacity-observations.d.ts.map +1 -0
- package/dist/adminapi/models/apelocal-capacity-observations.js +16 -0
- package/dist/adminapi/models/apelocal-capacity-observations.js.map +1 -0
- package/dist/adminapi/models/apelocal-capacity-summary-mode.d.ts +23 -0
- package/dist/adminapi/models/apelocal-capacity-summary-mode.d.ts.map +1 -0
- package/dist/adminapi/models/apelocal-capacity-summary-mode.js +27 -0
- package/dist/adminapi/models/apelocal-capacity-summary-mode.js.map +1 -0
- package/dist/adminapi/models/apelocal-capacity-summary.d.ts +81 -0
- package/dist/adminapi/models/apelocal-capacity-summary.d.ts.map +1 -0
- package/dist/adminapi/models/apelocal-capacity-summary.js +16 -0
- package/dist/adminapi/models/apelocal-capacity-summary.js.map +1 -0
- package/dist/adminapi/models/apelocal-node-stats.d.ts +67 -0
- package/dist/adminapi/models/apelocal-node-stats.d.ts.map +1 -0
- package/dist/adminapi/models/apelocal-node-stats.js +16 -0
- package/dist/adminapi/models/apelocal-node-stats.js.map +1 -0
- package/dist/adminapi/models/apelocal-storage-class-stats.d.ts +63 -0
- package/dist/adminapi/models/apelocal-storage-class-stats.d.ts.map +1 -0
- package/dist/adminapi/models/apelocal-storage-class-stats.js +16 -0
- package/dist/adminapi/models/apelocal-storage-class-stats.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +7 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +7 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/storage-class-node-stats-list.d.ts +7 -0
- package/dist/adminapi/models/storage-class-node-stats-list.d.ts.map +1 -1
- package/dist/adminapi/models/storage-class-node-stats.d.ts +7 -0
- package/dist/adminapi/models/storage-class-node-stats.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +7 -0
- package/src/adminapi/apis/environment-api.ts +11 -11
- package/src/adminapi/models/apelocal-capacity-mode.ts +33 -0
- package/src/adminapi/models/apelocal-capacity-observation.ts +48 -0
- package/src/adminapi/models/apelocal-capacity-observations.ts +75 -0
- package/src/adminapi/models/apelocal-capacity-summary-mode.ts +32 -0
- package/src/adminapi/models/apelocal-capacity-summary.ts +92 -0
- package/src/adminapi/models/apelocal-node-stats.ts +72 -0
- package/src/adminapi/models/apelocal-storage-class-stats.ts +74 -0
- package/src/adminapi/models/index.ts +7 -0
- package/src/adminapi/models/storage-class-node-stats-list.ts +9 -0
- package/src/adminapi/models/storage-class-node-stats.ts +9 -0
- package/src/adminapi.yaml +175 -3
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { ApelocalCapacityObservation } from './apelocal-capacity-observation';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Known-node aggregates after resource deduplication. Capacity values are in GiB and ratios are percentages using only nodes with both inputs. Independent measurements can cover different nodes. Quota, remaining quota and allocation percentage objects are omitted for unlimited or conflicting policies. Remaining quota covers only ready schedulable nodes. Physical remaining is capacity minus usage from nodes with both measurements and usage not exceeding capacity; it is not a guaranteed writable or schedulable quota. Existing summary totals remain omitted when incomplete.
|
|
22
|
+
* @export
|
|
23
|
+
* @interface ApelocalCapacityObservations
|
|
24
|
+
*/
|
|
25
|
+
export interface ApelocalCapacityObservations {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ApelocalCapacityObservation}
|
|
29
|
+
* @memberof ApelocalCapacityObservations
|
|
30
|
+
*/
|
|
31
|
+
'physicalCapacity'?: ApelocalCapacityObservation;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {ApelocalCapacityObservation}
|
|
35
|
+
* @memberof ApelocalCapacityObservations
|
|
36
|
+
*/
|
|
37
|
+
'physicalUsage'?: ApelocalCapacityObservation;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {ApelocalCapacityObservation}
|
|
41
|
+
* @memberof ApelocalCapacityObservations
|
|
42
|
+
*/
|
|
43
|
+
'physicalRemaining'?: ApelocalCapacityObservation;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {ApelocalCapacityObservation}
|
|
47
|
+
* @memberof ApelocalCapacityObservations
|
|
48
|
+
*/
|
|
49
|
+
'allocatedCapacity'?: ApelocalCapacityObservation;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {ApelocalCapacityObservation}
|
|
53
|
+
* @memberof ApelocalCapacityObservations
|
|
54
|
+
*/
|
|
55
|
+
'allocatableCapacity'?: ApelocalCapacityObservation;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {ApelocalCapacityObservation}
|
|
59
|
+
* @memberof ApelocalCapacityObservations
|
|
60
|
+
*/
|
|
61
|
+
'availableCapacity'?: ApelocalCapacityObservation;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {ApelocalCapacityObservation}
|
|
65
|
+
* @memberof ApelocalCapacityObservations
|
|
66
|
+
*/
|
|
67
|
+
'physicalUsagePercent'?: ApelocalCapacityObservation;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {ApelocalCapacityObservation}
|
|
71
|
+
* @memberof ApelocalCapacityObservations
|
|
72
|
+
*/
|
|
73
|
+
'allocationPercent'?: ApelocalCapacityObservation;
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Conflicting shared quotas cannot form a single logical total.
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const ApelocalCapacitySummaryMode = {
|
|
24
|
+
finite: 'finite',
|
|
25
|
+
unlimited: 'unlimited',
|
|
26
|
+
conflict: 'conflict'
|
|
27
|
+
} as const;
|
|
28
|
+
|
|
29
|
+
export type ApelocalCapacitySummaryMode = typeof ApelocalCapacitySummaryMode[keyof typeof ApelocalCapacitySummaryMode];
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { ApelocalCapacityObservations } from './apelocal-capacity-observations';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { ApelocalCapacitySummaryMode } from './apelocal-capacity-summary-mode';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Deduplicated apelocal statistics. Does not include other storage drivers. Missing measurements are omitted, never treated as zero.
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ApelocalCapacitySummary
|
|
27
|
+
*/
|
|
28
|
+
export interface ApelocalCapacitySummary {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {ApelocalCapacityObservations}
|
|
32
|
+
* @memberof ApelocalCapacitySummary
|
|
33
|
+
*/
|
|
34
|
+
'observed'?: ApelocalCapacityObservations;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {ApelocalCapacitySummaryMode}
|
|
38
|
+
* @memberof ApelocalCapacitySummary
|
|
39
|
+
*/
|
|
40
|
+
'capacityMode'?: ApelocalCapacitySummaryMode;
|
|
41
|
+
/**
|
|
42
|
+
* Whether all required measurements for the selected capacity mode are present.
|
|
43
|
+
* @type {boolean}
|
|
44
|
+
* @memberof ApelocalCapacitySummary
|
|
45
|
+
*/
|
|
46
|
+
'complete'?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof ApelocalCapacitySummary
|
|
51
|
+
*/
|
|
52
|
+
'nodeCount'?: number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof ApelocalCapacitySummary
|
|
57
|
+
*/
|
|
58
|
+
'unavailableNodeCount'?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Physical capacity in GiB, deduplicated by backing filesystem.
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof ApelocalCapacitySummary
|
|
63
|
+
*/
|
|
64
|
+
'physicalCapacity'?: number | null;
|
|
65
|
+
/**
|
|
66
|
+
* Physical filesystem usage in GiB, including other files.
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof ApelocalCapacitySummary
|
|
69
|
+
*/
|
|
70
|
+
'physicalUsage'?: number | null;
|
|
71
|
+
/**
|
|
72
|
+
* Logical total in GiB; omitted for unlimited or conflicting quotas.
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof ApelocalCapacitySummary
|
|
75
|
+
*/
|
|
76
|
+
'allocatableCapacity'?: number | null;
|
|
77
|
+
/**
|
|
78
|
+
* CSI allocated capacity in GiB, deduplicated by backing allocation resource.
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof ApelocalCapacitySummary
|
|
81
|
+
*/
|
|
82
|
+
'allocatedCapacity'?: number | null;
|
|
83
|
+
/**
|
|
84
|
+
* Remaining logical capacity in GiB on ready schedulable nodes only.
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof ApelocalCapacitySummary
|
|
87
|
+
*/
|
|
88
|
+
'availableCapacity'?: number | null;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* apelocal-specific capacity measurements for one node. Missing measurements are omitted.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ApelocalNodeStats
|
|
21
|
+
*/
|
|
22
|
+
export interface ApelocalNodeStats {
|
|
23
|
+
/**
|
|
24
|
+
* Node-local backing allocation resource identity, used to deduplicate SC aliases.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof ApelocalNodeStats
|
|
27
|
+
*/
|
|
28
|
+
'allocationResourceID'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Node-local observed filesystem identity, used to deduplicate shared physical capacity.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ApelocalNodeStats
|
|
33
|
+
*/
|
|
34
|
+
'physicalResourceID'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Observed filesystem capacity in GiB; omitted when the backing filesystem cannot be identified completely.
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof ApelocalNodeStats
|
|
39
|
+
*/
|
|
40
|
+
'physicalCapacity'?: number | null;
|
|
41
|
+
/**
|
|
42
|
+
* Observed filesystem used bytes in GiB, including other data on the same filesystem.
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof ApelocalNodeStats
|
|
45
|
+
*/
|
|
46
|
+
'physicalUsage'?: number | null;
|
|
47
|
+
/**
|
|
48
|
+
* CSI total allocatable capacity in GiB; omitted for unlimited capacity.
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof ApelocalNodeStats
|
|
51
|
+
*/
|
|
52
|
+
'allocatableCapacity'?: number | null;
|
|
53
|
+
/**
|
|
54
|
+
* CSI remaining allocatable capacity in GiB; omitted for unlimited capacity.
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof ApelocalNodeStats
|
|
57
|
+
*/
|
|
58
|
+
'availableCapacity'?: number | null;
|
|
59
|
+
/**
|
|
60
|
+
* Capacity accounted for by CSI in GiB, including shared definitions; omitted when it cannot be determined exactly.
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof ApelocalNodeStats
|
|
63
|
+
*/
|
|
64
|
+
'allocatedCapacity'?: number | null;
|
|
65
|
+
/**
|
|
66
|
+
* Largest volume CSI can allocate on this node in GiB.
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof ApelocalNodeStats
|
|
69
|
+
*/
|
|
70
|
+
'maximumVolumeSize'?: number | null;
|
|
71
|
+
}
|
|
72
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { ApelocalCapacityMode } from './apelocal-capacity-mode';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { ApelocalCapacitySummary } from './apelocal-capacity-summary';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* apelocal-specific StorageClass capacity policy and measurements.
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ApelocalStorageClassStats
|
|
27
|
+
*/
|
|
28
|
+
export interface ApelocalStorageClassStats {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {ApelocalCapacitySummary}
|
|
32
|
+
* @memberof ApelocalStorageClassStats
|
|
33
|
+
*/
|
|
34
|
+
'summary'?: ApelocalCapacitySummary;
|
|
35
|
+
/**
|
|
36
|
+
* Resolved apelocal HostPathDefinition name.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ApelocalStorageClassStats
|
|
39
|
+
*/
|
|
40
|
+
'definitionName'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* apelocal storage backend (HostDir, RawDisk or RawDiskGroup).
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ApelocalStorageClassStats
|
|
45
|
+
*/
|
|
46
|
+
'backendType'?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {ApelocalCapacityMode}
|
|
50
|
+
* @memberof ApelocalStorageClassStats
|
|
51
|
+
*/
|
|
52
|
+
'capacityMode'?: ApelocalCapacityMode;
|
|
53
|
+
/**
|
|
54
|
+
* Capacity multiplier (1.2 means 120 percent).
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof ApelocalStorageClassStats
|
|
57
|
+
*/
|
|
58
|
+
'capacityMultiplier'?: number | null;
|
|
59
|
+
/**
|
|
60
|
+
* Configured fixed capacity per node in GiB.
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof ApelocalStorageClassStats
|
|
63
|
+
*/
|
|
64
|
+
'fixedCapacity'?: number | null;
|
|
65
|
+
/**
|
|
66
|
+
* Whether the metrics query succeeded; individual measurements can still be absent.
|
|
67
|
+
* @type {boolean}
|
|
68
|
+
* @memberof ApelocalStorageClassStats
|
|
69
|
+
*/
|
|
70
|
+
'metricsAvailable'?: boolean;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
@@ -83,6 +83,13 @@ export * from './alert-strategy-mute-time-interval-times';
|
|
|
83
83
|
export * from './alert-template';
|
|
84
84
|
export * from './alert-template-list';
|
|
85
85
|
export * from './alter-rule-ref';
|
|
86
|
+
export * from './apelocal-capacity-mode';
|
|
87
|
+
export * from './apelocal-capacity-observation';
|
|
88
|
+
export * from './apelocal-capacity-observations';
|
|
89
|
+
export * from './apelocal-capacity-summary';
|
|
90
|
+
export * from './apelocal-capacity-summary-mode';
|
|
91
|
+
export * from './apelocal-node-stats';
|
|
92
|
+
export * from './apelocal-storage-class-stats';
|
|
86
93
|
export * from './apikey';
|
|
87
94
|
export * from './apikey-create';
|
|
88
95
|
export * from './apikey-list';
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { ApelocalStorageClassStats } from './apelocal-storage-class-stats';
|
|
16
19
|
// May contain unused imports in some cases
|
|
17
20
|
// @ts-ignore
|
|
18
21
|
import type { StorageClassNodeStats } from './storage-class-node-stats';
|
|
@@ -23,6 +26,12 @@ import type { StorageClassNodeStats } from './storage-class-node-stats';
|
|
|
23
26
|
* @interface StorageClassNodeStatsList
|
|
24
27
|
*/
|
|
25
28
|
export interface StorageClassNodeStatsList {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {ApelocalStorageClassStats}
|
|
32
|
+
* @memberof StorageClassNodeStatsList
|
|
33
|
+
*/
|
|
34
|
+
'apelocal'?: ApelocalStorageClassStats;
|
|
26
35
|
/**
|
|
27
36
|
* the list of storage class node stats
|
|
28
37
|
* @type {Array<StorageClassNodeStats>}
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { ApelocalNodeStats } from './apelocal-node-stats';
|
|
16
19
|
|
|
17
20
|
/**
|
|
18
21
|
* storageClassNodeStats is a storage class node stats.
|
|
@@ -20,6 +23,12 @@
|
|
|
20
23
|
* @interface StorageClassNodeStats
|
|
21
24
|
*/
|
|
22
25
|
export interface StorageClassNodeStats {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ApelocalNodeStats}
|
|
29
|
+
* @memberof StorageClassNodeStats
|
|
30
|
+
*/
|
|
31
|
+
'apelocal'?: ApelocalNodeStats;
|
|
23
32
|
/**
|
|
24
33
|
* the name of the node
|
|
25
34
|
* @type {string}
|
package/src/adminapi.yaml
CHANGED
|
@@ -11376,7 +11376,7 @@ paths:
|
|
|
11376
11376
|
get:
|
|
11377
11377
|
operationId: getEnvironmentResource
|
|
11378
11378
|
summary: Get a live Kubernetes resource
|
|
11379
|
-
description: Returns one named Kubernetes object, excluding metadata.managedFields. The code allowlist
|
|
11379
|
+
description: Returns one named Kubernetes object, excluding metadata.managedFields. The code allowlist permits v1 PersistentVolumeClaim, storage.k8s.io/v1 StorageClass and apelocal.csi.apecloud.com/v1alpha1 HostPathDefinition; other valid resource types return 403 before Kubernetes access. Requires Admin environment read permission. Does not support lists, subresources or writes.
|
|
11380
11380
|
tags:
|
|
11381
11381
|
- environment
|
|
11382
11382
|
parameters:
|
|
@@ -11392,13 +11392,13 @@ paths:
|
|
|
11392
11392
|
type: string
|
|
11393
11393
|
- in: query
|
|
11394
11394
|
name: apiVersion
|
|
11395
|
-
description: Kubernetes API version.
|
|
11395
|
+
description: Kubernetes API version. Must match an explicitly allowed storage resource kind.
|
|
11396
11396
|
required: true
|
|
11397
11397
|
schema:
|
|
11398
11398
|
type: string
|
|
11399
11399
|
- in: query
|
|
11400
11400
|
name: kind
|
|
11401
|
-
description: Kubernetes kind.
|
|
11401
|
+
description: Kubernetes kind. Allowed kinds are PersistentVolumeClaim, StorageClass and HostPathDefinition with their corresponding API versions.
|
|
11402
11402
|
required: true
|
|
11403
11403
|
schema:
|
|
11404
11404
|
type: string
|
|
@@ -40898,9 +40898,179 @@ components:
|
|
|
40898
40898
|
format: int64
|
|
40899
40899
|
type: integer
|
|
40900
40900
|
type: object
|
|
40901
|
+
apelocalCapacityObservation:
|
|
40902
|
+
description: A measurement over known nodes. Missing nodes are not treated as zero. Coverage counts nodes whose complete per-node inputs are known, not individual storage resources.
|
|
40903
|
+
type: object
|
|
40904
|
+
properties:
|
|
40905
|
+
value:
|
|
40906
|
+
type: number
|
|
40907
|
+
format: double
|
|
40908
|
+
x-nullable: true
|
|
40909
|
+
description: Known-node sum in GiB or ratio in percent. Omitted when no inputs are known or a ratio denominator is zero. Ratios can exceed 100. Remaining quota is zero when there are selected nodes but none are ready.
|
|
40910
|
+
observedNodeCount:
|
|
40911
|
+
type: integer
|
|
40912
|
+
x-omitempty: false
|
|
40913
|
+
description: Number of nodes with all inputs for this measurement.
|
|
40914
|
+
expectedNodeCount:
|
|
40915
|
+
type: integer
|
|
40916
|
+
x-omitempty: false
|
|
40917
|
+
description: Number of selected nodes relevant to this measurement; only ready schedulable nodes for remaining quota.
|
|
40918
|
+
missingNodes:
|
|
40919
|
+
type: array
|
|
40920
|
+
x-omitempty: false
|
|
40921
|
+
items:
|
|
40922
|
+
type: string
|
|
40923
|
+
description: Sorted names of relevant nodes with missing or inconsistent inputs for this measurement.
|
|
40924
|
+
apelocalCapacityObservations:
|
|
40925
|
+
description: Known-node aggregates after resource deduplication. Capacity values are in GiB and ratios are percentages using only nodes with both inputs. Independent measurements can cover different nodes. Quota, remaining quota and allocation percentage objects are omitted for unlimited or conflicting policies. Remaining quota covers only ready schedulable nodes. Physical remaining is capacity minus usage from nodes with both measurements and usage not exceeding capacity; it is not a guaranteed writable or schedulable quota. Existing summary totals remain omitted when incomplete.
|
|
40926
|
+
type: object
|
|
40927
|
+
properties:
|
|
40928
|
+
physicalCapacity:
|
|
40929
|
+
$ref: '#/components/schemas/apelocalCapacityObservation'
|
|
40930
|
+
physicalUsage:
|
|
40931
|
+
$ref: '#/components/schemas/apelocalCapacityObservation'
|
|
40932
|
+
physicalRemaining:
|
|
40933
|
+
$ref: '#/components/schemas/apelocalCapacityObservation'
|
|
40934
|
+
allocatedCapacity:
|
|
40935
|
+
$ref: '#/components/schemas/apelocalCapacityObservation'
|
|
40936
|
+
allocatableCapacity:
|
|
40937
|
+
$ref: '#/components/schemas/apelocalCapacityObservation'
|
|
40938
|
+
availableCapacity:
|
|
40939
|
+
$ref: '#/components/schemas/apelocalCapacityObservation'
|
|
40940
|
+
physicalUsagePercent:
|
|
40941
|
+
$ref: '#/components/schemas/apelocalCapacityObservation'
|
|
40942
|
+
allocationPercent:
|
|
40943
|
+
$ref: '#/components/schemas/apelocalCapacityObservation'
|
|
40944
|
+
apelocalCapacitySummaryMode:
|
|
40945
|
+
type: string
|
|
40946
|
+
enum:
|
|
40947
|
+
- finite
|
|
40948
|
+
- unlimited
|
|
40949
|
+
- conflict
|
|
40950
|
+
description: Conflicting shared quotas cannot form a single logical total.
|
|
40951
|
+
apelocalCapacitySummary:
|
|
40952
|
+
description: Deduplicated apelocal statistics. Does not include other storage drivers. Missing measurements are omitted, never treated as zero.
|
|
40953
|
+
type: object
|
|
40954
|
+
properties:
|
|
40955
|
+
observed:
|
|
40956
|
+
$ref: '#/components/schemas/apelocalCapacityObservations'
|
|
40957
|
+
capacityMode:
|
|
40958
|
+
$ref: '#/components/schemas/apelocalCapacitySummaryMode'
|
|
40959
|
+
complete:
|
|
40960
|
+
type: boolean
|
|
40961
|
+
x-omitempty: false
|
|
40962
|
+
description: Whether all required measurements for the selected capacity mode are present.
|
|
40963
|
+
nodeCount:
|
|
40964
|
+
type: integer
|
|
40965
|
+
x-omitempty: false
|
|
40966
|
+
unavailableNodeCount:
|
|
40967
|
+
type: integer
|
|
40968
|
+
x-omitempty: false
|
|
40969
|
+
physicalCapacity:
|
|
40970
|
+
type: number
|
|
40971
|
+
format: double
|
|
40972
|
+
x-nullable: true
|
|
40973
|
+
description: Physical capacity in GiB, deduplicated by backing filesystem.
|
|
40974
|
+
physicalUsage:
|
|
40975
|
+
type: number
|
|
40976
|
+
format: double
|
|
40977
|
+
x-nullable: true
|
|
40978
|
+
description: Physical filesystem usage in GiB, including other files.
|
|
40979
|
+
allocatableCapacity:
|
|
40980
|
+
type: number
|
|
40981
|
+
format: double
|
|
40982
|
+
x-nullable: true
|
|
40983
|
+
description: Logical total in GiB; omitted for unlimited or conflicting quotas.
|
|
40984
|
+
allocatedCapacity:
|
|
40985
|
+
type: number
|
|
40986
|
+
format: double
|
|
40987
|
+
x-nullable: true
|
|
40988
|
+
description: CSI allocated capacity in GiB, deduplicated by backing allocation resource.
|
|
40989
|
+
availableCapacity:
|
|
40990
|
+
type: number
|
|
40991
|
+
format: double
|
|
40992
|
+
x-nullable: true
|
|
40993
|
+
description: Remaining logical capacity in GiB on ready schedulable nodes only.
|
|
40994
|
+
apelocalCapacityMode:
|
|
40995
|
+
type: string
|
|
40996
|
+
enum:
|
|
40997
|
+
- asIs
|
|
40998
|
+
- multiplier
|
|
40999
|
+
- fixed
|
|
41000
|
+
- unlimited
|
|
41001
|
+
description: CSI capacity policy; unlimited does not represent physical capacity.
|
|
41002
|
+
apelocalStorageClassStats:
|
|
41003
|
+
description: apelocal-specific StorageClass capacity policy and measurements.
|
|
41004
|
+
type: object
|
|
41005
|
+
properties:
|
|
41006
|
+
summary:
|
|
41007
|
+
$ref: '#/components/schemas/apelocalCapacitySummary'
|
|
41008
|
+
definitionName:
|
|
41009
|
+
type: string
|
|
41010
|
+
description: Resolved apelocal HostPathDefinition name.
|
|
41011
|
+
backendType:
|
|
41012
|
+
type: string
|
|
41013
|
+
description: apelocal storage backend (HostDir, RawDisk or RawDiskGroup).
|
|
41014
|
+
capacityMode:
|
|
41015
|
+
$ref: '#/components/schemas/apelocalCapacityMode'
|
|
41016
|
+
capacityMultiplier:
|
|
41017
|
+
type: number
|
|
41018
|
+
format: double
|
|
41019
|
+
x-nullable: true
|
|
41020
|
+
description: Capacity multiplier (1.2 means 120 percent).
|
|
41021
|
+
fixedCapacity:
|
|
41022
|
+
type: number
|
|
41023
|
+
format: double
|
|
41024
|
+
x-nullable: true
|
|
41025
|
+
description: Configured fixed capacity per node in GiB.
|
|
41026
|
+
metricsAvailable:
|
|
41027
|
+
type: boolean
|
|
41028
|
+
description: Whether the metrics query succeeded; individual measurements can still be absent.
|
|
41029
|
+
apelocalNodeStats:
|
|
41030
|
+
description: apelocal-specific capacity measurements for one node. Missing measurements are omitted.
|
|
41031
|
+
type: object
|
|
41032
|
+
properties:
|
|
41033
|
+
allocationResourceID:
|
|
41034
|
+
type: string
|
|
41035
|
+
description: Node-local backing allocation resource identity, used to deduplicate SC aliases.
|
|
41036
|
+
physicalResourceID:
|
|
41037
|
+
type: string
|
|
41038
|
+
description: Node-local observed filesystem identity, used to deduplicate shared physical capacity.
|
|
41039
|
+
physicalCapacity:
|
|
41040
|
+
type: number
|
|
41041
|
+
format: double
|
|
41042
|
+
x-nullable: true
|
|
41043
|
+
description: Observed filesystem capacity in GiB; omitted when the backing filesystem cannot be identified completely.
|
|
41044
|
+
physicalUsage:
|
|
41045
|
+
type: number
|
|
41046
|
+
format: double
|
|
41047
|
+
x-nullable: true
|
|
41048
|
+
description: Observed filesystem used bytes in GiB, including other data on the same filesystem.
|
|
41049
|
+
allocatableCapacity:
|
|
41050
|
+
type: number
|
|
41051
|
+
format: double
|
|
41052
|
+
x-nullable: true
|
|
41053
|
+
description: CSI total allocatable capacity in GiB; omitted for unlimited capacity.
|
|
41054
|
+
availableCapacity:
|
|
41055
|
+
type: number
|
|
41056
|
+
format: double
|
|
41057
|
+
x-nullable: true
|
|
41058
|
+
description: CSI remaining allocatable capacity in GiB; omitted for unlimited capacity.
|
|
41059
|
+
allocatedCapacity:
|
|
41060
|
+
type: number
|
|
41061
|
+
format: double
|
|
41062
|
+
x-nullable: true
|
|
41063
|
+
description: Capacity accounted for by CSI in GiB, including shared definitions; omitted when it cannot be determined exactly.
|
|
41064
|
+
maximumVolumeSize:
|
|
41065
|
+
type: number
|
|
41066
|
+
format: double
|
|
41067
|
+
x-nullable: true
|
|
41068
|
+
description: Largest volume CSI can allocate on this node in GiB.
|
|
40901
41069
|
storageClassNodeStats:
|
|
40902
41070
|
description: storageClassNodeStats is a storage class node stats.
|
|
40903
41071
|
properties:
|
|
41072
|
+
apelocal:
|
|
41073
|
+
$ref: '#/components/schemas/apelocalNodeStats'
|
|
40904
41074
|
nodeName:
|
|
40905
41075
|
description: the name of the node
|
|
40906
41076
|
type: string
|
|
@@ -40933,6 +41103,8 @@ components:
|
|
|
40933
41103
|
storageClassNodeStatsList:
|
|
40934
41104
|
description: storageClassNodeStatsList is a list of storageClassNodeStats.
|
|
40935
41105
|
properties:
|
|
41106
|
+
apelocal:
|
|
41107
|
+
$ref: '#/components/schemas/apelocalStorageClassStats'
|
|
40936
41108
|
items:
|
|
40937
41109
|
description: the list of storage class node stats
|
|
40938
41110
|
type: array
|