kb-cloud-client-typescript 2.4.0-alpha.38 → 2.4.0-alpha.39
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/models/index.d.ts +1 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +1 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/inspection-criticality.d.ts +2 -1
- package/dist/adminapi/models/inspection-criticality.d.ts.map +1 -1
- package/dist/adminapi/models/inspection-criticality.js +3 -2
- package/dist/adminapi/models/inspection-criticality.js.map +1 -1
- package/dist/adminapi/models/inspection-evaluation-mode.d.ts +23 -0
- package/dist/adminapi/models/inspection-evaluation-mode.d.ts.map +1 -0
- package/dist/adminapi/models/inspection-evaluation-mode.js +27 -0
- package/dist/adminapi/models/inspection-evaluation-mode.js.map +1 -0
- package/dist/adminapi/models/inspection-script.d.ts +9 -2
- package/dist/adminapi/models/inspection-script.d.ts.map +1 -1
- package/dist/adminapi/models/inspection-task-item.d.ts +10 -10
- package/dist/adminapi/models/inspection-task.d.ts +1 -1
- package/dist/adminapi/models/param-tpl-update.d.ts +6 -0
- package/dist/adminapi/models/param-tpl-update.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +1 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +1 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/inspection-criticality.d.ts +2 -1
- package/dist/openapi/models/inspection-criticality.d.ts.map +1 -1
- package/dist/openapi/models/inspection-criticality.js +3 -2
- package/dist/openapi/models/inspection-criticality.js.map +1 -1
- package/dist/openapi/models/inspection-evaluation-mode.d.ts +23 -0
- package/dist/openapi/models/inspection-evaluation-mode.d.ts.map +1 -0
- package/dist/openapi/models/inspection-evaluation-mode.js +27 -0
- package/dist/openapi/models/inspection-evaluation-mode.js.map +1 -0
- package/dist/openapi/models/inspection-script.d.ts +9 -2
- package/dist/openapi/models/inspection-script.d.ts.map +1 -1
- package/dist/openapi/models/inspection-task-item.d.ts +10 -10
- package/dist/openapi/models/inspection-task.d.ts +1 -1
- package/dist/openapi/models/param-tpl-update.d.ts +6 -0
- package/dist/openapi/models/param-tpl-update.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +1 -0
- package/src/adminapi/models/index.ts +1 -0
- package/src/adminapi/models/inspection-criticality.ts +3 -2
- package/src/adminapi/models/inspection-evaluation-mode.ts +32 -0
- package/src/adminapi/models/inspection-script.ts +11 -2
- package/src/adminapi/models/inspection-task-item.ts +10 -10
- package/src/adminapi/models/inspection-task.ts +1 -1
- package/src/adminapi/models/param-tpl-update.ts +6 -0
- package/src/adminapi.yaml +29 -4
- package/src/openapi/.openapi-generator/FILES +1 -0
- package/src/openapi/models/index.ts +1 -0
- package/src/openapi/models/inspection-criticality.ts +3 -2
- package/src/openapi/models/inspection-evaluation-mode.ts +32 -0
- package/src/openapi/models/inspection-script.ts +11 -2
- package/src/openapi/models/inspection-task-item.ts +10 -10
- package/src/openapi/models/inspection-task.ts +1 -1
- package/src/openapi/models/param-tpl-update.ts +6 -0
- package/src/openapi.yaml +29 -4
package/src/adminapi.yaml
CHANGED
|
@@ -28799,6 +28799,11 @@ components:
|
|
|
28799
28799
|
type: string
|
|
28800
28800
|
description: Specify parameters list to be updated
|
|
28801
28801
|
type: object
|
|
28802
|
+
parametersToRemove:
|
|
28803
|
+
description: Specify parameters list to be removed from the template
|
|
28804
|
+
items:
|
|
28805
|
+
type: string
|
|
28806
|
+
type: array
|
|
28802
28807
|
newParamTplName:
|
|
28803
28808
|
description: Specify the new name of the parameter template
|
|
28804
28809
|
type: string
|
|
@@ -39165,14 +39170,22 @@ components:
|
|
|
39165
39170
|
- vacuumWraparound
|
|
39166
39171
|
- backup
|
|
39167
39172
|
- security
|
|
39173
|
+
inspectionEvaluationMode:
|
|
39174
|
+
type: string
|
|
39175
|
+
description: Empty legacy values mean check. Display collects information without scoring. Manual requires type=manual and presents scriptExpr verbatim as instructions; it executes no SQL or templates, returns severity=unknown, and retains rule importance.
|
|
39176
|
+
enum:
|
|
39177
|
+
- check
|
|
39178
|
+
- display
|
|
39179
|
+
- manual
|
|
39168
39180
|
inspectionCriticality:
|
|
39169
39181
|
type: string
|
|
39170
|
-
description:
|
|
39182
|
+
description: Rule importance used for score weighting. Info marks automatically collected information excluded from scoring. Manual items retain their importance but return unknown and are not scored. Missing legacy values normally default to medium; cluster and node status default to critical.
|
|
39171
39183
|
enum:
|
|
39172
39184
|
- critical
|
|
39173
39185
|
- high
|
|
39174
39186
|
- medium
|
|
39175
39187
|
- low
|
|
39188
|
+
- info
|
|
39176
39189
|
inspectionThresholdDirection:
|
|
39177
39190
|
type: string
|
|
39178
39191
|
description: Direction used to interpret warnThreshold and critThreshold. asc means larger values are worse, desc means smaller values are worse, boolean means the check expression decides.
|
|
@@ -39201,7 +39214,7 @@ components:
|
|
|
39201
39214
|
description: The engine type this script is applicable to, such as cluster, mysql, node
|
|
39202
39215
|
type: string
|
|
39203
39216
|
type:
|
|
39204
|
-
description: The type of the script, such as "promQL"
|
|
39217
|
+
description: The type of the script, such as "promQL" or "manual" (requires evaluationMode=manual)
|
|
39205
39218
|
type: string
|
|
39206
39219
|
category:
|
|
39207
39220
|
$ref: '#/components/schemas/inspectionScriptCategory'
|
|
@@ -39209,6 +39222,9 @@ components:
|
|
|
39209
39222
|
$ref: '#/components/schemas/localizedDescription'
|
|
39210
39223
|
scriptExpr:
|
|
39211
39224
|
type: string
|
|
39225
|
+
description: Collector expression for automatic modes; complete user instructions (up to 8192 UTF-8 bytes) for manual mode. Manual placeholders are not rendered.
|
|
39226
|
+
evaluationMode:
|
|
39227
|
+
$ref: '#/components/schemas/inspectionEvaluationMode'
|
|
39212
39228
|
checkExpr:
|
|
39213
39229
|
type: string
|
|
39214
39230
|
criticality:
|
|
@@ -39324,29 +39340,35 @@ components:
|
|
|
39324
39340
|
$ref: '#/components/schemas/localizedDescription'
|
|
39325
39341
|
scriptCategory:
|
|
39326
39342
|
type: string
|
|
39343
|
+
description: Category used to group inspection items, such as availability, performance, capacity, or backup.
|
|
39327
39344
|
resourceType:
|
|
39328
39345
|
type: string
|
|
39346
|
+
description: Type of the inspected resource, such as cluster or node; resourceID and resourceName identify the target.
|
|
39329
39347
|
resourceID:
|
|
39330
39348
|
type: string
|
|
39331
39349
|
resourceName:
|
|
39332
39350
|
type: string
|
|
39333
39351
|
status:
|
|
39334
39352
|
type: string
|
|
39353
|
+
description: Execution state, such as Running, Completed, or Failed. Use severity for the health conclusion. For manual items, Completed means instructions are available, not that the user has performed them.
|
|
39335
39354
|
result:
|
|
39336
39355
|
type: string
|
|
39356
|
+
description: Textual observation or execution message for display. It may contain nonnumeric information or an error; use severity for the health conclusion. Manual instructions are stored in evidence.ruleSnapshot.scriptExpr.
|
|
39337
39357
|
valueNum:
|
|
39338
39358
|
type: number
|
|
39339
39359
|
format: double
|
|
39340
39360
|
x-nullable: true
|
|
39341
|
-
description: Numeric
|
|
39361
|
+
description: Numeric observation when available, including numeric information collected by info items. Omitted when no numeric observation exists, including manual guidance. Use with unit and thresholds for numeric displays.
|
|
39342
39362
|
warnThreshold:
|
|
39343
39363
|
type: number
|
|
39344
39364
|
format: double
|
|
39345
39365
|
x-nullable: true
|
|
39366
|
+
description: Warning threshold interpreted using direction and the same unit as valueNum. Omitted when no numeric warning threshold is configured.
|
|
39346
39367
|
critThreshold:
|
|
39347
39368
|
type: number
|
|
39348
39369
|
format: double
|
|
39349
39370
|
x-nullable: true
|
|
39371
|
+
description: Critical threshold interpreted using direction and the same unit as valueNum. Omitted when no numeric critical threshold is configured.
|
|
39350
39372
|
direction:
|
|
39351
39373
|
$ref: '#/components/schemas/inspectionThresholdDirection'
|
|
39352
39374
|
criticality:
|
|
@@ -39361,10 +39383,13 @@ components:
|
|
|
39361
39383
|
$ref: '#/components/schemas/localizedDescription'
|
|
39362
39384
|
docLink:
|
|
39363
39385
|
type: string
|
|
39386
|
+
description: Link to documentation explaining this inspection item and recommended actions.
|
|
39364
39387
|
severity:
|
|
39365
39388
|
type: string
|
|
39389
|
+
description: 'Health conclusion: red (critical), yellow (warning), green (healthy), unknown (cannot evaluate), or info (automatically collected information). Manual guidance returns unknown and retains its criticality. Unknown and info do not contribute to health scoring; Completed for manual guidance means instructions are available, not user completion.'
|
|
39366
39390
|
unit:
|
|
39367
39391
|
type: string
|
|
39392
|
+
description: Display unit for the inspection result and thresholds, such as percent, seconds, or bytes. Empty when no unit applies.
|
|
39368
39393
|
createdAt:
|
|
39369
39394
|
format: date-time
|
|
39370
39395
|
type: string
|
|
@@ -39406,7 +39431,7 @@ components:
|
|
|
39406
39431
|
type: integer
|
|
39407
39432
|
format: int64
|
|
39408
39433
|
x-nullable: true
|
|
39409
|
-
description: Weighted health score from 0 to 100 over evaluable inspection items only. Unknown items are excluded from both the numerator and denominator. The field is omitted when no item is evaluable; a present value of 0 is a valid evaluated score.
|
|
39434
|
+
description: Weighted health score from 0 to 100 over evaluable inspection items only. Unknown results and items with info importance are excluded from both the numerator and denominator. The field is omitted when no item is evaluable; a present value of 0 is a valid evaluated score.
|
|
39410
39435
|
result:
|
|
39411
39436
|
type: string
|
|
39412
39437
|
description: Task health conclusion derived from evaluable item states and criticality-aware score caps. Valid conclusions are red, yellow, green, and unknown. Unknown means no item is evaluable. Unknown items remain visible in the item list but do not override a red, yellow, or green conclusion derived from evaluable items.
|
|
@@ -542,6 +542,7 @@ models/init-option-item.ts
|
|
|
542
542
|
models/init-option-object.ts
|
|
543
543
|
models/init-option-type.ts
|
|
544
544
|
models/inspection-criticality.ts
|
|
545
|
+
models/inspection-evaluation-mode.ts
|
|
545
546
|
models/inspection-script-category.ts
|
|
546
547
|
models/inspection-script.ts
|
|
547
548
|
models/inspection-task-format.ts
|
|
@@ -452,6 +452,7 @@ export * from './init-option-item';
|
|
|
452
452
|
export * from './init-option-object';
|
|
453
453
|
export * from './init-option-type';
|
|
454
454
|
export * from './inspection-criticality';
|
|
455
|
+
export * from './inspection-evaluation-mode';
|
|
455
456
|
export * from './inspection-script';
|
|
456
457
|
export * from './inspection-script-category';
|
|
457
458
|
export * from './inspection-task';
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Rule importance used for score weighting. Info marks automatically collected information excluded from scoring. Manual items retain their importance but return unknown and are not scored. Missing legacy values normally default to medium; cluster and node status default to critical.
|
|
19
19
|
* @export
|
|
20
20
|
* @enum {string}
|
|
21
21
|
*/
|
|
@@ -24,7 +24,8 @@ export const InspectionCriticality = {
|
|
|
24
24
|
critical: 'critical',
|
|
25
25
|
high: 'high',
|
|
26
26
|
medium: 'medium',
|
|
27
|
-
low: 'low'
|
|
27
|
+
low: 'low',
|
|
28
|
+
info: 'info'
|
|
28
29
|
} as const;
|
|
29
30
|
|
|
30
31
|
export type InspectionCriticality = typeof InspectionCriticality[keyof typeof InspectionCriticality];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud API
|
|
5
|
+
* KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
|
|
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
|
+
* Empty legacy values mean check. Display collects information without scoring. Manual requires type=manual and presents scriptExpr verbatim as instructions; it executes no SQL or templates, returns severity=unknown, and retains rule importance.
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const InspectionEvaluationMode = {
|
|
24
|
+
check: 'check',
|
|
25
|
+
display: 'display',
|
|
26
|
+
manual: 'manual'
|
|
27
|
+
} as const;
|
|
28
|
+
|
|
29
|
+
export type InspectionEvaluationMode = typeof InspectionEvaluationMode[keyof typeof InspectionEvaluationMode];
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
import type { InspectionCriticality } from './inspection-criticality';
|
|
19
19
|
// May contain unused imports in some cases
|
|
20
20
|
// @ts-ignore
|
|
21
|
+
import type { InspectionEvaluationMode } from './inspection-evaluation-mode';
|
|
22
|
+
// May contain unused imports in some cases
|
|
23
|
+
// @ts-ignore
|
|
21
24
|
import type { InspectionScriptCategory } from './inspection-script-category';
|
|
22
25
|
// May contain unused imports in some cases
|
|
23
26
|
// @ts-ignore
|
|
@@ -57,7 +60,7 @@ export interface InspectionScript {
|
|
|
57
60
|
*/
|
|
58
61
|
'engine': string;
|
|
59
62
|
/**
|
|
60
|
-
* The type of the script, such as \"promQL\"
|
|
63
|
+
* The type of the script, such as \"promQL\" or \"manual\" (requires evaluationMode=manual)
|
|
61
64
|
* @type {string}
|
|
62
65
|
* @memberof InspectionScript
|
|
63
66
|
*/
|
|
@@ -75,11 +78,17 @@ export interface InspectionScript {
|
|
|
75
78
|
*/
|
|
76
79
|
'description'?: LocalizedDescription;
|
|
77
80
|
/**
|
|
78
|
-
*
|
|
81
|
+
* Collector expression for automatic modes; complete user instructions (up to 8192 UTF-8 bytes) for manual mode. Manual placeholders are not rendered.
|
|
79
82
|
* @type {string}
|
|
80
83
|
* @memberof InspectionScript
|
|
81
84
|
*/
|
|
82
85
|
'scriptExpr': string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {InspectionEvaluationMode}
|
|
89
|
+
* @memberof InspectionScript
|
|
90
|
+
*/
|
|
91
|
+
'evaluationMode'?: InspectionEvaluationMode;
|
|
83
92
|
/**
|
|
84
93
|
*
|
|
85
94
|
* @type {string}
|
|
@@ -60,13 +60,13 @@ export interface InspectionTaskItem {
|
|
|
60
60
|
*/
|
|
61
61
|
'scriptDescription'?: LocalizedDescription;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Category used to group inspection items, such as availability, performance, capacity, or backup.
|
|
64
64
|
* @type {string}
|
|
65
65
|
* @memberof InspectionTaskItem
|
|
66
66
|
*/
|
|
67
67
|
'scriptCategory'?: string;
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* Type of the inspected resource, such as cluster or node; resourceID and resourceName identify the target.
|
|
70
70
|
* @type {string}
|
|
71
71
|
* @memberof InspectionTaskItem
|
|
72
72
|
*/
|
|
@@ -84,31 +84,31 @@ export interface InspectionTaskItem {
|
|
|
84
84
|
*/
|
|
85
85
|
'resourceName'?: string;
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* Execution state, such as Running, Completed, or Failed. Use severity for the health conclusion. For manual items, Completed means instructions are available, not that the user has performed them.
|
|
88
88
|
* @type {string}
|
|
89
89
|
* @memberof InspectionTaskItem
|
|
90
90
|
*/
|
|
91
91
|
'status'?: string;
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* Textual observation or execution message for display. It may contain nonnumeric information or an error; use severity for the health conclusion. Manual instructions are stored in evidence.ruleSnapshot.scriptExpr.
|
|
94
94
|
* @type {string}
|
|
95
95
|
* @memberof InspectionTaskItem
|
|
96
96
|
*/
|
|
97
97
|
'result'?: string;
|
|
98
98
|
/**
|
|
99
|
-
* Numeric
|
|
99
|
+
* Numeric observation when available, including numeric information collected by info items. Omitted when no numeric observation exists, including manual guidance. Use with unit and thresholds for numeric displays.
|
|
100
100
|
* @type {number}
|
|
101
101
|
* @memberof InspectionTaskItem
|
|
102
102
|
*/
|
|
103
103
|
'valueNum'?: number | null;
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
105
|
+
* Warning threshold interpreted using direction and the same unit as valueNum. Omitted when no numeric warning threshold is configured.
|
|
106
106
|
* @type {number}
|
|
107
107
|
* @memberof InspectionTaskItem
|
|
108
108
|
*/
|
|
109
109
|
'warnThreshold'?: number | null;
|
|
110
110
|
/**
|
|
111
|
-
*
|
|
111
|
+
* Critical threshold interpreted using direction and the same unit as valueNum. Omitted when no numeric critical threshold is configured.
|
|
112
112
|
* @type {number}
|
|
113
113
|
* @memberof InspectionTaskItem
|
|
114
114
|
*/
|
|
@@ -144,19 +144,19 @@ export interface InspectionTaskItem {
|
|
|
144
144
|
*/
|
|
145
145
|
'remediation'?: LocalizedDescription;
|
|
146
146
|
/**
|
|
147
|
-
*
|
|
147
|
+
* Link to documentation explaining this inspection item and recommended actions.
|
|
148
148
|
* @type {string}
|
|
149
149
|
* @memberof InspectionTaskItem
|
|
150
150
|
*/
|
|
151
151
|
'docLink'?: string;
|
|
152
152
|
/**
|
|
153
|
-
*
|
|
153
|
+
* Health conclusion: red (critical), yellow (warning), green (healthy), unknown (cannot evaluate), or info (automatically collected information). Manual guidance returns unknown and retains its criticality. Unknown and info do not contribute to health scoring; Completed for manual guidance means instructions are available, not user completion.
|
|
154
154
|
* @type {string}
|
|
155
155
|
* @memberof InspectionTaskItem
|
|
156
156
|
*/
|
|
157
157
|
'severity'?: string;
|
|
158
158
|
/**
|
|
159
|
-
*
|
|
159
|
+
* Display unit for the inspection result and thresholds, such as percent, seconds, or bytes. Empty when no unit applies.
|
|
160
160
|
* @type {string}
|
|
161
161
|
* @memberof InspectionTaskItem
|
|
162
162
|
*/
|
|
@@ -102,7 +102,7 @@ export interface InspectionTask {
|
|
|
102
102
|
*/
|
|
103
103
|
'expiredAt'?: string;
|
|
104
104
|
/**
|
|
105
|
-
* Weighted health score from 0 to 100 over evaluable inspection items only. Unknown items are excluded from both the numerator and denominator. The field is omitted when no item is evaluable; a present value of 0 is a valid evaluated score.
|
|
105
|
+
* Weighted health score from 0 to 100 over evaluable inspection items only. Unknown results and items with info importance are excluded from both the numerator and denominator. The field is omitted when no item is evaluable; a present value of 0 is a valid evaluated score.
|
|
106
106
|
* @type {number}
|
|
107
107
|
* @memberof InspectionTask
|
|
108
108
|
*/
|
|
@@ -32,6 +32,12 @@ export interface ParamTplUpdate {
|
|
|
32
32
|
* @memberof ParamTplUpdate
|
|
33
33
|
*/
|
|
34
34
|
'parameters'?: { [key: string]: string; };
|
|
35
|
+
/**
|
|
36
|
+
* Specify parameters list to be removed from the template
|
|
37
|
+
* @type {Array<string>}
|
|
38
|
+
* @memberof ParamTplUpdate
|
|
39
|
+
*/
|
|
40
|
+
'parametersToRemove'?: Array<string>;
|
|
35
41
|
/**
|
|
36
42
|
* Specify the new name of the parameter template
|
|
37
43
|
* @type {string}
|
package/src/openapi.yaml
CHANGED
|
@@ -28383,6 +28383,11 @@ components:
|
|
|
28383
28383
|
type: string
|
|
28384
28384
|
description: Specify parameters list to be updated
|
|
28385
28385
|
type: object
|
|
28386
|
+
parametersToRemove:
|
|
28387
|
+
description: Specify parameters list to be removed from the template
|
|
28388
|
+
items:
|
|
28389
|
+
type: string
|
|
28390
|
+
type: array
|
|
28386
28391
|
newParamTplName:
|
|
28387
28392
|
description: Specify the new name of the parameter template
|
|
28388
28393
|
type: string
|
|
@@ -38126,14 +38131,22 @@ components:
|
|
|
38126
38131
|
- vacuumWraparound
|
|
38127
38132
|
- backup
|
|
38128
38133
|
- security
|
|
38134
|
+
inspectionEvaluationMode:
|
|
38135
|
+
type: string
|
|
38136
|
+
description: Empty legacy values mean check. Display collects information without scoring. Manual requires type=manual and presents scriptExpr verbatim as instructions; it executes no SQL or templates, returns severity=unknown, and retains rule importance.
|
|
38137
|
+
enum:
|
|
38138
|
+
- check
|
|
38139
|
+
- display
|
|
38140
|
+
- manual
|
|
38129
38141
|
inspectionCriticality:
|
|
38130
38142
|
type: string
|
|
38131
|
-
description:
|
|
38143
|
+
description: Rule importance used for score weighting. Info marks automatically collected information excluded from scoring. Manual items retain their importance but return unknown and are not scored. Missing legacy values normally default to medium; cluster and node status default to critical.
|
|
38132
38144
|
enum:
|
|
38133
38145
|
- critical
|
|
38134
38146
|
- high
|
|
38135
38147
|
- medium
|
|
38136
38148
|
- low
|
|
38149
|
+
- info
|
|
38137
38150
|
inspectionThresholdDirection:
|
|
38138
38151
|
type: string
|
|
38139
38152
|
description: Direction used to interpret warnThreshold and critThreshold. asc means larger values are worse, desc means smaller values are worse, boolean means the check expression decides.
|
|
@@ -38162,7 +38175,7 @@ components:
|
|
|
38162
38175
|
description: The engine type this script is applicable to, such as cluster, mysql, node
|
|
38163
38176
|
type: string
|
|
38164
38177
|
type:
|
|
38165
|
-
description: The type of the script, such as "promQL"
|
|
38178
|
+
description: The type of the script, such as "promQL" or "manual" (requires evaluationMode=manual)
|
|
38166
38179
|
type: string
|
|
38167
38180
|
category:
|
|
38168
38181
|
$ref: '#/components/schemas/inspectionScriptCategory'
|
|
@@ -38170,6 +38183,9 @@ components:
|
|
|
38170
38183
|
$ref: '#/components/schemas/localizedDescription'
|
|
38171
38184
|
scriptExpr:
|
|
38172
38185
|
type: string
|
|
38186
|
+
description: Collector expression for automatic modes; complete user instructions (up to 8192 UTF-8 bytes) for manual mode. Manual placeholders are not rendered.
|
|
38187
|
+
evaluationMode:
|
|
38188
|
+
$ref: '#/components/schemas/inspectionEvaluationMode'
|
|
38173
38189
|
checkExpr:
|
|
38174
38190
|
type: string
|
|
38175
38191
|
criticality:
|
|
@@ -38285,29 +38301,35 @@ components:
|
|
|
38285
38301
|
$ref: '#/components/schemas/localizedDescription'
|
|
38286
38302
|
scriptCategory:
|
|
38287
38303
|
type: string
|
|
38304
|
+
description: Category used to group inspection items, such as availability, performance, capacity, or backup.
|
|
38288
38305
|
resourceType:
|
|
38289
38306
|
type: string
|
|
38307
|
+
description: Type of the inspected resource, such as cluster or node; resourceID and resourceName identify the target.
|
|
38290
38308
|
resourceID:
|
|
38291
38309
|
type: string
|
|
38292
38310
|
resourceName:
|
|
38293
38311
|
type: string
|
|
38294
38312
|
status:
|
|
38295
38313
|
type: string
|
|
38314
|
+
description: Execution state, such as Running, Completed, or Failed. Use severity for the health conclusion. For manual items, Completed means instructions are available, not that the user has performed them.
|
|
38296
38315
|
result:
|
|
38297
38316
|
type: string
|
|
38317
|
+
description: Textual observation or execution message for display. It may contain nonnumeric information or an error; use severity for the health conclusion. Manual instructions are stored in evidence.ruleSnapshot.scriptExpr.
|
|
38298
38318
|
valueNum:
|
|
38299
38319
|
type: number
|
|
38300
38320
|
format: double
|
|
38301
38321
|
x-nullable: true
|
|
38302
|
-
description: Numeric
|
|
38322
|
+
description: Numeric observation when available, including numeric information collected by info items. Omitted when no numeric observation exists, including manual guidance. Use with unit and thresholds for numeric displays.
|
|
38303
38323
|
warnThreshold:
|
|
38304
38324
|
type: number
|
|
38305
38325
|
format: double
|
|
38306
38326
|
x-nullable: true
|
|
38327
|
+
description: Warning threshold interpreted using direction and the same unit as valueNum. Omitted when no numeric warning threshold is configured.
|
|
38307
38328
|
critThreshold:
|
|
38308
38329
|
type: number
|
|
38309
38330
|
format: double
|
|
38310
38331
|
x-nullable: true
|
|
38332
|
+
description: Critical threshold interpreted using direction and the same unit as valueNum. Omitted when no numeric critical threshold is configured.
|
|
38311
38333
|
direction:
|
|
38312
38334
|
$ref: '#/components/schemas/inspectionThresholdDirection'
|
|
38313
38335
|
criticality:
|
|
@@ -38322,10 +38344,13 @@ components:
|
|
|
38322
38344
|
$ref: '#/components/schemas/localizedDescription'
|
|
38323
38345
|
docLink:
|
|
38324
38346
|
type: string
|
|
38347
|
+
description: Link to documentation explaining this inspection item and recommended actions.
|
|
38325
38348
|
severity:
|
|
38326
38349
|
type: string
|
|
38350
|
+
description: 'Health conclusion: red (critical), yellow (warning), green (healthy), unknown (cannot evaluate), or info (automatically collected information). Manual guidance returns unknown and retains its criticality. Unknown and info do not contribute to health scoring; Completed for manual guidance means instructions are available, not user completion.'
|
|
38327
38351
|
unit:
|
|
38328
38352
|
type: string
|
|
38353
|
+
description: Display unit for the inspection result and thresholds, such as percent, seconds, or bytes. Empty when no unit applies.
|
|
38329
38354
|
createdAt:
|
|
38330
38355
|
format: date-time
|
|
38331
38356
|
type: string
|
|
@@ -38367,7 +38392,7 @@ components:
|
|
|
38367
38392
|
type: integer
|
|
38368
38393
|
format: int64
|
|
38369
38394
|
x-nullable: true
|
|
38370
|
-
description: Weighted health score from 0 to 100 over evaluable inspection items only. Unknown items are excluded from both the numerator and denominator. The field is omitted when no item is evaluable; a present value of 0 is a valid evaluated score.
|
|
38395
|
+
description: Weighted health score from 0 to 100 over evaluable inspection items only. Unknown results and items with info importance are excluded from both the numerator and denominator. The field is omitted when no item is evaluable; a present value of 0 is a valid evaluated score.
|
|
38371
38396
|
result:
|
|
38372
38397
|
type: string
|
|
38373
38398
|
description: Task health conclusion derived from evaluable item states and criticality-aware score caps. Valid conclusions are red, yellow, green, and unknown. Unknown means no item is evaluable. Unknown items remain visible in the item list but do not override a red, yellow, or green conclusion derived from evaluable items.
|