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
|
@@ -399,11 +399,13 @@ export * from './import-task-status';
|
|
|
399
399
|
export * from './init-option-item';
|
|
400
400
|
export * from './init-option-object';
|
|
401
401
|
export * from './init-option-type';
|
|
402
|
+
export * from './inspection-criticality';
|
|
402
403
|
export * from './inspection-script';
|
|
403
404
|
export * from './inspection-script-category';
|
|
404
405
|
export * from './inspection-task';
|
|
405
406
|
export * from './inspection-task-format';
|
|
406
407
|
export * from './inspection-task-item';
|
|
408
|
+
export * from './inspection-threshold-direction';
|
|
407
409
|
export * from './instance';
|
|
408
410
|
export * from './instance-disk-usage-item';
|
|
409
411
|
export * from './instance-event-item';
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
* 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
|
+
* 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
|
+
* 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/openapi.yaml
CHANGED
|
@@ -9047,6 +9047,13 @@ paths:
|
|
|
9047
9047
|
required: true
|
|
9048
9048
|
schema:
|
|
9049
9049
|
type: string
|
|
9050
|
+
- name: database
|
|
9051
|
+
in: query
|
|
9052
|
+
required: false
|
|
9053
|
+
description: Current logical Redis database index for this context. Omitted uses the datasource default; Redis Cluster only supports 0.
|
|
9054
|
+
schema:
|
|
9055
|
+
type: integer
|
|
9056
|
+
format: int64
|
|
9050
9057
|
responses:
|
|
9051
9058
|
'200':
|
|
9052
9059
|
description: A successful response.
|
|
@@ -9076,6 +9083,13 @@ paths:
|
|
|
9076
9083
|
required: true
|
|
9077
9084
|
schema:
|
|
9078
9085
|
type: string
|
|
9086
|
+
- name: database
|
|
9087
|
+
in: query
|
|
9088
|
+
required: false
|
|
9089
|
+
description: Logical Redis database index. Redis Cluster only supports 0.
|
|
9090
|
+
schema:
|
|
9091
|
+
type: integer
|
|
9092
|
+
format: int64
|
|
9079
9093
|
- name: cursor
|
|
9080
9094
|
in: query
|
|
9081
9095
|
required: false
|
|
@@ -9205,6 +9219,13 @@ paths:
|
|
|
9205
9219
|
required: true
|
|
9206
9220
|
schema:
|
|
9207
9221
|
type: string
|
|
9222
|
+
- name: database
|
|
9223
|
+
in: query
|
|
9224
|
+
required: false
|
|
9225
|
+
description: Logical Redis database index. Redis Cluster only supports 0.
|
|
9226
|
+
schema:
|
|
9227
|
+
type: integer
|
|
9228
|
+
format: int64
|
|
9208
9229
|
requestBody:
|
|
9209
9230
|
content:
|
|
9210
9231
|
application/json:
|
|
@@ -9240,6 +9261,13 @@ paths:
|
|
|
9240
9261
|
required: true
|
|
9241
9262
|
schema:
|
|
9242
9263
|
type: string
|
|
9264
|
+
- name: database
|
|
9265
|
+
in: query
|
|
9266
|
+
required: false
|
|
9267
|
+
description: Logical Redis database index. Redis Cluster only supports 0.
|
|
9268
|
+
schema:
|
|
9269
|
+
type: integer
|
|
9270
|
+
format: int64
|
|
9243
9271
|
requestBody:
|
|
9244
9272
|
content:
|
|
9245
9273
|
application/json:
|
|
@@ -9276,6 +9304,13 @@ paths:
|
|
|
9276
9304
|
required: true
|
|
9277
9305
|
schema:
|
|
9278
9306
|
type: string
|
|
9307
|
+
- name: database
|
|
9308
|
+
in: query
|
|
9309
|
+
required: false
|
|
9310
|
+
description: Logical Redis database index for this command. Redis Cluster only supports 0.
|
|
9311
|
+
schema:
|
|
9312
|
+
type: integer
|
|
9313
|
+
format: int64
|
|
9279
9314
|
requestBody:
|
|
9280
9315
|
content:
|
|
9281
9316
|
application/json:
|
|
@@ -9311,6 +9346,13 @@ paths:
|
|
|
9311
9346
|
required: true
|
|
9312
9347
|
schema:
|
|
9313
9348
|
type: string
|
|
9349
|
+
- name: database
|
|
9350
|
+
in: query
|
|
9351
|
+
required: false
|
|
9352
|
+
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.
|
|
9353
|
+
schema:
|
|
9354
|
+
type: integer
|
|
9355
|
+
format: int64
|
|
9314
9356
|
requestBody:
|
|
9315
9357
|
content:
|
|
9316
9358
|
application/json:
|
|
@@ -9346,6 +9388,13 @@ paths:
|
|
|
9346
9388
|
required: true
|
|
9347
9389
|
schema:
|
|
9348
9390
|
type: string
|
|
9391
|
+
- name: database
|
|
9392
|
+
in: query
|
|
9393
|
+
required: false
|
|
9394
|
+
description: Logical Redis database index for the polling client connection.
|
|
9395
|
+
schema:
|
|
9396
|
+
type: integer
|
|
9397
|
+
format: int64
|
|
9349
9398
|
requestBody:
|
|
9350
9399
|
content:
|
|
9351
9400
|
application/json:
|
|
@@ -9457,6 +9506,13 @@ paths:
|
|
|
9457
9506
|
required: true
|
|
9458
9507
|
schema:
|
|
9459
9508
|
type: string
|
|
9509
|
+
- name: database
|
|
9510
|
+
in: query
|
|
9511
|
+
required: false
|
|
9512
|
+
description: Logical Redis database index. SlowLog is server-level; the parameter is accepted for API consistency.
|
|
9513
|
+
schema:
|
|
9514
|
+
type: integer
|
|
9515
|
+
format: int64
|
|
9460
9516
|
- name: limit
|
|
9461
9517
|
in: query
|
|
9462
9518
|
required: false
|
|
@@ -9497,6 +9553,13 @@ paths:
|
|
|
9497
9553
|
required: true
|
|
9498
9554
|
schema:
|
|
9499
9555
|
type: string
|
|
9556
|
+
- name: database
|
|
9557
|
+
in: query
|
|
9558
|
+
required: false
|
|
9559
|
+
description: Logical Redis database index. SlowLog reset is server-level; the parameter is accepted for API consistency.
|
|
9560
|
+
schema:
|
|
9561
|
+
type: integer
|
|
9562
|
+
format: int64
|
|
9500
9563
|
requestBody:
|
|
9501
9564
|
content:
|
|
9502
9565
|
application/json:
|
|
@@ -9532,6 +9595,13 @@ paths:
|
|
|
9532
9595
|
required: true
|
|
9533
9596
|
schema:
|
|
9534
9597
|
type: string
|
|
9598
|
+
- name: database
|
|
9599
|
+
in: query
|
|
9600
|
+
required: false
|
|
9601
|
+
description: Logical Redis database index. INFO is server-level; the parameter is accepted for API consistency.
|
|
9602
|
+
schema:
|
|
9603
|
+
type: integer
|
|
9604
|
+
format: int64
|
|
9535
9605
|
- name: section
|
|
9536
9606
|
in: query
|
|
9537
9607
|
required: false
|
|
@@ -9571,6 +9641,13 @@ paths:
|
|
|
9571
9641
|
required: true
|
|
9572
9642
|
schema:
|
|
9573
9643
|
type: string
|
|
9644
|
+
- name: database
|
|
9645
|
+
in: query
|
|
9646
|
+
required: false
|
|
9647
|
+
description: Logical Redis database index. Redis Cluster topology only supports database 0.
|
|
9648
|
+
schema:
|
|
9649
|
+
type: integer
|
|
9650
|
+
format: int64
|
|
9574
9651
|
responses:
|
|
9575
9652
|
'200':
|
|
9576
9653
|
description: A successful response.
|
|
@@ -28376,6 +28453,8 @@ components:
|
|
|
28376
28453
|
$ref: '#/components/schemas/RedisCapability'
|
|
28377
28454
|
browser:
|
|
28378
28455
|
$ref: '#/components/schemas/RedisCapability'
|
|
28456
|
+
database:
|
|
28457
|
+
$ref: '#/components/schemas/RedisCapability'
|
|
28379
28458
|
workbench:
|
|
28380
28459
|
$ref: '#/components/schemas/RedisCapability'
|
|
28381
28460
|
pubsub:
|
|
@@ -28437,6 +28516,12 @@ components:
|
|
|
28437
28516
|
dbIndex:
|
|
28438
28517
|
type: integer
|
|
28439
28518
|
format: int64
|
|
28519
|
+
description: Current logical Redis database index for this request context.
|
|
28520
|
+
dbCount:
|
|
28521
|
+
type: integer
|
|
28522
|
+
format: int64
|
|
28523
|
+
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.
|
|
28524
|
+
x-omitempty: false
|
|
28440
28525
|
mode:
|
|
28441
28526
|
type: string
|
|
28442
28527
|
description: Redis architecture mode, such as standalone, replication, sentinel, or cluster
|
|
@@ -33400,13 +33485,31 @@ components:
|
|
|
33400
33485
|
- items
|
|
33401
33486
|
inspectionScriptCategory:
|
|
33402
33487
|
type: string
|
|
33403
|
-
description:
|
|
33488
|
+
description: Current inspection category vocabulary. Existing legacy categories are normalized by the backend before they are returned.
|
|
33404
33489
|
enum:
|
|
33405
|
-
- performance
|
|
33406
33490
|
- availability
|
|
33407
|
-
-
|
|
33491
|
+
- performance
|
|
33492
|
+
- connections
|
|
33493
|
+
- resource
|
|
33494
|
+
- capacity
|
|
33495
|
+
- vacuumWraparound
|
|
33408
33496
|
- backup
|
|
33409
|
-
-
|
|
33497
|
+
- security
|
|
33498
|
+
inspectionCriticality:
|
|
33499
|
+
type: string
|
|
33500
|
+
description: First-version criticality assumption for score weighting and red-item veto behavior. Missing legacy values are treated as medium.
|
|
33501
|
+
enum:
|
|
33502
|
+
- critical
|
|
33503
|
+
- high
|
|
33504
|
+
- medium
|
|
33505
|
+
- low
|
|
33506
|
+
inspectionThresholdDirection:
|
|
33507
|
+
type: string
|
|
33508
|
+
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.
|
|
33509
|
+
enum:
|
|
33510
|
+
- asc
|
|
33511
|
+
- desc
|
|
33512
|
+
- boolean
|
|
33410
33513
|
inspectionScript:
|
|
33411
33514
|
required:
|
|
33412
33515
|
- name
|
|
@@ -33438,6 +33541,24 @@ components:
|
|
|
33438
33541
|
type: string
|
|
33439
33542
|
checkExpr:
|
|
33440
33543
|
type: string
|
|
33544
|
+
criticality:
|
|
33545
|
+
$ref: '#/components/schemas/inspectionCriticality'
|
|
33546
|
+
warnThreshold:
|
|
33547
|
+
type: number
|
|
33548
|
+
format: double
|
|
33549
|
+
x-nullable: true
|
|
33550
|
+
description: First-version warning threshold assumption. It documents the script contract and is not a permanent product conclusion.
|
|
33551
|
+
critThreshold:
|
|
33552
|
+
type: number
|
|
33553
|
+
format: double
|
|
33554
|
+
x-nullable: true
|
|
33555
|
+
description: First-version critical threshold assumption. It documents the script contract and is not a permanent product conclusion.
|
|
33556
|
+
direction:
|
|
33557
|
+
$ref: '#/components/schemas/inspectionThresholdDirection'
|
|
33558
|
+
remediation:
|
|
33559
|
+
$ref: '#/components/schemas/localizedDescription'
|
|
33560
|
+
docLink:
|
|
33561
|
+
type: string
|
|
33441
33562
|
scopeType:
|
|
33442
33563
|
description: scope type, such as "system"/"global"/"org"
|
|
33443
33564
|
type: string
|
|
@@ -33513,6 +33634,10 @@ components:
|
|
|
33513
33634
|
type: string
|
|
33514
33635
|
enabled:
|
|
33515
33636
|
type: boolean
|
|
33637
|
+
inspectionTaskItemEvidence:
|
|
33638
|
+
type: object
|
|
33639
|
+
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.
|
|
33640
|
+
additionalProperties: true
|
|
33516
33641
|
inspectionTaskItem:
|
|
33517
33642
|
properties:
|
|
33518
33643
|
id:
|
|
@@ -33537,6 +33662,33 @@ components:
|
|
|
33537
33662
|
type: string
|
|
33538
33663
|
result:
|
|
33539
33664
|
type: string
|
|
33665
|
+
valueNum:
|
|
33666
|
+
type: number
|
|
33667
|
+
format: double
|
|
33668
|
+
x-nullable: true
|
|
33669
|
+
description: Numeric form of result when the result is parseable.
|
|
33670
|
+
warnThreshold:
|
|
33671
|
+
type: number
|
|
33672
|
+
format: double
|
|
33673
|
+
x-nullable: true
|
|
33674
|
+
critThreshold:
|
|
33675
|
+
type: number
|
|
33676
|
+
format: double
|
|
33677
|
+
x-nullable: true
|
|
33678
|
+
direction:
|
|
33679
|
+
$ref: '#/components/schemas/inspectionThresholdDirection'
|
|
33680
|
+
criticality:
|
|
33681
|
+
$ref: '#/components/schemas/inspectionCriticality'
|
|
33682
|
+
evidence:
|
|
33683
|
+
$ref: '#/components/schemas/inspectionTaskItemEvidence'
|
|
33684
|
+
statusChangedAt:
|
|
33685
|
+
format: date-time
|
|
33686
|
+
type: string
|
|
33687
|
+
description: Item-level timestamp for when this item's status was last evaluated or changed.
|
|
33688
|
+
remediation:
|
|
33689
|
+
$ref: '#/components/schemas/localizedDescription'
|
|
33690
|
+
docLink:
|
|
33691
|
+
type: string
|
|
33540
33692
|
severity:
|
|
33541
33693
|
type: string
|
|
33542
33694
|
unit:
|
|
@@ -33576,6 +33728,21 @@ components:
|
|
|
33576
33728
|
type: integer
|
|
33577
33729
|
result:
|
|
33578
33730
|
type: string
|
|
33731
|
+
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.
|
|
33732
|
+
latestRunAt:
|
|
33733
|
+
format: date-time
|
|
33734
|
+
type: string
|
|
33735
|
+
description: Last inspection execution timestamp used for freshness checks.
|
|
33736
|
+
expectedInterval:
|
|
33737
|
+
type: string
|
|
33738
|
+
description: Expected first-version inspection interval assumption, for example 1h.
|
|
33739
|
+
nextRunAt:
|
|
33740
|
+
format: date-time
|
|
33741
|
+
type: string
|
|
33742
|
+
description: Expected next inspection time derived from latestRunAt and expectedInterval.
|
|
33743
|
+
isStale:
|
|
33744
|
+
type: boolean
|
|
33745
|
+
description: True when the latest inspection is older than the expected interval. Stale or missing inspection data must not be displayed as healthy.
|
|
33579
33746
|
items:
|
|
33580
33747
|
type: array
|
|
33581
33748
|
items:
|