kb-cloud-client-typescript 2.3.0-alpha.136 → 2.3.0-alpha.138
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/dms-api.d.ts +110 -22
- package/dist/adminapi/apis/dms-api.d.ts.map +1 -1
- package/dist/adminapi/apis/dms-api.js +110 -55
- package/dist/adminapi/apis/dms-api.js.map +1 -1
- package/dist/adminapi/models/index.d.ts +2 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +2 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/inspection-criticality.d.ts +24 -0
- package/dist/adminapi/models/inspection-criticality.d.ts.map +1 -0
- package/dist/adminapi/models/inspection-criticality.js +28 -0
- package/dist/adminapi/models/inspection-criticality.js.map +1 -0
- package/dist/adminapi/models/inspection-script-category.d.ts +7 -4
- package/dist/adminapi/models/inspection-script-category.d.ts.map +1 -1
- package/dist/adminapi/models/inspection-script-category.js +7 -4
- package/dist/adminapi/models/inspection-script-category.js.map +1 -1
- package/dist/adminapi/models/inspection-script.d.ts +38 -0
- package/dist/adminapi/models/inspection-script.d.ts.map +1 -1
- package/dist/adminapi/models/inspection-task-item.d.ts +58 -0
- package/dist/adminapi/models/inspection-task-item.d.ts.map +1 -1
- package/dist/adminapi/models/inspection-task.d.ts +25 -1
- package/dist/adminapi/models/inspection-task.d.ts.map +1 -1
- package/dist/adminapi/models/inspection-threshold-direction.d.ts +23 -0
- package/dist/adminapi/models/inspection-threshold-direction.d.ts.map +1 -0
- package/dist/adminapi/models/inspection-threshold-direction.js +27 -0
- package/dist/adminapi/models/inspection-threshold-direction.js.map +1 -0
- package/dist/adminapi/models/redis-data-capabilities.d.ts +6 -0
- package/dist/adminapi/models/redis-data-capabilities.d.ts.map +1 -1
- package/dist/adminapi/models/redis-data-context.d.ts +7 -1
- package/dist/adminapi/models/redis-data-context.d.ts.map +1 -1
- package/dist/openapi/apis/dms-api.d.ts +110 -22
- package/dist/openapi/apis/dms-api.d.ts.map +1 -1
- package/dist/openapi/apis/dms-api.js +110 -55
- package/dist/openapi/apis/dms-api.js.map +1 -1
- package/dist/openapi/models/index.d.ts +2 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +2 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/inspection-criticality.d.ts +24 -0
- package/dist/openapi/models/inspection-criticality.d.ts.map +1 -0
- package/dist/openapi/models/inspection-criticality.js +28 -0
- package/dist/openapi/models/inspection-criticality.js.map +1 -0
- package/dist/openapi/models/inspection-script-category.d.ts +7 -4
- package/dist/openapi/models/inspection-script-category.d.ts.map +1 -1
- package/dist/openapi/models/inspection-script-category.js +7 -4
- package/dist/openapi/models/inspection-script-category.js.map +1 -1
- package/dist/openapi/models/inspection-script.d.ts +38 -0
- package/dist/openapi/models/inspection-script.d.ts.map +1 -1
- package/dist/openapi/models/inspection-task-item.d.ts +58 -0
- package/dist/openapi/models/inspection-task-item.d.ts.map +1 -1
- package/dist/openapi/models/inspection-task.d.ts +25 -1
- package/dist/openapi/models/inspection-task.d.ts.map +1 -1
- package/dist/openapi/models/inspection-threshold-direction.d.ts +23 -0
- package/dist/openapi/models/inspection-threshold-direction.d.ts.map +1 -0
- package/dist/openapi/models/inspection-threshold-direction.js +27 -0
- package/dist/openapi/models/inspection-threshold-direction.js.map +1 -0
- package/dist/openapi/models/redis-data-capabilities.d.ts +6 -0
- package/dist/openapi/models/redis-data-capabilities.d.ts.map +1 -1
- package/dist/openapi/models/redis-data-context.d.ts +7 -1
- package/dist/openapi/models/redis-data-context.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +2 -0
- package/src/adminapi/apis/dms-api.ts +198 -55
- package/src/adminapi/models/index.ts +2 -0
- package/src/adminapi/models/inspection-criticality.ts +33 -0
- package/src/adminapi/models/inspection-script-category.ts +7 -4
- package/src/adminapi/models/inspection-script.ts +42 -0
- package/src/adminapi/models/inspection-task-item.ts +62 -0
- package/src/adminapi/models/inspection-task.ts +25 -1
- package/src/adminapi/models/inspection-threshold-direction.ts +32 -0
- package/src/adminapi/models/redis-data-capabilities.ts +6 -0
- package/src/adminapi/models/redis-data-context.ts +7 -1
- package/src/adminapi.yaml +171 -4
- package/src/openapi/.openapi-generator/FILES +2 -0
- package/src/openapi/apis/dms-api.ts +198 -55
- package/src/openapi/models/index.ts +2 -0
- package/src/openapi/models/inspection-criticality.ts +33 -0
- package/src/openapi/models/inspection-script-category.ts +7 -4
- package/src/openapi/models/inspection-script.ts +42 -0
- package/src/openapi/models/inspection-task-item.ts +62 -0
- package/src/openapi/models/inspection-task.ts +25 -1
- package/src/openapi/models/inspection-threshold-direction.ts +32 -0
- package/src/openapi/models/redis-data-capabilities.ts +6 -0
- package/src/openapi/models/redis-data-context.ts +7 -1
- package/src/openapi.yaml +171 -4
|
@@ -429,11 +429,13 @@ export * from './import-task-status';
|
|
|
429
429
|
export * from './init-option-item';
|
|
430
430
|
export * from './init-option-object';
|
|
431
431
|
export * from './init-option-type';
|
|
432
|
+
export * from './inspection-criticality';
|
|
432
433
|
export * from './inspection-script';
|
|
433
434
|
export * from './inspection-script-category';
|
|
434
435
|
export * from './inspection-task';
|
|
435
436
|
export * from './inspection-task-format';
|
|
436
437
|
export * from './inspection-task-item';
|
|
438
|
+
export * from './inspection-threshold-direction';
|
|
437
439
|
export * from './instance';
|
|
438
440
|
export * from './instance-disk-usage-item';
|
|
439
441
|
export * from './instance-event-item';
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
* First-version criticality assumption for score weighting and red-item veto behavior. Missing legacy values are treated as medium.
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const InspectionCriticality = {
|
|
24
|
+
critical: 'critical',
|
|
25
|
+
high: 'high',
|
|
26
|
+
medium: 'medium',
|
|
27
|
+
low: 'low'
|
|
28
|
+
} as const;
|
|
29
|
+
|
|
30
|
+
export type InspectionCriticality = typeof InspectionCriticality[keyof typeof InspectionCriticality];
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
@@ -15,17 +15,20 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Current inspection category vocabulary. Existing legacy categories are normalized by the backend before they are returned.
|
|
19
19
|
* @export
|
|
20
20
|
* @enum {string}
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
export const InspectionScriptCategory = {
|
|
24
|
-
performance: 'performance',
|
|
25
24
|
availability: 'availability',
|
|
26
|
-
|
|
25
|
+
performance: 'performance',
|
|
26
|
+
connections: 'connections',
|
|
27
|
+
resource: 'resource',
|
|
28
|
+
capacity: 'capacity',
|
|
29
|
+
vacuumWraparound: 'vacuumWraparound',
|
|
27
30
|
backup: 'backup',
|
|
28
|
-
|
|
31
|
+
security: 'security'
|
|
29
32
|
} as const;
|
|
30
33
|
|
|
31
34
|
export type InspectionScriptCategory = typeof InspectionScriptCategory[keyof typeof InspectionScriptCategory];
|
|
@@ -13,11 +13,17 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { InspectionCriticality } from './inspection-criticality';
|
|
16
19
|
// May contain unused imports in some cases
|
|
17
20
|
// @ts-ignore
|
|
18
21
|
import type { InspectionScriptCategory } from './inspection-script-category';
|
|
19
22
|
// May contain unused imports in some cases
|
|
20
23
|
// @ts-ignore
|
|
24
|
+
import type { InspectionThresholdDirection } from './inspection-threshold-direction';
|
|
25
|
+
// May contain unused imports in some cases
|
|
26
|
+
// @ts-ignore
|
|
21
27
|
import type { LocalizedDescription } from './localized-description';
|
|
22
28
|
|
|
23
29
|
/**
|
|
@@ -80,6 +86,42 @@ export interface InspectionScript {
|
|
|
80
86
|
* @memberof InspectionScript
|
|
81
87
|
*/
|
|
82
88
|
'checkExpr'?: string;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {InspectionCriticality}
|
|
92
|
+
* @memberof InspectionScript
|
|
93
|
+
*/
|
|
94
|
+
'criticality'?: InspectionCriticality;
|
|
95
|
+
/**
|
|
96
|
+
* First-version warning threshold assumption. It documents the script contract and is not a permanent product conclusion.
|
|
97
|
+
* @type {number}
|
|
98
|
+
* @memberof InspectionScript
|
|
99
|
+
*/
|
|
100
|
+
'warnThreshold'?: number | null;
|
|
101
|
+
/**
|
|
102
|
+
* First-version critical threshold assumption. It documents the script contract and is not a permanent product conclusion.
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @memberof InspectionScript
|
|
105
|
+
*/
|
|
106
|
+
'critThreshold'?: number | null;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {InspectionThresholdDirection}
|
|
110
|
+
* @memberof InspectionScript
|
|
111
|
+
*/
|
|
112
|
+
'direction'?: InspectionThresholdDirection;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {LocalizedDescription}
|
|
116
|
+
* @memberof InspectionScript
|
|
117
|
+
*/
|
|
118
|
+
'remediation'?: LocalizedDescription;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof InspectionScript
|
|
123
|
+
*/
|
|
124
|
+
'docLink'?: string;
|
|
83
125
|
/**
|
|
84
126
|
* scope type, such as \"system\"/\"global\"/\"org\"
|
|
85
127
|
* @type {string}
|
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { InspectionCriticality } from './inspection-criticality';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { InspectionThresholdDirection } from './inspection-threshold-direction';
|
|
16
22
|
// May contain unused imports in some cases
|
|
17
23
|
// @ts-ignore
|
|
18
24
|
import type { LocalizedDescription } from './localized-description';
|
|
@@ -89,6 +95,60 @@ export interface InspectionTaskItem {
|
|
|
89
95
|
* @memberof InspectionTaskItem
|
|
90
96
|
*/
|
|
91
97
|
'result'?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Numeric form of result when the result is parseable.
|
|
100
|
+
* @type {number}
|
|
101
|
+
* @memberof InspectionTaskItem
|
|
102
|
+
*/
|
|
103
|
+
'valueNum'?: number | null;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {number}
|
|
107
|
+
* @memberof InspectionTaskItem
|
|
108
|
+
*/
|
|
109
|
+
'warnThreshold'?: number | null;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {number}
|
|
113
|
+
* @memberof InspectionTaskItem
|
|
114
|
+
*/
|
|
115
|
+
'critThreshold'?: number | null;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {InspectionThresholdDirection}
|
|
119
|
+
* @memberof InspectionTaskItem
|
|
120
|
+
*/
|
|
121
|
+
'direction'?: InspectionThresholdDirection;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {InspectionCriticality}
|
|
125
|
+
* @memberof InspectionTaskItem
|
|
126
|
+
*/
|
|
127
|
+
'criticality'?: InspectionCriticality;
|
|
128
|
+
/**
|
|
129
|
+
* Structured evidence used to explain the item result. Prometheus/exporter no-data is reported here as no data or unknown instead of being converted into a healthy result.
|
|
130
|
+
* @type {{ [key: string]: any; }}
|
|
131
|
+
* @memberof InspectionTaskItem
|
|
132
|
+
*/
|
|
133
|
+
'evidence'?: { [key: string]: any; };
|
|
134
|
+
/**
|
|
135
|
+
* Item-level timestamp for when this item\'s status was last evaluated or changed.
|
|
136
|
+
* @type {string}
|
|
137
|
+
* @memberof InspectionTaskItem
|
|
138
|
+
*/
|
|
139
|
+
'statusChangedAt'?: string;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @type {LocalizedDescription}
|
|
143
|
+
* @memberof InspectionTaskItem
|
|
144
|
+
*/
|
|
145
|
+
'remediation'?: LocalizedDescription;
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @type {string}
|
|
149
|
+
* @memberof InspectionTaskItem
|
|
150
|
+
*/
|
|
151
|
+
'docLink'?: string;
|
|
92
152
|
/**
|
|
93
153
|
*
|
|
94
154
|
* @type {string}
|
|
@@ -115,3 +175,5 @@ export interface InspectionTaskItem {
|
|
|
115
175
|
'updatedAt'?: string;
|
|
116
176
|
}
|
|
117
177
|
|
|
178
|
+
|
|
179
|
+
|
|
@@ -96,11 +96,35 @@ export interface InspectionTask {
|
|
|
96
96
|
*/
|
|
97
97
|
'score'?: number;
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
99
|
+
* Backend truth derived from the worst item state and criticality-aware score caps. A red item makes the task red; a critical red item caps score at 40.
|
|
100
100
|
* @type {string}
|
|
101
101
|
* @memberof InspectionTask
|
|
102
102
|
*/
|
|
103
103
|
'result'?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Last inspection execution timestamp used for freshness checks.
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof InspectionTask
|
|
108
|
+
*/
|
|
109
|
+
'latestRunAt'?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Expected first-version inspection interval assumption, for example 1h.
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof InspectionTask
|
|
114
|
+
*/
|
|
115
|
+
'expectedInterval'?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Expected next inspection time derived from latestRunAt and expectedInterval.
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof InspectionTask
|
|
120
|
+
*/
|
|
121
|
+
'nextRunAt'?: string;
|
|
122
|
+
/**
|
|
123
|
+
* True when the latest inspection is older than the expected interval. Stale or missing inspection data must not be displayed as healthy.
|
|
124
|
+
* @type {boolean}
|
|
125
|
+
* @memberof InspectionTask
|
|
126
|
+
*/
|
|
127
|
+
'isStale'?: boolean;
|
|
104
128
|
/**
|
|
105
129
|
*
|
|
106
130
|
* @type {Array<InspectionTaskItem>}
|
|
@@ -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
|
+
* 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.
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const InspectionThresholdDirection = {
|
|
24
|
+
asc: 'asc',
|
|
25
|
+
desc: 'desc',
|
|
26
|
+
boolean: 'boolean'
|
|
27
|
+
} as const;
|
|
28
|
+
|
|
29
|
+
export type InspectionThresholdDirection = typeof InspectionThresholdDirection[keyof typeof InspectionThresholdDirection];
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
@@ -35,6 +35,12 @@ export interface RedisDataCapabilities {
|
|
|
35
35
|
* @memberof RedisDataCapabilities
|
|
36
36
|
*/
|
|
37
37
|
'browser'?: RedisCapability;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {RedisCapability}
|
|
41
|
+
* @memberof RedisDataCapabilities
|
|
42
|
+
*/
|
|
43
|
+
'database'?: RedisCapability;
|
|
38
44
|
/**
|
|
39
45
|
*
|
|
40
46
|
* @type {RedisCapability}
|
|
@@ -48,11 +48,17 @@ export interface RedisDataContext {
|
|
|
48
48
|
*/
|
|
49
49
|
'acl'?: RedisACLContext;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Current logical Redis database index for this request context.
|
|
52
52
|
* @type {number}
|
|
53
53
|
* @memberof RedisDataContext
|
|
54
54
|
*/
|
|
55
55
|
'dbIndex'?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Available logical Redis database count. Non-cluster Redis defaults to 16 when the server does not expose a count; Redis Cluster is always 1.
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof RedisDataContext
|
|
60
|
+
*/
|
|
61
|
+
'dbCount'?: number;
|
|
56
62
|
/**
|
|
57
63
|
* Redis architecture mode, such as standalone, replication, sentinel, or cluster
|
|
58
64
|
* @type {string}
|
package/src/adminapi.yaml
CHANGED
|
@@ -5332,6 +5332,13 @@ paths:
|
|
|
5332
5332
|
required: true
|
|
5333
5333
|
schema:
|
|
5334
5334
|
type: string
|
|
5335
|
+
- name: database
|
|
5336
|
+
in: query
|
|
5337
|
+
required: false
|
|
5338
|
+
description: Current logical Redis database index for this context. Omitted uses the datasource default; Redis Cluster only supports 0.
|
|
5339
|
+
schema:
|
|
5340
|
+
type: integer
|
|
5341
|
+
format: int64
|
|
5335
5342
|
responses:
|
|
5336
5343
|
'200':
|
|
5337
5344
|
description: A successful response.
|
|
@@ -5361,6 +5368,13 @@ paths:
|
|
|
5361
5368
|
required: true
|
|
5362
5369
|
schema:
|
|
5363
5370
|
type: string
|
|
5371
|
+
- name: database
|
|
5372
|
+
in: query
|
|
5373
|
+
required: false
|
|
5374
|
+
description: Logical Redis database index. Redis Cluster only supports 0.
|
|
5375
|
+
schema:
|
|
5376
|
+
type: integer
|
|
5377
|
+
format: int64
|
|
5364
5378
|
- name: cursor
|
|
5365
5379
|
in: query
|
|
5366
5380
|
required: false
|
|
@@ -5490,6 +5504,13 @@ paths:
|
|
|
5490
5504
|
required: true
|
|
5491
5505
|
schema:
|
|
5492
5506
|
type: string
|
|
5507
|
+
- name: database
|
|
5508
|
+
in: query
|
|
5509
|
+
required: false
|
|
5510
|
+
description: Logical Redis database index. Redis Cluster only supports 0.
|
|
5511
|
+
schema:
|
|
5512
|
+
type: integer
|
|
5513
|
+
format: int64
|
|
5493
5514
|
requestBody:
|
|
5494
5515
|
content:
|
|
5495
5516
|
application/json:
|
|
@@ -5525,6 +5546,13 @@ paths:
|
|
|
5525
5546
|
required: true
|
|
5526
5547
|
schema:
|
|
5527
5548
|
type: string
|
|
5549
|
+
- name: database
|
|
5550
|
+
in: query
|
|
5551
|
+
required: false
|
|
5552
|
+
description: Logical Redis database index. Redis Cluster only supports 0.
|
|
5553
|
+
schema:
|
|
5554
|
+
type: integer
|
|
5555
|
+
format: int64
|
|
5528
5556
|
requestBody:
|
|
5529
5557
|
content:
|
|
5530
5558
|
application/json:
|
|
@@ -5561,6 +5589,13 @@ paths:
|
|
|
5561
5589
|
required: true
|
|
5562
5590
|
schema:
|
|
5563
5591
|
type: string
|
|
5592
|
+
- name: database
|
|
5593
|
+
in: query
|
|
5594
|
+
required: false
|
|
5595
|
+
description: Logical Redis database index for this command. Redis Cluster only supports 0.
|
|
5596
|
+
schema:
|
|
5597
|
+
type: integer
|
|
5598
|
+
format: int64
|
|
5564
5599
|
requestBody:
|
|
5565
5600
|
content:
|
|
5566
5601
|
application/json:
|
|
@@ -5596,6 +5631,13 @@ paths:
|
|
|
5596
5631
|
required: true
|
|
5597
5632
|
schema:
|
|
5598
5633
|
type: string
|
|
5634
|
+
- name: database
|
|
5635
|
+
in: query
|
|
5636
|
+
required: false
|
|
5637
|
+
description: Logical Redis database index for this Pub/Sub client. Redis Pub/Sub is server-level, but the client connection is still scoped to the selected DB for consistency.
|
|
5638
|
+
schema:
|
|
5639
|
+
type: integer
|
|
5640
|
+
format: int64
|
|
5599
5641
|
requestBody:
|
|
5600
5642
|
content:
|
|
5601
5643
|
application/json:
|
|
@@ -5631,6 +5673,13 @@ paths:
|
|
|
5631
5673
|
required: true
|
|
5632
5674
|
schema:
|
|
5633
5675
|
type: string
|
|
5676
|
+
- name: database
|
|
5677
|
+
in: query
|
|
5678
|
+
required: false
|
|
5679
|
+
description: Logical Redis database index for the polling client connection.
|
|
5680
|
+
schema:
|
|
5681
|
+
type: integer
|
|
5682
|
+
format: int64
|
|
5634
5683
|
requestBody:
|
|
5635
5684
|
content:
|
|
5636
5685
|
application/json:
|
|
@@ -5742,6 +5791,13 @@ paths:
|
|
|
5742
5791
|
required: true
|
|
5743
5792
|
schema:
|
|
5744
5793
|
type: string
|
|
5794
|
+
- name: database
|
|
5795
|
+
in: query
|
|
5796
|
+
required: false
|
|
5797
|
+
description: Logical Redis database index. SlowLog is server-level; the parameter is accepted for API consistency.
|
|
5798
|
+
schema:
|
|
5799
|
+
type: integer
|
|
5800
|
+
format: int64
|
|
5745
5801
|
- name: limit
|
|
5746
5802
|
in: query
|
|
5747
5803
|
required: false
|
|
@@ -5782,6 +5838,13 @@ paths:
|
|
|
5782
5838
|
required: true
|
|
5783
5839
|
schema:
|
|
5784
5840
|
type: string
|
|
5841
|
+
- name: database
|
|
5842
|
+
in: query
|
|
5843
|
+
required: false
|
|
5844
|
+
description: Logical Redis database index. SlowLog reset is server-level; the parameter is accepted for API consistency.
|
|
5845
|
+
schema:
|
|
5846
|
+
type: integer
|
|
5847
|
+
format: int64
|
|
5785
5848
|
requestBody:
|
|
5786
5849
|
content:
|
|
5787
5850
|
application/json:
|
|
@@ -5817,6 +5880,13 @@ paths:
|
|
|
5817
5880
|
required: true
|
|
5818
5881
|
schema:
|
|
5819
5882
|
type: string
|
|
5883
|
+
- name: database
|
|
5884
|
+
in: query
|
|
5885
|
+
required: false
|
|
5886
|
+
description: Logical Redis database index. INFO is server-level; the parameter is accepted for API consistency.
|
|
5887
|
+
schema:
|
|
5888
|
+
type: integer
|
|
5889
|
+
format: int64
|
|
5820
5890
|
- name: section
|
|
5821
5891
|
in: query
|
|
5822
5892
|
required: false
|
|
@@ -5856,6 +5926,13 @@ paths:
|
|
|
5856
5926
|
required: true
|
|
5857
5927
|
schema:
|
|
5858
5928
|
type: string
|
|
5929
|
+
- name: database
|
|
5930
|
+
in: query
|
|
5931
|
+
required: false
|
|
5932
|
+
description: Logical Redis database index. Redis Cluster topology only supports database 0.
|
|
5933
|
+
schema:
|
|
5934
|
+
type: integer
|
|
5935
|
+
format: int64
|
|
5859
5936
|
responses:
|
|
5860
5937
|
'200':
|
|
5861
5938
|
description: A successful response.
|
|
@@ -26272,6 +26349,8 @@ components:
|
|
|
26272
26349
|
$ref: '#/components/schemas/RedisCapability'
|
|
26273
26350
|
browser:
|
|
26274
26351
|
$ref: '#/components/schemas/RedisCapability'
|
|
26352
|
+
database:
|
|
26353
|
+
$ref: '#/components/schemas/RedisCapability'
|
|
26275
26354
|
workbench:
|
|
26276
26355
|
$ref: '#/components/schemas/RedisCapability'
|
|
26277
26356
|
pubsub:
|
|
@@ -26333,6 +26412,12 @@ components:
|
|
|
26333
26412
|
dbIndex:
|
|
26334
26413
|
type: integer
|
|
26335
26414
|
format: int64
|
|
26415
|
+
description: Current logical Redis database index for this request context.
|
|
26416
|
+
dbCount:
|
|
26417
|
+
type: integer
|
|
26418
|
+
format: int64
|
|
26419
|
+
description: Available logical Redis database count. Non-cluster Redis defaults to 16 when the server does not expose a count; Redis Cluster is always 1.
|
|
26420
|
+
x-omitempty: false
|
|
26336
26421
|
mode:
|
|
26337
26422
|
type: string
|
|
26338
26423
|
description: Redis architecture mode, such as standalone, replication, sentinel, or cluster
|
|
@@ -34848,13 +34933,31 @@ components:
|
|
|
34848
34933
|
type: object
|
|
34849
34934
|
inspectionScriptCategory:
|
|
34850
34935
|
type: string
|
|
34851
|
-
description:
|
|
34936
|
+
description: Current inspection category vocabulary. Existing legacy categories are normalized by the backend before they are returned.
|
|
34852
34937
|
enum:
|
|
34853
|
-
- performance
|
|
34854
34938
|
- availability
|
|
34855
|
-
-
|
|
34939
|
+
- performance
|
|
34940
|
+
- connections
|
|
34941
|
+
- resource
|
|
34942
|
+
- capacity
|
|
34943
|
+
- vacuumWraparound
|
|
34856
34944
|
- backup
|
|
34857
|
-
-
|
|
34945
|
+
- security
|
|
34946
|
+
inspectionCriticality:
|
|
34947
|
+
type: string
|
|
34948
|
+
description: First-version criticality assumption for score weighting and red-item veto behavior. Missing legacy values are treated as medium.
|
|
34949
|
+
enum:
|
|
34950
|
+
- critical
|
|
34951
|
+
- high
|
|
34952
|
+
- medium
|
|
34953
|
+
- low
|
|
34954
|
+
inspectionThresholdDirection:
|
|
34955
|
+
type: string
|
|
34956
|
+
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.
|
|
34957
|
+
enum:
|
|
34958
|
+
- asc
|
|
34959
|
+
- desc
|
|
34960
|
+
- boolean
|
|
34858
34961
|
inspectionScript:
|
|
34859
34962
|
required:
|
|
34860
34963
|
- name
|
|
@@ -34886,6 +34989,24 @@ components:
|
|
|
34886
34989
|
type: string
|
|
34887
34990
|
checkExpr:
|
|
34888
34991
|
type: string
|
|
34992
|
+
criticality:
|
|
34993
|
+
$ref: '#/components/schemas/inspectionCriticality'
|
|
34994
|
+
warnThreshold:
|
|
34995
|
+
type: number
|
|
34996
|
+
format: double
|
|
34997
|
+
x-nullable: true
|
|
34998
|
+
description: First-version warning threshold assumption. It documents the script contract and is not a permanent product conclusion.
|
|
34999
|
+
critThreshold:
|
|
35000
|
+
type: number
|
|
35001
|
+
format: double
|
|
35002
|
+
x-nullable: true
|
|
35003
|
+
description: First-version critical threshold assumption. It documents the script contract and is not a permanent product conclusion.
|
|
35004
|
+
direction:
|
|
35005
|
+
$ref: '#/components/schemas/inspectionThresholdDirection'
|
|
35006
|
+
remediation:
|
|
35007
|
+
$ref: '#/components/schemas/localizedDescription'
|
|
35008
|
+
docLink:
|
|
35009
|
+
type: string
|
|
34889
35010
|
scopeType:
|
|
34890
35011
|
description: scope type, such as "system"/"global"/"org"
|
|
34891
35012
|
type: string
|
|
@@ -34961,6 +35082,10 @@ components:
|
|
|
34961
35082
|
type: string
|
|
34962
35083
|
enabled:
|
|
34963
35084
|
type: boolean
|
|
35085
|
+
inspectionTaskItemEvidence:
|
|
35086
|
+
type: object
|
|
35087
|
+
description: Structured evidence used to explain the item result. Prometheus/exporter no-data is reported here as no data or unknown instead of being converted into a healthy result.
|
|
35088
|
+
additionalProperties: true
|
|
34964
35089
|
inspectionTaskItem:
|
|
34965
35090
|
properties:
|
|
34966
35091
|
id:
|
|
@@ -34985,6 +35110,33 @@ components:
|
|
|
34985
35110
|
type: string
|
|
34986
35111
|
result:
|
|
34987
35112
|
type: string
|
|
35113
|
+
valueNum:
|
|
35114
|
+
type: number
|
|
35115
|
+
format: double
|
|
35116
|
+
x-nullable: true
|
|
35117
|
+
description: Numeric form of result when the result is parseable.
|
|
35118
|
+
warnThreshold:
|
|
35119
|
+
type: number
|
|
35120
|
+
format: double
|
|
35121
|
+
x-nullable: true
|
|
35122
|
+
critThreshold:
|
|
35123
|
+
type: number
|
|
35124
|
+
format: double
|
|
35125
|
+
x-nullable: true
|
|
35126
|
+
direction:
|
|
35127
|
+
$ref: '#/components/schemas/inspectionThresholdDirection'
|
|
35128
|
+
criticality:
|
|
35129
|
+
$ref: '#/components/schemas/inspectionCriticality'
|
|
35130
|
+
evidence:
|
|
35131
|
+
$ref: '#/components/schemas/inspectionTaskItemEvidence'
|
|
35132
|
+
statusChangedAt:
|
|
35133
|
+
format: date-time
|
|
35134
|
+
type: string
|
|
35135
|
+
description: Item-level timestamp for when this item's status was last evaluated or changed.
|
|
35136
|
+
remediation:
|
|
35137
|
+
$ref: '#/components/schemas/localizedDescription'
|
|
35138
|
+
docLink:
|
|
35139
|
+
type: string
|
|
34988
35140
|
severity:
|
|
34989
35141
|
type: string
|
|
34990
35142
|
unit:
|
|
@@ -35024,6 +35176,21 @@ components:
|
|
|
35024
35176
|
type: integer
|
|
35025
35177
|
result:
|
|
35026
35178
|
type: string
|
|
35179
|
+
description: Backend truth derived from the worst item state and criticality-aware score caps. A red item makes the task red; a critical red item caps score at 40.
|
|
35180
|
+
latestRunAt:
|
|
35181
|
+
format: date-time
|
|
35182
|
+
type: string
|
|
35183
|
+
description: Last inspection execution timestamp used for freshness checks.
|
|
35184
|
+
expectedInterval:
|
|
35185
|
+
type: string
|
|
35186
|
+
description: Expected first-version inspection interval assumption, for example 1h.
|
|
35187
|
+
nextRunAt:
|
|
35188
|
+
format: date-time
|
|
35189
|
+
type: string
|
|
35190
|
+
description: Expected next inspection time derived from latestRunAt and expectedInterval.
|
|
35191
|
+
isStale:
|
|
35192
|
+
type: boolean
|
|
35193
|
+
description: True when the latest inspection is older than the expected interval. Stale or missing inspection data must not be displayed as healthy.
|
|
35027
35194
|
items:
|
|
35028
35195
|
type: array
|
|
35029
35196
|
items:
|
|
@@ -486,11 +486,13 @@ models/index.ts
|
|
|
486
486
|
models/init-option-item.ts
|
|
487
487
|
models/init-option-object.ts
|
|
488
488
|
models/init-option-type.ts
|
|
489
|
+
models/inspection-criticality.ts
|
|
489
490
|
models/inspection-script-category.ts
|
|
490
491
|
models/inspection-script.ts
|
|
491
492
|
models/inspection-task-format.ts
|
|
492
493
|
models/inspection-task-item.ts
|
|
493
494
|
models/inspection-task.ts
|
|
495
|
+
models/inspection-threshold-direction.ts
|
|
494
496
|
models/instance-disk-usage-item.ts
|
|
495
497
|
models/instance-event-item.ts
|
|
496
498
|
models/instance-event-list.ts
|