kb-cloud-client-typescript 2.4.0-alpha.79 → 2.4.0-alpha.80
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 +10 -2
- package/dist/adminapi/apis/cluster-log-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-log-api.js +10 -5
- package/dist/adminapi/apis/cluster-log-api.js.map +1 -1
- package/dist/adminapi/apis/cluster-loki-log-api.d.ts +10 -2
- package/dist/adminapi/apis/cluster-loki-log-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-loki-log-api.js +10 -5
- package/dist/adminapi/apis/cluster-loki-log-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +94 -14
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +102 -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 +10 -2
- package/dist/openapi/apis/cluster-log-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-log-api.js +10 -5
- package/dist/openapi/apis/cluster-log-api.js.map +1 -1
- package/dist/openapi/apis/cluster-loki-log-api.d.ts +10 -2
- package/dist/openapi/apis/cluster-loki-log-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-loki-log-api.js +10 -5
- package/dist/openapi/apis/cluster-loki-log-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +94 -14
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +102 -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 +18 -5
- package/src/adminapi/apis/cluster-loki-log-api.ts +18 -5
- package/src/adminapi/apis/shared-api.ts +160 -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 +172 -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 +18 -5
- package/src/openapi/apis/cluster-loki-log-api.ts +18 -5
- package/src/openapi/apis/shared-api.ts +160 -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 +134 -14
|
@@ -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
|
@@ -8763,6 +8763,10 @@ paths:
|
|
|
8763
8763
|
name: query
|
|
8764
8764
|
schema:
|
|
8765
8765
|
type: string
|
|
8766
|
+
- in: query
|
|
8767
|
+
name: filename
|
|
8768
|
+
schema:
|
|
8769
|
+
type: string
|
|
8766
8770
|
- in: query
|
|
8767
8771
|
name: sortType
|
|
8768
8772
|
schema:
|
|
@@ -9134,6 +9138,7 @@ paths:
|
|
|
9134
9138
|
- $ref: '#/components/parameters/componentName'
|
|
9135
9139
|
- $ref: '#/components/parameters/instanceName'
|
|
9136
9140
|
- $ref: '#/components/parameters/query'
|
|
9141
|
+
- $ref: '#/components/parameters/filename'
|
|
9137
9142
|
- $ref: '#/components/parameters/sortType'
|
|
9138
9143
|
responses:
|
|
9139
9144
|
'200':
|
|
@@ -13810,13 +13815,46 @@ paths:
|
|
|
13810
13815
|
'401':
|
|
13811
13816
|
$ref: '#/components/responses/401'
|
|
13812
13817
|
x-codegen-request-body-name: body
|
|
13818
|
+
/admin/v1/organizations/{orgName}/alerts/cluster/{clusterName}/rules:
|
|
13819
|
+
get:
|
|
13820
|
+
tags:
|
|
13821
|
+
- clusterAlertSwitch
|
|
13822
|
+
- shared
|
|
13823
|
+
operationId: listClusterAlertRules
|
|
13824
|
+
summary: List applicable alert rules for a cluster
|
|
13825
|
+
parameters:
|
|
13826
|
+
- name: orgName
|
|
13827
|
+
in: path
|
|
13828
|
+
description: name of the Org
|
|
13829
|
+
required: true
|
|
13830
|
+
schema:
|
|
13831
|
+
type: string
|
|
13832
|
+
- name: clusterName
|
|
13833
|
+
in: path
|
|
13834
|
+
description: clusterName
|
|
13835
|
+
required: true
|
|
13836
|
+
schema:
|
|
13837
|
+
type: string
|
|
13838
|
+
responses:
|
|
13839
|
+
'200':
|
|
13840
|
+
description: A successful response.
|
|
13841
|
+
content:
|
|
13842
|
+
application/json:
|
|
13843
|
+
schema:
|
|
13844
|
+
$ref: '#/components/schemas/alertRuleList'
|
|
13845
|
+
'401':
|
|
13846
|
+
$ref: '#/components/responses/401'
|
|
13847
|
+
'403':
|
|
13848
|
+
$ref: '#/components/responses/403'
|
|
13849
|
+
'404':
|
|
13850
|
+
$ref: '#/components/responses/404'
|
|
13813
13851
|
/admin/v1/organizations/{orgName}/alerts/cluster/{clusterName}:
|
|
13814
13852
|
get:
|
|
13815
13853
|
tags:
|
|
13816
13854
|
- clusterAlertSwitch
|
|
13817
13855
|
- shared
|
|
13818
13856
|
operationId: getClusterAlertDisabled
|
|
13819
|
-
summary:
|
|
13857
|
+
summary: Get cluster alert settings
|
|
13820
13858
|
parameters:
|
|
13821
13859
|
- name: orgName
|
|
13822
13860
|
in: path
|
|
@@ -13848,7 +13886,7 @@ paths:
|
|
|
13848
13886
|
- clusterAlertSwitch
|
|
13849
13887
|
- shared
|
|
13850
13888
|
operationId: setClusterAlertDisabled
|
|
13851
|
-
summary:
|
|
13889
|
+
summary: Update cluster alert settings
|
|
13852
13890
|
parameters:
|
|
13853
13891
|
- name: orgName
|
|
13854
13892
|
in: path
|
|
@@ -30165,11 +30203,11 @@ components:
|
|
|
30165
30203
|
title: Replicas
|
|
30166
30204
|
type: integer
|
|
30167
30205
|
x-nullable: true
|
|
30168
|
-
description: Omit to use the cluster chart default. Set zero to disable the component when its resource constraints allow zero replicas.
|
|
30206
|
+
description: Omit to use the cluster chart default. Set zero to disable the component when its resource constraints allow zero replicas. When instanceTemplates is provided, this must equal the sum of all template replica counts.
|
|
30169
30207
|
instanceTemplates:
|
|
30170
30208
|
type: array
|
|
30171
30209
|
minItems: 1
|
|
30172
|
-
description: Per-template replicas and optional overlays (env, annotations, labels). Required when the
|
|
30210
|
+
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.
|
|
30173
30211
|
items:
|
|
30174
30212
|
$ref: '#/components/schemas/instanceTemplateCreate'
|
|
30175
30213
|
skipResourceConstraints:
|
|
@@ -31562,7 +31600,7 @@ components:
|
|
|
31562
31600
|
minimum: 0
|
|
31563
31601
|
description: Target replica count for this instance template.
|
|
31564
31602
|
opsHScale:
|
|
31565
|
-
description: OpsHScale is the payload to horizontally scale a KubeBlocks cluster. Specify replicas or shards.
|
|
31603
|
+
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.
|
|
31566
31604
|
required:
|
|
31567
31605
|
- component
|
|
31568
31606
|
properties:
|
|
@@ -31581,7 +31619,7 @@ components:
|
|
|
31581
31619
|
instanceTemplates:
|
|
31582
31620
|
type: array
|
|
31583
31621
|
minItems: 1
|
|
31584
|
-
description:
|
|
31622
|
+
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.
|
|
31585
31623
|
items:
|
|
31586
31624
|
$ref: '#/components/schemas/instanceTemplateReplicas'
|
|
31587
31625
|
onlineInstancesToOffline:
|
|
@@ -38870,46 +38908,6 @@ components:
|
|
|
38870
38908
|
required:
|
|
38871
38909
|
- items
|
|
38872
38910
|
type: object
|
|
38873
|
-
alertCluster:
|
|
38874
|
-
required:
|
|
38875
|
-
- disabled
|
|
38876
|
-
type: object
|
|
38877
|
-
properties:
|
|
38878
|
-
disabled:
|
|
38879
|
-
type: boolean
|
|
38880
|
-
URLCheck:
|
|
38881
|
-
type: object
|
|
38882
|
-
required:
|
|
38883
|
-
- url
|
|
38884
|
-
properties:
|
|
38885
|
-
url:
|
|
38886
|
-
type: string
|
|
38887
|
-
format: uri
|
|
38888
|
-
example: https://example.com
|
|
38889
|
-
isConnectable:
|
|
38890
|
-
type: boolean
|
|
38891
|
-
example: true
|
|
38892
|
-
default: false
|
|
38893
|
-
timeout:
|
|
38894
|
-
type: integer
|
|
38895
|
-
minimum: 1
|
|
38896
|
-
maximum: 30
|
|
38897
|
-
default: 5
|
|
38898
|
-
example: 5
|
|
38899
|
-
error:
|
|
38900
|
-
type: string
|
|
38901
|
-
example: null
|
|
38902
|
-
alertStatistic:
|
|
38903
|
-
type: object
|
|
38904
|
-
properties:
|
|
38905
|
-
total:
|
|
38906
|
-
type: integer
|
|
38907
|
-
critical:
|
|
38908
|
-
type: integer
|
|
38909
|
-
warning:
|
|
38910
|
-
type: integer
|
|
38911
|
-
info:
|
|
38912
|
-
type: integer
|
|
38913
38911
|
alertSeverity:
|
|
38914
38912
|
enum:
|
|
38915
38913
|
- critical
|
|
@@ -38973,6 +38971,112 @@ components:
|
|
|
38973
38971
|
pageResult:
|
|
38974
38972
|
$ref: '#/components/schemas/pageResult'
|
|
38975
38973
|
description: AlertRuleList is a list of alert rules
|
|
38974
|
+
alertClusterSilenceMode:
|
|
38975
|
+
type: string
|
|
38976
|
+
enum:
|
|
38977
|
+
- once
|
|
38978
|
+
- weekly
|
|
38979
|
+
description: Required when enabled. Once uses absolute timestamps; weekly uses weekdays and local times in timeZone.
|
|
38980
|
+
alertClusterSilence:
|
|
38981
|
+
type: object
|
|
38982
|
+
required:
|
|
38983
|
+
- enabled
|
|
38984
|
+
description: Pause notifications while continuing to record alerts. Set enabled to false to cancel. Time windows include their start and exclude their end.
|
|
38985
|
+
properties:
|
|
38986
|
+
enabled:
|
|
38987
|
+
type: boolean
|
|
38988
|
+
rules:
|
|
38989
|
+
type: array
|
|
38990
|
+
maxItems: 1000
|
|
38991
|
+
description: Alert names to silence. Empty or omitted means all cluster alerts.
|
|
38992
|
+
items:
|
|
38993
|
+
type: string
|
|
38994
|
+
minLength: 1
|
|
38995
|
+
maxLength: 255
|
|
38996
|
+
mode:
|
|
38997
|
+
$ref: '#/components/schemas/alertClusterSilenceMode'
|
|
38998
|
+
startsAt:
|
|
38999
|
+
type: string
|
|
39000
|
+
format: date-time
|
|
39001
|
+
description: Required for once. Absolute start of the silence window.
|
|
39002
|
+
endsAt:
|
|
39003
|
+
type: string
|
|
39004
|
+
format: date-time
|
|
39005
|
+
description: Required for once. Must be later than startsAt.
|
|
39006
|
+
weekdays:
|
|
39007
|
+
type: array
|
|
39008
|
+
maxItems: 7
|
|
39009
|
+
description: Required for weekly. Sunday is 0. Overnight windows belong to the weekday on which they start.
|
|
39010
|
+
items:
|
|
39011
|
+
type: integer
|
|
39012
|
+
minimum: 0
|
|
39013
|
+
maximum: 6
|
|
39014
|
+
startTime:
|
|
39015
|
+
type: string
|
|
39016
|
+
description: Required for weekly, in HH:mm format.
|
|
39017
|
+
endTime:
|
|
39018
|
+
type: string
|
|
39019
|
+
description: Required for weekly, in HH:mm format. Earlier than startTime means the following day; equal times are invalid.
|
|
39020
|
+
timeZone:
|
|
39021
|
+
type: string
|
|
39022
|
+
maxLength: 100
|
|
39023
|
+
description: Required for weekly. IANA timezone, e.g. Asia/Shanghai or UTC.
|
|
39024
|
+
alertCluster:
|
|
39025
|
+
type: object
|
|
39026
|
+
description: Cluster-scoped alert settings. PATCH updates only supplied fields; settings apply to both tenant and administrator notifications.
|
|
39027
|
+
properties:
|
|
39028
|
+
disabled:
|
|
39029
|
+
type: boolean
|
|
39030
|
+
x-nullable: true
|
|
39031
|
+
description: Disable all cluster alerts. Existing rule and silence settings are preserved.
|
|
39032
|
+
disabledRules:
|
|
39033
|
+
type: array
|
|
39034
|
+
maxItems: 1000
|
|
39035
|
+
x-omitempty: false
|
|
39036
|
+
description: Alert names disabled only for this cluster. An empty array clears all rule overrides; omission preserves them.
|
|
39037
|
+
items:
|
|
39038
|
+
type: string
|
|
39039
|
+
minLength: 1
|
|
39040
|
+
maxLength: 255
|
|
39041
|
+
silence:
|
|
39042
|
+
$ref: '#/components/schemas/alertClusterSilence'
|
|
39043
|
+
silenceActive:
|
|
39044
|
+
type: boolean
|
|
39045
|
+
readOnly: true
|
|
39046
|
+
description: Whether the configured silence window is active now, regardless of the alert master switch.
|
|
39047
|
+
URLCheck:
|
|
39048
|
+
type: object
|
|
39049
|
+
required:
|
|
39050
|
+
- url
|
|
39051
|
+
properties:
|
|
39052
|
+
url:
|
|
39053
|
+
type: string
|
|
39054
|
+
format: uri
|
|
39055
|
+
example: https://example.com
|
|
39056
|
+
isConnectable:
|
|
39057
|
+
type: boolean
|
|
39058
|
+
example: true
|
|
39059
|
+
default: false
|
|
39060
|
+
timeout:
|
|
39061
|
+
type: integer
|
|
39062
|
+
minimum: 1
|
|
39063
|
+
maximum: 30
|
|
39064
|
+
default: 5
|
|
39065
|
+
example: 5
|
|
39066
|
+
error:
|
|
39067
|
+
type: string
|
|
39068
|
+
example: null
|
|
39069
|
+
alertStatistic:
|
|
39070
|
+
type: object
|
|
39071
|
+
properties:
|
|
39072
|
+
total:
|
|
39073
|
+
type: integer
|
|
39074
|
+
critical:
|
|
39075
|
+
type: integer
|
|
39076
|
+
warning:
|
|
39077
|
+
type: integer
|
|
39078
|
+
info:
|
|
39079
|
+
type: integer
|
|
38976
39080
|
alertStatus:
|
|
38977
39081
|
enum:
|
|
38978
39082
|
- resolved
|
|
@@ -39361,6 +39465,21 @@ components:
|
|
|
39361
39465
|
type: string
|
|
39362
39466
|
architecture:
|
|
39363
39467
|
$ref: '#/components/schemas/componentVersionArchitecture'
|
|
39468
|
+
blockedUpgradeFrom:
|
|
39469
|
+
type: array
|
|
39470
|
+
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.
|
|
39471
|
+
items:
|
|
39472
|
+
type: object
|
|
39473
|
+
description: One upgrade restriction while the cluster runs a service version matching from, upgrading to a service version matching to is not allowed.
|
|
39474
|
+
required:
|
|
39475
|
+
- from
|
|
39476
|
+
properties:
|
|
39477
|
+
from:
|
|
39478
|
+
type: string
|
|
39479
|
+
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".
|
|
39480
|
+
to:
|
|
39481
|
+
type: string
|
|
39482
|
+
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.
|
|
39364
39483
|
main:
|
|
39365
39484
|
description: Main component flag
|
|
39366
39485
|
type: boolean
|
|
@@ -39437,8 +39556,9 @@ components:
|
|
|
39437
39556
|
type: object
|
|
39438
39557
|
description: |
|
|
39439
39558
|
Template fields and operations shared by the frontend and backend.
|
|
39440
|
-
|
|
39441
|
-
|
|
39559
|
+
Requested components require creation template targets when instanceTemplate is declared.
|
|
39560
|
+
Declaring hscale or storageExpansion in ops requires explicit targets
|
|
39561
|
+
for every name. The hscale requirement applies to replica scaling only.
|
|
39442
39562
|
required:
|
|
39443
39563
|
- names
|
|
39444
39564
|
- ops
|
|
@@ -39451,8 +39571,8 @@ components:
|
|
|
39451
39571
|
type: string
|
|
39452
39572
|
description: |
|
|
39453
39573
|
Instance template names the frontend should render.
|
|
39454
|
-
Create
|
|
39455
|
-
|
|
39574
|
+
Create checks names against the chart. Replica hscale and volume expansion
|
|
39575
|
+
targets must include every name in this list.
|
|
39456
39576
|
ops:
|
|
39457
39577
|
type: array
|
|
39458
39578
|
minItems: 1
|
|
@@ -39460,8 +39580,8 @@ components:
|
|
|
39460
39580
|
$ref: '#/components/schemas/instanceTemplateOp'
|
|
39461
39581
|
description: |
|
|
39462
39582
|
Template operations: hscale, storageExpansion, and reserved vscale.
|
|
39463
|
-
|
|
39464
|
-
and
|
|
39583
|
+
Template hscale replicas must sum to the component target.
|
|
39584
|
+
Volume expansion targets must match component volume names and capacities.
|
|
39465
39585
|
attributes:
|
|
39466
39586
|
type: array
|
|
39467
39587
|
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
|
|
@@ -298,6 +300,7 @@ models/component-ops-option-dependent-custom-ops-params-inner.ts
|
|
|
298
300
|
models/component-ops-option-dependent-custom-ops.ts
|
|
299
301
|
models/component-ops-option-restore-env-inner.ts
|
|
300
302
|
models/component-ops-option.ts
|
|
303
|
+
models/component-option-version-blocked-upgrade-from-inner.ts
|
|
301
304
|
models/component-option-version-major-version-version-mapping-inner.ts
|
|
302
305
|
models/component-option-version-major-version.ts
|
|
303
306
|
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}
|