kb-cloud-client-typescript 2.3.40 → 2.3.42
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/cluster-alert-switch-api.d.ts +74 -10
- package/dist/adminapi/apis/cluster-alert-switch-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-alert-switch-api.js +82 -8
- package/dist/adminapi/apis/cluster-alert-switch-api.js.map +1 -1
- package/dist/adminapi/apis/cluster-log-api.d.ts +18 -2
- package/dist/adminapi/apis/cluster-log-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-log-api.js +15 -5
- package/dist/adminapi/apis/cluster-log-api.js.map +1 -1
- package/dist/adminapi/apis/cluster-loki-log-api.d.ts +18 -2
- package/dist/adminapi/apis/cluster-loki-log-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-loki-log-api.js +15 -5
- package/dist/adminapi/apis/cluster-loki-log-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +110 -14
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +112 -18
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/alert-cluster-silence-mode.d.ts +22 -0
- package/dist/adminapi/models/alert-cluster-silence-mode.d.ts.map +1 -0
- package/dist/adminapi/models/alert-cluster-silence-mode.js +26 -0
- package/dist/adminapi/models/alert-cluster-silence-mode.js.map +1 -0
- package/dist/adminapi/models/alert-cluster-silence.d.ts +74 -0
- package/dist/adminapi/models/alert-cluster-silence.d.ts.map +1 -0
- package/dist/adminapi/models/alert-cluster-silence.js +16 -0
- package/dist/adminapi/models/alert-cluster-silence.js.map +1 -0
- package/dist/adminapi/models/alert-cluster.d.ts +21 -2
- package/dist/adminapi/models/alert-cluster.d.ts.map +1 -1
- package/dist/adminapi/models/component-item-create.d.ts +2 -2
- package/dist/adminapi/models/component-option-version-blocked-upgrade-from-inner.d.ts +31 -0
- package/dist/adminapi/models/component-option-version-blocked-upgrade-from-inner.d.ts.map +1 -0
- package/dist/adminapi/models/component-option-version-blocked-upgrade-from-inner.js +16 -0
- package/dist/adminapi/models/component-option-version-blocked-upgrade-from-inner.js.map +1 -0
- package/dist/adminapi/models/component-option-version.d.ts +7 -0
- package/dist/adminapi/models/component-option-version.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +3 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +3 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/mode-component-instance-template.d.ts +3 -3
- package/dist/adminapi/models/ops-hscale.d.ts +2 -2
- package/dist/openapi/apis/cluster-alert-switch-api.d.ts +74 -10
- package/dist/openapi/apis/cluster-alert-switch-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-alert-switch-api.js +82 -8
- package/dist/openapi/apis/cluster-alert-switch-api.js.map +1 -1
- package/dist/openapi/apis/cluster-log-api.d.ts +18 -2
- package/dist/openapi/apis/cluster-log-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-log-api.js +15 -5
- package/dist/openapi/apis/cluster-log-api.js.map +1 -1
- package/dist/openapi/apis/cluster-loki-log-api.d.ts +18 -2
- package/dist/openapi/apis/cluster-loki-log-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-loki-log-api.js +15 -5
- package/dist/openapi/apis/cluster-loki-log-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +110 -14
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +112 -18
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/alert-cluster-silence-mode.d.ts +22 -0
- package/dist/openapi/models/alert-cluster-silence-mode.d.ts.map +1 -0
- package/dist/openapi/models/alert-cluster-silence-mode.js +26 -0
- package/dist/openapi/models/alert-cluster-silence-mode.js.map +1 -0
- package/dist/openapi/models/alert-cluster-silence.d.ts +74 -0
- package/dist/openapi/models/alert-cluster-silence.d.ts.map +1 -0
- package/dist/openapi/models/alert-cluster-silence.js +16 -0
- package/dist/openapi/models/alert-cluster-silence.js.map +1 -0
- package/dist/openapi/models/alert-cluster.d.ts +21 -2
- package/dist/openapi/models/alert-cluster.d.ts.map +1 -1
- package/dist/openapi/models/component-item-create.d.ts +2 -2
- package/dist/openapi/models/component-option-version-blocked-upgrade-from-inner.d.ts +31 -0
- package/dist/openapi/models/component-option-version-blocked-upgrade-from-inner.d.ts.map +1 -0
- package/dist/openapi/models/component-option-version-blocked-upgrade-from-inner.js +16 -0
- package/dist/openapi/models/component-option-version-blocked-upgrade-from-inner.js.map +1 -0
- package/dist/openapi/models/component-option-version.d.ts +7 -0
- package/dist/openapi/models/component-option-version.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +3 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +3 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/mode-component-instance-template.d.ts +3 -3
- package/dist/openapi/models/ops-hscale.d.ts +2 -2
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +3 -0
- package/src/adminapi/apis/cluster-alert-switch-api.ts +124 -10
- package/src/adminapi/apis/cluster-log-api.ts +31 -5
- package/src/adminapi/apis/cluster-loki-log-api.ts +31 -5
- package/src/adminapi/apis/shared-api.ts +186 -20
- package/src/adminapi/models/alert-cluster-silence-mode.ts +31 -0
- package/src/adminapi/models/alert-cluster-silence.ts +83 -0
- package/src/adminapi/models/alert-cluster.ts +23 -2
- package/src/adminapi/models/component-item-create.ts +2 -2
- package/src/adminapi/models/component-option-version-blocked-upgrade-from-inner.ts +36 -0
- package/src/adminapi/models/component-option-version.ts +9 -0
- package/src/adminapi/models/index.ts +3 -0
- package/src/adminapi/models/mode-component-instance-template.ts +3 -3
- package/src/adminapi/models/ops-hscale.ts +2 -2
- package/src/adminapi.yaml +177 -52
- package/src/openapi/.openapi-generator/FILES +3 -0
- package/src/openapi/apis/cluster-alert-switch-api.ts +124 -10
- package/src/openapi/apis/cluster-log-api.ts +31 -5
- package/src/openapi/apis/cluster-loki-log-api.ts +31 -5
- package/src/openapi/apis/shared-api.ts +186 -20
- package/src/openapi/models/alert-cluster-silence-mode.ts +31 -0
- package/src/openapi/models/alert-cluster-silence.ts +83 -0
- package/src/openapi/models/alert-cluster.ts +23 -2
- package/src/openapi/models/component-item-create.ts +2 -2
- package/src/openapi/models/component-option-version-blocked-upgrade-from-inner.ts +36 -0
- package/src/openapi/models/component-option-version.ts +9 -0
- package/src/openapi/models/index.ts +3 -0
- package/src/openapi/models/mode-component-instance-template.ts +3 -3
- package/src/openapi/models/ops-hscale.ts +2 -2
- package/src/openapi.yaml +139 -14
|
@@ -53,6 +53,8 @@ export * from './ai-agent-turn-action';
|
|
|
53
53
|
export * from './ai-agent-turn-action-list';
|
|
54
54
|
export * from './ai-agent-turn-status';
|
|
55
55
|
export * from './alert-cluster';
|
|
56
|
+
export * from './alert-cluster-silence';
|
|
57
|
+
export * from './alert-cluster-silence-mode';
|
|
56
58
|
export * from './alert-config';
|
|
57
59
|
export * from './alert-inhibit';
|
|
58
60
|
export * from './alert-inhibit-list';
|
|
@@ -223,6 +225,7 @@ export * from './component-ops-option-dependent-custom-ops-params-inner';
|
|
|
223
225
|
export * from './component-ops-option-restore-env-inner';
|
|
224
226
|
export * from './component-option';
|
|
225
227
|
export * from './component-option-version';
|
|
228
|
+
export * from './component-option-version-blocked-upgrade-from-inner';
|
|
226
229
|
export * from './component-option-version-major-version';
|
|
227
230
|
export * from './component-option-version-major-version-version-mapping-inner';
|
|
228
231
|
export * from './component-option-version-minor-version';
|
|
@@ -24,19 +24,19 @@ import type { InstanceTemplateEnv } from './instance-template-env';
|
|
|
24
24
|
import type { InstanceTemplateOp } from './instance-template-op';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* Template fields and operations shared by the frontend and backend. Declaring storageExpansion in ops requires explicit
|
|
27
|
+
* Template fields and operations shared by the frontend and backend. Requested components require creation template targets when instanceTemplate is declared. Declaring hscale or storageExpansion in ops requires explicit targets for every name. The hscale requirement applies to replica scaling only.
|
|
28
28
|
* @export
|
|
29
29
|
* @interface ModeComponentInstanceTemplate
|
|
30
30
|
*/
|
|
31
31
|
export interface ModeComponentInstanceTemplate {
|
|
32
32
|
/**
|
|
33
|
-
* Instance template names the frontend should render. Create
|
|
33
|
+
* Instance template names the frontend should render. Create checks names against the chart. Replica hscale and volume expansion targets must include every name in this list.
|
|
34
34
|
* @type {Set<string>}
|
|
35
35
|
* @memberof ModeComponentInstanceTemplate
|
|
36
36
|
*/
|
|
37
37
|
'names': Set<string>;
|
|
38
38
|
/**
|
|
39
|
-
* Template operations: hscale, storageExpansion, and reserved vscale.
|
|
39
|
+
* Template operations: hscale, storageExpansion, and reserved vscale. Template hscale replicas must sum to the component target. Volume expansion targets must match component volume names and capacities.
|
|
40
40
|
* @type {Array<InstanceTemplateOp>}
|
|
41
41
|
* @memberof ModeComponentInstanceTemplate
|
|
42
42
|
*/
|
|
@@ -21,7 +21,7 @@ import type { InstanceTemplateReplicas } from './instance-template-replicas';
|
|
|
21
21
|
import type { TaskSchedule } from './task-schedule';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* OpsHScale is the payload to horizontally scale a KubeBlocks cluster. Specify replicas or shards.
|
|
24
|
+
* OpsHScale is the payload to horizontally scale a KubeBlocks cluster. Specify replicas or shards. Replica scaling requires explicit template targets when the current mode component declares instanceTemplate.ops hscale.
|
|
25
25
|
* @export
|
|
26
26
|
* @interface OpsHScale
|
|
27
27
|
*/
|
|
@@ -45,7 +45,7 @@ export interface OpsHScale {
|
|
|
45
45
|
*/
|
|
46
46
|
'replicas'?: number | null;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Explicit template replica targets, required when the current mode component instanceTemplate.ops includes hscale. Otherwise omit for component-level scaling. Requires top-level replicas and every name from instanceTemplate.names, without missing, extra, or duplicate names. Template replica counts must sum to the component target; equal distribution is not required by the API. Component and template changes are sent together in one OpsRequest using current Cluster replicas to calculate scaleIn/scaleOut deltas. Shard-count scaling cannot include this list.
|
|
49
49
|
* @type {Array<InstanceTemplateReplicas>}
|
|
50
50
|
* @memberof OpsHScale
|
|
51
51
|
*/
|
package/src/adminapi.yaml
CHANGED
|
@@ -8868,6 +8868,14 @@ paths:
|
|
|
8868
8868
|
name: instanceName
|
|
8869
8869
|
schema:
|
|
8870
8870
|
type: string
|
|
8871
|
+
- in: query
|
|
8872
|
+
name: query
|
|
8873
|
+
schema:
|
|
8874
|
+
type: string
|
|
8875
|
+
- in: query
|
|
8876
|
+
name: filename
|
|
8877
|
+
schema:
|
|
8878
|
+
type: string
|
|
8871
8879
|
- in: query
|
|
8872
8880
|
name: sortType
|
|
8873
8881
|
schema:
|
|
@@ -9238,6 +9246,8 @@ paths:
|
|
|
9238
9246
|
- $ref: '#/components/parameters/limit'
|
|
9239
9247
|
- $ref: '#/components/parameters/componentName'
|
|
9240
9248
|
- $ref: '#/components/parameters/instanceName'
|
|
9249
|
+
- $ref: '#/components/parameters/query'
|
|
9250
|
+
- $ref: '#/components/parameters/filename'
|
|
9241
9251
|
- $ref: '#/components/parameters/sortType'
|
|
9242
9252
|
responses:
|
|
9243
9253
|
'200':
|
|
@@ -13914,13 +13924,46 @@ paths:
|
|
|
13914
13924
|
'401':
|
|
13915
13925
|
$ref: '#/components/responses/401'
|
|
13916
13926
|
x-codegen-request-body-name: body
|
|
13927
|
+
/admin/v1/organizations/{orgName}/alerts/cluster/{clusterName}/rules:
|
|
13928
|
+
get:
|
|
13929
|
+
tags:
|
|
13930
|
+
- clusterAlertSwitch
|
|
13931
|
+
- shared
|
|
13932
|
+
operationId: listClusterAlertRules
|
|
13933
|
+
summary: List applicable alert rules for a cluster
|
|
13934
|
+
parameters:
|
|
13935
|
+
- name: orgName
|
|
13936
|
+
in: path
|
|
13937
|
+
description: name of the Org
|
|
13938
|
+
required: true
|
|
13939
|
+
schema:
|
|
13940
|
+
type: string
|
|
13941
|
+
- name: clusterName
|
|
13942
|
+
in: path
|
|
13943
|
+
description: clusterName
|
|
13944
|
+
required: true
|
|
13945
|
+
schema:
|
|
13946
|
+
type: string
|
|
13947
|
+
responses:
|
|
13948
|
+
'200':
|
|
13949
|
+
description: A successful response.
|
|
13950
|
+
content:
|
|
13951
|
+
application/json:
|
|
13952
|
+
schema:
|
|
13953
|
+
$ref: '#/components/schemas/alertRuleList'
|
|
13954
|
+
'401':
|
|
13955
|
+
$ref: '#/components/responses/401'
|
|
13956
|
+
'403':
|
|
13957
|
+
$ref: '#/components/responses/403'
|
|
13958
|
+
'404':
|
|
13959
|
+
$ref: '#/components/responses/404'
|
|
13917
13960
|
/admin/v1/organizations/{orgName}/alerts/cluster/{clusterName}:
|
|
13918
13961
|
get:
|
|
13919
13962
|
tags:
|
|
13920
13963
|
- clusterAlertSwitch
|
|
13921
13964
|
- shared
|
|
13922
13965
|
operationId: getClusterAlertDisabled
|
|
13923
|
-
summary:
|
|
13966
|
+
summary: Get cluster alert settings
|
|
13924
13967
|
parameters:
|
|
13925
13968
|
- name: orgName
|
|
13926
13969
|
in: path
|
|
@@ -13952,7 +13995,7 @@ paths:
|
|
|
13952
13995
|
- clusterAlertSwitch
|
|
13953
13996
|
- shared
|
|
13954
13997
|
operationId: setClusterAlertDisabled
|
|
13955
|
-
summary:
|
|
13998
|
+
summary: Update cluster alert settings
|
|
13956
13999
|
parameters:
|
|
13957
14000
|
- name: orgName
|
|
13958
14001
|
in: path
|
|
@@ -30046,11 +30089,11 @@ components:
|
|
|
30046
30089
|
replicas:
|
|
30047
30090
|
title: Replicas
|
|
30048
30091
|
type: integer
|
|
30049
|
-
description: The number of replicas, for standalone mode, the replicas is 1, for raftGroup mode, the default replicas is 3.
|
|
30092
|
+
description: The number of replicas, for standalone mode, the replicas is 1, for raftGroup mode, the default replicas is 3. When instanceTemplates is provided, this must equal the sum of all template replica counts.
|
|
30050
30093
|
instanceTemplates:
|
|
30051
30094
|
type: array
|
|
30052
30095
|
minItems: 1
|
|
30053
|
-
description: Per-template replicas and optional overlays (env, annotations, labels). Required when the
|
|
30096
|
+
description: Per-template replicas and optional overlays (env, annotations, labels, availability zone, storage class). Required when the current mode component declares instanceTemplate in engine_options; otherwise omit. Names must exactly match all chart-rendered instances, without missing, extra, or duplicate names; order does not matter. Component replicas must equal the sum of all requested instance template replica counts.
|
|
30054
30097
|
items:
|
|
30055
30098
|
$ref: '#/components/schemas/instanceTemplateCreate'
|
|
30056
30099
|
skipResourceConstraints:
|
|
@@ -31484,7 +31527,7 @@ components:
|
|
|
31484
31527
|
minimum: 0
|
|
31485
31528
|
description: Target replica count for this instance template.
|
|
31486
31529
|
opsHScale:
|
|
31487
|
-
description: OpsHScale is the payload to horizontally scale a KubeBlocks cluster. Specify replicas or shards.
|
|
31530
|
+
description: OpsHScale is the payload to horizontally scale a KubeBlocks cluster. Specify replicas or shards. Replica scaling requires explicit template targets when the current mode component declares instanceTemplate.ops hscale.
|
|
31488
31531
|
required:
|
|
31489
31532
|
- component
|
|
31490
31533
|
properties:
|
|
@@ -31503,7 +31546,7 @@ components:
|
|
|
31503
31546
|
instanceTemplates:
|
|
31504
31547
|
type: array
|
|
31505
31548
|
minItems: 1
|
|
31506
|
-
description:
|
|
31549
|
+
description: Explicit template replica targets, required when the current mode component instanceTemplate.ops includes hscale. Otherwise omit for component-level scaling. Requires top-level replicas and every name from instanceTemplate.names, without missing, extra, or duplicate names. Template replica counts must sum to the component target; equal distribution is not required by the API. Component and template changes are sent together in one OpsRequest using current Cluster replicas to calculate scaleIn/scaleOut deltas. Shard-count scaling cannot include this list.
|
|
31507
31550
|
items:
|
|
31508
31551
|
$ref: '#/components/schemas/instanceTemplateReplicas'
|
|
31509
31552
|
onlineInstancesToOffline:
|
|
@@ -38812,46 +38855,6 @@ components:
|
|
|
38812
38855
|
required:
|
|
38813
38856
|
- items
|
|
38814
38857
|
type: object
|
|
38815
|
-
alertCluster:
|
|
38816
|
-
required:
|
|
38817
|
-
- disabled
|
|
38818
|
-
type: object
|
|
38819
|
-
properties:
|
|
38820
|
-
disabled:
|
|
38821
|
-
type: boolean
|
|
38822
|
-
URLCheck:
|
|
38823
|
-
type: object
|
|
38824
|
-
required:
|
|
38825
|
-
- url
|
|
38826
|
-
properties:
|
|
38827
|
-
url:
|
|
38828
|
-
type: string
|
|
38829
|
-
format: uri
|
|
38830
|
-
example: https://example.com
|
|
38831
|
-
isConnectable:
|
|
38832
|
-
type: boolean
|
|
38833
|
-
example: true
|
|
38834
|
-
default: false
|
|
38835
|
-
timeout:
|
|
38836
|
-
type: integer
|
|
38837
|
-
minimum: 1
|
|
38838
|
-
maximum: 30
|
|
38839
|
-
default: 5
|
|
38840
|
-
example: 5
|
|
38841
|
-
error:
|
|
38842
|
-
type: string
|
|
38843
|
-
example: null
|
|
38844
|
-
alertStatistic:
|
|
38845
|
-
type: object
|
|
38846
|
-
properties:
|
|
38847
|
-
total:
|
|
38848
|
-
type: integer
|
|
38849
|
-
critical:
|
|
38850
|
-
type: integer
|
|
38851
|
-
warning:
|
|
38852
|
-
type: integer
|
|
38853
|
-
info:
|
|
38854
|
-
type: integer
|
|
38855
38858
|
alertSeverity:
|
|
38856
38859
|
enum:
|
|
38857
38860
|
- critical
|
|
@@ -38915,6 +38918,112 @@ components:
|
|
|
38915
38918
|
pageResult:
|
|
38916
38919
|
$ref: '#/components/schemas/pageResult'
|
|
38917
38920
|
description: AlertRuleList is a list of alert rules
|
|
38921
|
+
alertClusterSilenceMode:
|
|
38922
|
+
type: string
|
|
38923
|
+
enum:
|
|
38924
|
+
- once
|
|
38925
|
+
- weekly
|
|
38926
|
+
description: Required when enabled. Once uses absolute timestamps; weekly uses weekdays and local times in timeZone.
|
|
38927
|
+
alertClusterSilence:
|
|
38928
|
+
type: object
|
|
38929
|
+
required:
|
|
38930
|
+
- enabled
|
|
38931
|
+
description: Pause notifications while continuing to record alerts. Set enabled to false to cancel. Time windows include their start and exclude their end.
|
|
38932
|
+
properties:
|
|
38933
|
+
enabled:
|
|
38934
|
+
type: boolean
|
|
38935
|
+
rules:
|
|
38936
|
+
type: array
|
|
38937
|
+
maxItems: 1000
|
|
38938
|
+
description: Alert names to silence. Empty or omitted means all cluster alerts.
|
|
38939
|
+
items:
|
|
38940
|
+
type: string
|
|
38941
|
+
minLength: 1
|
|
38942
|
+
maxLength: 255
|
|
38943
|
+
mode:
|
|
38944
|
+
$ref: '#/components/schemas/alertClusterSilenceMode'
|
|
38945
|
+
startsAt:
|
|
38946
|
+
type: string
|
|
38947
|
+
format: date-time
|
|
38948
|
+
description: Required for once. Absolute start of the silence window.
|
|
38949
|
+
endsAt:
|
|
38950
|
+
type: string
|
|
38951
|
+
format: date-time
|
|
38952
|
+
description: Required for once. Must be later than startsAt.
|
|
38953
|
+
weekdays:
|
|
38954
|
+
type: array
|
|
38955
|
+
maxItems: 7
|
|
38956
|
+
description: Required for weekly. Sunday is 0. Overnight windows belong to the weekday on which they start.
|
|
38957
|
+
items:
|
|
38958
|
+
type: integer
|
|
38959
|
+
minimum: 0
|
|
38960
|
+
maximum: 6
|
|
38961
|
+
startTime:
|
|
38962
|
+
type: string
|
|
38963
|
+
description: Required for weekly, in HH:mm format.
|
|
38964
|
+
endTime:
|
|
38965
|
+
type: string
|
|
38966
|
+
description: Required for weekly, in HH:mm format. Earlier than startTime means the following day; equal times are invalid.
|
|
38967
|
+
timeZone:
|
|
38968
|
+
type: string
|
|
38969
|
+
maxLength: 100
|
|
38970
|
+
description: Required for weekly. IANA timezone, e.g. Asia/Shanghai or UTC.
|
|
38971
|
+
alertCluster:
|
|
38972
|
+
type: object
|
|
38973
|
+
description: Cluster-scoped alert settings. PATCH updates only supplied fields; settings apply to both tenant and administrator notifications.
|
|
38974
|
+
properties:
|
|
38975
|
+
disabled:
|
|
38976
|
+
type: boolean
|
|
38977
|
+
x-nullable: true
|
|
38978
|
+
description: Disable all cluster alerts. Existing rule and silence settings are preserved.
|
|
38979
|
+
disabledRules:
|
|
38980
|
+
type: array
|
|
38981
|
+
maxItems: 1000
|
|
38982
|
+
x-omitempty: false
|
|
38983
|
+
description: Alert names disabled only for this cluster. An empty array clears all rule overrides; omission preserves them.
|
|
38984
|
+
items:
|
|
38985
|
+
type: string
|
|
38986
|
+
minLength: 1
|
|
38987
|
+
maxLength: 255
|
|
38988
|
+
silence:
|
|
38989
|
+
$ref: '#/components/schemas/alertClusterSilence'
|
|
38990
|
+
silenceActive:
|
|
38991
|
+
type: boolean
|
|
38992
|
+
readOnly: true
|
|
38993
|
+
description: Whether the configured silence window is active now, regardless of the alert master switch.
|
|
38994
|
+
URLCheck:
|
|
38995
|
+
type: object
|
|
38996
|
+
required:
|
|
38997
|
+
- url
|
|
38998
|
+
properties:
|
|
38999
|
+
url:
|
|
39000
|
+
type: string
|
|
39001
|
+
format: uri
|
|
39002
|
+
example: https://example.com
|
|
39003
|
+
isConnectable:
|
|
39004
|
+
type: boolean
|
|
39005
|
+
example: true
|
|
39006
|
+
default: false
|
|
39007
|
+
timeout:
|
|
39008
|
+
type: integer
|
|
39009
|
+
minimum: 1
|
|
39010
|
+
maximum: 30
|
|
39011
|
+
default: 5
|
|
39012
|
+
example: 5
|
|
39013
|
+
error:
|
|
39014
|
+
type: string
|
|
39015
|
+
example: null
|
|
39016
|
+
alertStatistic:
|
|
39017
|
+
type: object
|
|
39018
|
+
properties:
|
|
39019
|
+
total:
|
|
39020
|
+
type: integer
|
|
39021
|
+
critical:
|
|
39022
|
+
type: integer
|
|
39023
|
+
warning:
|
|
39024
|
+
type: integer
|
|
39025
|
+
info:
|
|
39026
|
+
type: integer
|
|
38918
39027
|
alertStatus:
|
|
38919
39028
|
enum:
|
|
38920
39029
|
- resolved
|
|
@@ -39303,6 +39412,21 @@ components:
|
|
|
39303
39412
|
type: string
|
|
39304
39413
|
architecture:
|
|
39305
39414
|
$ref: '#/components/schemas/componentVersionArchitecture'
|
|
39415
|
+
blockedUpgradeFrom:
|
|
39416
|
+
type: array
|
|
39417
|
+
description: Upgrades that must not be offered or accepted for this component, keyed by the service version the cluster currently runs. Use it when a target version is not a drop-in replacement for a source version, for example when the source image ships modules the target image no longer carries. Upgrades matching no rule stay untouched.
|
|
39418
|
+
items:
|
|
39419
|
+
type: object
|
|
39420
|
+
description: One upgrade restriction while the cluster runs a service version matching from, upgrading to a service version matching to is not allowed.
|
|
39421
|
+
required:
|
|
39422
|
+
- from
|
|
39423
|
+
properties:
|
|
39424
|
+
from:
|
|
39425
|
+
type: string
|
|
39426
|
+
description: Pattern of the service version the cluster currently runs. Supports exact version "7.4.7", version prefix "7.4", and comparisons ">=7.4.5", ">7.4.4", "<=7.4.7", "<7.4.8".
|
|
39427
|
+
to:
|
|
39428
|
+
type: string
|
|
39429
|
+
description: Pattern of the service version the upgrade is blocked to, with the same syntax as from. Omit to block every upgrade target, which makes from the end of the line for the component.
|
|
39306
39430
|
main:
|
|
39307
39431
|
description: Main component flag
|
|
39308
39432
|
type: boolean
|
|
@@ -39379,8 +39503,9 @@ components:
|
|
|
39379
39503
|
type: object
|
|
39380
39504
|
description: |
|
|
39381
39505
|
Template fields and operations shared by the frontend and backend.
|
|
39382
|
-
|
|
39383
|
-
|
|
39506
|
+
Requested components require creation template targets when instanceTemplate is declared.
|
|
39507
|
+
Declaring hscale or storageExpansion in ops requires explicit targets
|
|
39508
|
+
for every name. The hscale requirement applies to replica scaling only.
|
|
39384
39509
|
required:
|
|
39385
39510
|
- names
|
|
39386
39511
|
- ops
|
|
@@ -39393,8 +39518,8 @@ components:
|
|
|
39393
39518
|
type: string
|
|
39394
39519
|
description: |
|
|
39395
39520
|
Instance template names the frontend should render.
|
|
39396
|
-
Create
|
|
39397
|
-
|
|
39521
|
+
Create checks names against the chart. Replica hscale and volume expansion
|
|
39522
|
+
targets must include every name in this list.
|
|
39398
39523
|
ops:
|
|
39399
39524
|
type: array
|
|
39400
39525
|
minItems: 1
|
|
@@ -39402,8 +39527,8 @@ components:
|
|
|
39402
39527
|
$ref: '#/components/schemas/instanceTemplateOp'
|
|
39403
39528
|
description: |
|
|
39404
39529
|
Template operations: hscale, storageExpansion, and reserved vscale.
|
|
39405
|
-
|
|
39406
|
-
and
|
|
39530
|
+
Template hscale replicas must sum to the component target.
|
|
39531
|
+
Volume expansion targets must match component volume names and capacities.
|
|
39407
39532
|
attributes:
|
|
39408
39533
|
type: array
|
|
39409
39534
|
uniqueItems: true
|
|
@@ -133,6 +133,8 @@ models/ai-agent-tool-confirmation-status.ts
|
|
|
133
133
|
models/ai-agent-turn-action-list.ts
|
|
134
134
|
models/ai-agent-turn-action.ts
|
|
135
135
|
models/ai-agent-turn-status.ts
|
|
136
|
+
models/alert-cluster-silence-mode.ts
|
|
137
|
+
models/alert-cluster-silence.ts
|
|
136
138
|
models/alert-cluster.ts
|
|
137
139
|
models/alert-config.ts
|
|
138
140
|
models/alert-inhibit-list.ts
|
|
@@ -299,6 +301,7 @@ models/component-ops-option-dependent-custom-ops-params-inner.ts
|
|
|
299
301
|
models/component-ops-option-dependent-custom-ops.ts
|
|
300
302
|
models/component-ops-option-restore-env-inner.ts
|
|
301
303
|
models/component-ops-option.ts
|
|
304
|
+
models/component-option-version-blocked-upgrade-from-inner.ts
|
|
302
305
|
models/component-option-version-major-version-version-mapping-inner.ts
|
|
303
306
|
models/component-option-version-major-version.ts
|
|
304
307
|
models/component-option-version-minor-version.ts
|
|
@@ -25,6 +25,8 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
|
|
|
25
25
|
import type { APIErrorResponse } from '../models';
|
|
26
26
|
// @ts-ignore
|
|
27
27
|
import type { AlertCluster } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import type { AlertRuleList } from '../models';
|
|
28
30
|
/**
|
|
29
31
|
* ClusterAlertSwitchApi - axios parameter creator
|
|
30
32
|
* @export
|
|
@@ -33,7 +35,7 @@ export const ClusterAlertSwitchApiAxiosParamCreator = function (configuration?:
|
|
|
33
35
|
return {
|
|
34
36
|
/**
|
|
35
37
|
*
|
|
36
|
-
* @summary
|
|
38
|
+
* @summary Get cluster alert settings
|
|
37
39
|
* @param {string} orgName name of the Org
|
|
38
40
|
* @param {string} clusterName clusterName
|
|
39
41
|
* @param {*} [options] Override http request option.
|
|
@@ -78,7 +80,52 @@ export const ClusterAlertSwitchApiAxiosParamCreator = function (configuration?:
|
|
|
78
80
|
},
|
|
79
81
|
/**
|
|
80
82
|
*
|
|
81
|
-
* @summary
|
|
83
|
+
* @summary List applicable alert rules for a cluster
|
|
84
|
+
* @param {string} orgName name of the Org
|
|
85
|
+
* @param {string} clusterName clusterName
|
|
86
|
+
* @param {*} [options] Override http request option.
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
*/
|
|
89
|
+
listClusterAlertRules: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
90
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
91
|
+
assertParamExists('listClusterAlertRules', 'orgName', orgName)
|
|
92
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
93
|
+
assertParamExists('listClusterAlertRules', 'clusterName', clusterName)
|
|
94
|
+
const localVarPath = `/api/v1/organizations/{orgName}/alerts/cluster/{clusterName}/rules`
|
|
95
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
96
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
97
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
98
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
99
|
+
let baseOptions;
|
|
100
|
+
if (configuration) {
|
|
101
|
+
baseOptions = configuration.baseOptions;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
105
|
+
const localVarHeaderParameter = {} as any;
|
|
106
|
+
const localVarQueryParameter = {} as any;
|
|
107
|
+
|
|
108
|
+
// authentication BearerToken required
|
|
109
|
+
// http bearer authentication required
|
|
110
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
111
|
+
|
|
112
|
+
// authentication DigestAuth required
|
|
113
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
118
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
119
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
120
|
+
|
|
121
|
+
return {
|
|
122
|
+
url: toPathString(localVarUrlObj),
|
|
123
|
+
options: localVarRequestOptions,
|
|
124
|
+
};
|
|
125
|
+
},
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @summary Update cluster alert settings
|
|
82
129
|
* @param {string} orgName name of the Org
|
|
83
130
|
* @param {string} clusterName clusterName
|
|
84
131
|
* @param {AlertCluster} [alertCluster]
|
|
@@ -137,7 +184,7 @@ export const ClusterAlertSwitchApiFp = function(configuration?: Configuration) {
|
|
|
137
184
|
return {
|
|
138
185
|
/**
|
|
139
186
|
*
|
|
140
|
-
* @summary
|
|
187
|
+
* @summary Get cluster alert settings
|
|
141
188
|
* @param {string} orgName name of the Org
|
|
142
189
|
* @param {string} clusterName clusterName
|
|
143
190
|
* @param {*} [options] Override http request option.
|
|
@@ -151,7 +198,21 @@ export const ClusterAlertSwitchApiFp = function(configuration?: Configuration) {
|
|
|
151
198
|
},
|
|
152
199
|
/**
|
|
153
200
|
*
|
|
154
|
-
* @summary
|
|
201
|
+
* @summary List applicable alert rules for a cluster
|
|
202
|
+
* @param {string} orgName name of the Org
|
|
203
|
+
* @param {string} clusterName clusterName
|
|
204
|
+
* @param {*} [options] Override http request option.
|
|
205
|
+
* @throws {RequiredError}
|
|
206
|
+
*/
|
|
207
|
+
async listClusterAlertRules(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertRuleList>> {
|
|
208
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClusterAlertRules(orgName, clusterName, options);
|
|
209
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
210
|
+
const localVarOperationServerBasePath = operationServerMap['ClusterAlertSwitchApi.listClusterAlertRules']?.[localVarOperationServerIndex]?.url;
|
|
211
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
212
|
+
},
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* @summary Update cluster alert settings
|
|
155
216
|
* @param {string} orgName name of the Org
|
|
156
217
|
* @param {string} clusterName clusterName
|
|
157
218
|
* @param {AlertCluster} [alertCluster]
|
|
@@ -176,7 +237,7 @@ export const ClusterAlertSwitchApiFactory = function (configuration?: Configurat
|
|
|
176
237
|
return {
|
|
177
238
|
/**
|
|
178
239
|
*
|
|
179
|
-
* @summary
|
|
240
|
+
* @summary Get cluster alert settings
|
|
180
241
|
* @param {ClusterAlertSwitchApiGetClusterAlertDisabledRequest} requestParameters Request parameters.
|
|
181
242
|
* @param {*} [options] Override http request option.
|
|
182
243
|
* @throws {RequiredError}
|
|
@@ -186,7 +247,17 @@ export const ClusterAlertSwitchApiFactory = function (configuration?: Configurat
|
|
|
186
247
|
},
|
|
187
248
|
/**
|
|
188
249
|
*
|
|
189
|
-
* @summary
|
|
250
|
+
* @summary List applicable alert rules for a cluster
|
|
251
|
+
* @param {ClusterAlertSwitchApiListClusterAlertRulesRequest} requestParameters Request parameters.
|
|
252
|
+
* @param {*} [options] Override http request option.
|
|
253
|
+
* @throws {RequiredError}
|
|
254
|
+
*/
|
|
255
|
+
listClusterAlertRules(requestParameters: ClusterAlertSwitchApiListClusterAlertRulesRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleList> {
|
|
256
|
+
return localVarFp.listClusterAlertRules(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
257
|
+
},
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @summary Update cluster alert settings
|
|
190
261
|
* @param {ClusterAlertSwitchApiSetClusterAlertDisabledRequest} requestParameters Request parameters.
|
|
191
262
|
* @param {*} [options] Override http request option.
|
|
192
263
|
* @throws {RequiredError}
|
|
@@ -205,7 +276,7 @@ export const ClusterAlertSwitchApiFactory = function (configuration?: Configurat
|
|
|
205
276
|
export interface ClusterAlertSwitchApiInterface {
|
|
206
277
|
/**
|
|
207
278
|
*
|
|
208
|
-
* @summary
|
|
279
|
+
* @summary Get cluster alert settings
|
|
209
280
|
* @param {ClusterAlertSwitchApiGetClusterAlertDisabledRequest} requestParameters Request parameters.
|
|
210
281
|
* @param {*} [options] Override http request option.
|
|
211
282
|
* @throws {RequiredError}
|
|
@@ -215,7 +286,17 @@ export interface ClusterAlertSwitchApiInterface {
|
|
|
215
286
|
|
|
216
287
|
/**
|
|
217
288
|
*
|
|
218
|
-
* @summary
|
|
289
|
+
* @summary List applicable alert rules for a cluster
|
|
290
|
+
* @param {ClusterAlertSwitchApiListClusterAlertRulesRequest} requestParameters Request parameters.
|
|
291
|
+
* @param {*} [options] Override http request option.
|
|
292
|
+
* @throws {RequiredError}
|
|
293
|
+
* @memberof ClusterAlertSwitchApiInterface
|
|
294
|
+
*/
|
|
295
|
+
listClusterAlertRules(requestParameters: ClusterAlertSwitchApiListClusterAlertRulesRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleList>;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @summary Update cluster alert settings
|
|
219
300
|
* @param {ClusterAlertSwitchApiSetClusterAlertDisabledRequest} requestParameters Request parameters.
|
|
220
301
|
* @param {*} [options] Override http request option.
|
|
221
302
|
* @throws {RequiredError}
|
|
@@ -246,6 +327,27 @@ export interface ClusterAlertSwitchApiGetClusterAlertDisabledRequest {
|
|
|
246
327
|
readonly clusterName: string
|
|
247
328
|
}
|
|
248
329
|
|
|
330
|
+
/**
|
|
331
|
+
* Request parameters for listClusterAlertRules operation in ClusterAlertSwitchApi.
|
|
332
|
+
* @export
|
|
333
|
+
* @interface ClusterAlertSwitchApiListClusterAlertRulesRequest
|
|
334
|
+
*/
|
|
335
|
+
export interface ClusterAlertSwitchApiListClusterAlertRulesRequest {
|
|
336
|
+
/**
|
|
337
|
+
* name of the Org
|
|
338
|
+
* @type {string}
|
|
339
|
+
* @memberof ClusterAlertSwitchApiListClusterAlertRules
|
|
340
|
+
*/
|
|
341
|
+
readonly orgName: string
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* clusterName
|
|
345
|
+
* @type {string}
|
|
346
|
+
* @memberof ClusterAlertSwitchApiListClusterAlertRules
|
|
347
|
+
*/
|
|
348
|
+
readonly clusterName: string
|
|
349
|
+
}
|
|
350
|
+
|
|
249
351
|
/**
|
|
250
352
|
* Request parameters for setClusterAlertDisabled operation in ClusterAlertSwitchApi.
|
|
251
353
|
* @export
|
|
@@ -283,7 +385,7 @@ export interface ClusterAlertSwitchApiSetClusterAlertDisabledRequest {
|
|
|
283
385
|
export class ClusterAlertSwitchApi extends BaseAPI implements ClusterAlertSwitchApiInterface {
|
|
284
386
|
/**
|
|
285
387
|
*
|
|
286
|
-
* @summary
|
|
388
|
+
* @summary Get cluster alert settings
|
|
287
389
|
* @param {ClusterAlertSwitchApiGetClusterAlertDisabledRequest} requestParameters Request parameters.
|
|
288
390
|
* @param {*} [options] Override http request option.
|
|
289
391
|
* @throws {RequiredError}
|
|
@@ -295,7 +397,19 @@ export class ClusterAlertSwitchApi extends BaseAPI implements ClusterAlertSwitch
|
|
|
295
397
|
|
|
296
398
|
/**
|
|
297
399
|
*
|
|
298
|
-
* @summary
|
|
400
|
+
* @summary List applicable alert rules for a cluster
|
|
401
|
+
* @param {ClusterAlertSwitchApiListClusterAlertRulesRequest} requestParameters Request parameters.
|
|
402
|
+
* @param {*} [options] Override http request option.
|
|
403
|
+
* @throws {RequiredError}
|
|
404
|
+
* @memberof ClusterAlertSwitchApi
|
|
405
|
+
*/
|
|
406
|
+
public listClusterAlertRules(requestParameters: ClusterAlertSwitchApiListClusterAlertRulesRequest, options?: RawAxiosRequestConfig) {
|
|
407
|
+
return ClusterAlertSwitchApiFp(this.configuration).listClusterAlertRules(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
*
|
|
412
|
+
* @summary Update cluster alert settings
|
|
299
413
|
* @param {ClusterAlertSwitchApiSetClusterAlertDisabledRequest} requestParameters Request parameters.
|
|
300
414
|
* @param {*} [options] Override http request option.
|
|
301
415
|
* @throws {RequiredError}
|