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
|
@@ -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 = `/admin/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}
|
|
@@ -695,11 +695,12 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
|
|
|
695
695
|
* @param {string} [componentName]
|
|
696
696
|
* @param {string} [instanceName]
|
|
697
697
|
* @param {string} [query]
|
|
698
|
+
* @param {string} [filename]
|
|
698
699
|
* @param {SortType} [sortType]
|
|
699
700
|
* @param {*} [options] Override http request option.
|
|
700
701
|
* @throws {RequiredError}
|
|
701
702
|
*/
|
|
702
|
-
queryAuditLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, limit?: string, componentName?: string, instanceName?: string, query?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
703
|
+
queryAuditLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, limit?: string, componentName?: string, instanceName?: string, query?: string, filename?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
703
704
|
// verify required parameter 'orgName' is not null or undefined
|
|
704
705
|
assertParamExists('queryAuditLogs', 'orgName', orgName)
|
|
705
706
|
// verify required parameter 'clusterName' is not null or undefined
|
|
@@ -753,6 +754,10 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
|
|
|
753
754
|
localVarQueryParameter['query'] = query;
|
|
754
755
|
}
|
|
755
756
|
|
|
757
|
+
if (filename !== undefined) {
|
|
758
|
+
localVarQueryParameter['filename'] = filename;
|
|
759
|
+
}
|
|
760
|
+
|
|
756
761
|
if (sortType !== undefined) {
|
|
757
762
|
localVarQueryParameter['sortType'] = sortType;
|
|
758
763
|
}
|
|
@@ -1814,12 +1819,13 @@ export const ClusterLogApiFp = function(configuration?: Configuration) {
|
|
|
1814
1819
|
* @param {string} [componentName]
|
|
1815
1820
|
* @param {string} [instanceName]
|
|
1816
1821
|
* @param {string} [query]
|
|
1822
|
+
* @param {string} [filename]
|
|
1817
1823
|
* @param {SortType} [sortType]
|
|
1818
1824
|
* @param {*} [options] Override http request option.
|
|
1819
1825
|
* @throws {RequiredError}
|
|
1820
1826
|
*/
|
|
1821
|
-
async queryAuditLogs(orgName: string, clusterName: string, startTime: string, endTime: string, limit?: string, componentName?: string, instanceName?: string, query?: string, sortType?: SortType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterExecutionLog>> {
|
|
1822
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.queryAuditLogs(orgName, clusterName, startTime, endTime, limit, componentName, instanceName, query, sortType, options);
|
|
1827
|
+
async queryAuditLogs(orgName: string, clusterName: string, startTime: string, endTime: string, limit?: string, componentName?: string, instanceName?: string, query?: string, filename?: string, sortType?: SortType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterExecutionLog>> {
|
|
1828
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queryAuditLogs(orgName, clusterName, startTime, endTime, limit, componentName, instanceName, query, filename, sortType, options);
|
|
1823
1829
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1824
1830
|
const localVarOperationServerBasePath = operationServerMap['ClusterLogApi.queryAuditLogs']?.[localVarOperationServerIndex]?.url;
|
|
1825
1831
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2096,7 +2102,7 @@ export const ClusterLogApiFactory = function (configuration?: Configuration, bas
|
|
|
2096
2102
|
* @throws {RequiredError}
|
|
2097
2103
|
*/
|
|
2098
2104
|
queryAuditLogs(requestParameters: ClusterLogApiQueryAuditLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLog> {
|
|
2099
|
-
return localVarFp.queryAuditLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.limit, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.sortType, options).then((request) => request(axios, basePath));
|
|
2105
|
+
return localVarFp.queryAuditLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.limit, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.filename, requestParameters.sortType, options).then((request) => request(axios, basePath));
|
|
2100
2106
|
},
|
|
2101
2107
|
/**
|
|
2102
2108
|
* Query error logs of a cluster
|
|
@@ -3029,6 +3035,13 @@ export interface ClusterLogApiQueryAuditLogsRequest {
|
|
|
3029
3035
|
*/
|
|
3030
3036
|
readonly query?: string
|
|
3031
3037
|
|
|
3038
|
+
/**
|
|
3039
|
+
*
|
|
3040
|
+
* @type {string}
|
|
3041
|
+
* @memberof ClusterLogApiQueryAuditLogs
|
|
3042
|
+
*/
|
|
3043
|
+
readonly filename?: string
|
|
3044
|
+
|
|
3032
3045
|
/**
|
|
3033
3046
|
*
|
|
3034
3047
|
* @type {SortType}
|
|
@@ -4002,7 +4015,7 @@ export class ClusterLogApi extends BaseAPI implements ClusterLogApiInterface {
|
|
|
4002
4015
|
* @memberof ClusterLogApi
|
|
4003
4016
|
*/
|
|
4004
4017
|
public queryAuditLogs(requestParameters: ClusterLogApiQueryAuditLogsRequest, options?: RawAxiosRequestConfig) {
|
|
4005
|
-
return ClusterLogApiFp(this.configuration).queryAuditLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.limit, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.sortType, options).then((request) => request(this.axios, this.basePath));
|
|
4018
|
+
return ClusterLogApiFp(this.configuration).queryAuditLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.limit, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.filename, requestParameters.sortType, options).then((request) => request(this.axios, this.basePath));
|
|
4006
4019
|
}
|
|
4007
4020
|
|
|
4008
4021
|
/**
|
|
@@ -209,11 +209,12 @@ export const ClusterLokiLogApiAxiosParamCreator = function (configuration?: Conf
|
|
|
209
209
|
* @param {string} [componentName]
|
|
210
210
|
* @param {string} [instanceName]
|
|
211
211
|
* @param {string} [query]
|
|
212
|
+
* @param {string} [filename]
|
|
212
213
|
* @param {SortType} [sortType]
|
|
213
214
|
* @param {*} [options] Override http request option.
|
|
214
215
|
* @throws {RequiredError}
|
|
215
216
|
*/
|
|
216
|
-
queryLokiAuditLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, limit?: string, componentName?: string, instanceName?: string, query?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
217
|
+
queryLokiAuditLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, limit?: string, componentName?: string, instanceName?: string, query?: string, filename?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
217
218
|
// verify required parameter 'orgName' is not null or undefined
|
|
218
219
|
assertParamExists('queryLokiAuditLogs', 'orgName', orgName)
|
|
219
220
|
// verify required parameter 'clusterName' is not null or undefined
|
|
@@ -267,6 +268,10 @@ export const ClusterLokiLogApiAxiosParamCreator = function (configuration?: Conf
|
|
|
267
268
|
localVarQueryParameter['query'] = query;
|
|
268
269
|
}
|
|
269
270
|
|
|
271
|
+
if (filename !== undefined) {
|
|
272
|
+
localVarQueryParameter['filename'] = filename;
|
|
273
|
+
}
|
|
274
|
+
|
|
270
275
|
if (sortType !== undefined) {
|
|
271
276
|
localVarQueryParameter['sortType'] = sortType;
|
|
272
277
|
}
|
|
@@ -690,12 +695,13 @@ export const ClusterLokiLogApiFp = function(configuration?: Configuration) {
|
|
|
690
695
|
* @param {string} [componentName]
|
|
691
696
|
* @param {string} [instanceName]
|
|
692
697
|
* @param {string} [query]
|
|
698
|
+
* @param {string} [filename]
|
|
693
699
|
* @param {SortType} [sortType]
|
|
694
700
|
* @param {*} [options] Override http request option.
|
|
695
701
|
* @throws {RequiredError}
|
|
696
702
|
*/
|
|
697
|
-
async queryLokiAuditLogs(orgName: string, clusterName: string, startTime: string, endTime: string, limit?: string, componentName?: string, instanceName?: string, query?: string, sortType?: SortType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterExecutionLog>> {
|
|
698
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiAuditLogs(orgName, clusterName, startTime, endTime, limit, componentName, instanceName, query, sortType, options);
|
|
703
|
+
async queryLokiAuditLogs(orgName: string, clusterName: string, startTime: string, endTime: string, limit?: string, componentName?: string, instanceName?: string, query?: string, filename?: string, sortType?: SortType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterExecutionLog>> {
|
|
704
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiAuditLogs(orgName, clusterName, startTime, endTime, limit, componentName, instanceName, query, filename, sortType, options);
|
|
699
705
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
700
706
|
const localVarOperationServerBasePath = operationServerMap['ClusterLokiLogApi.queryLokiAuditLogs']?.[localVarOperationServerIndex]?.url;
|
|
701
707
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -824,7 +830,7 @@ export const ClusterLokiLogApiFactory = function (configuration?: Configuration,
|
|
|
824
830
|
* @throws {RequiredError}
|
|
825
831
|
*/
|
|
826
832
|
queryLokiAuditLogs(requestParameters: ClusterLokiLogApiQueryLokiAuditLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLog> {
|
|
827
|
-
return localVarFp.queryLokiAuditLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.limit, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.sortType, options).then((request) => request(axios, basePath));
|
|
833
|
+
return localVarFp.queryLokiAuditLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.limit, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.filename, requestParameters.sortType, options).then((request) => request(axios, basePath));
|
|
828
834
|
},
|
|
829
835
|
/**
|
|
830
836
|
* Query error logs through the Loki compatibility API.
|
|
@@ -1142,6 +1148,13 @@ export interface ClusterLokiLogApiQueryLokiAuditLogsRequest {
|
|
|
1142
1148
|
*/
|
|
1143
1149
|
readonly query?: string
|
|
1144
1150
|
|
|
1151
|
+
/**
|
|
1152
|
+
*
|
|
1153
|
+
* @type {string}
|
|
1154
|
+
* @memberof ClusterLokiLogApiQueryLokiAuditLogs
|
|
1155
|
+
*/
|
|
1156
|
+
readonly filename?: string
|
|
1157
|
+
|
|
1145
1158
|
/**
|
|
1146
1159
|
*
|
|
1147
1160
|
* @type {SortType}
|
|
@@ -1484,7 +1497,7 @@ export class ClusterLokiLogApi extends BaseAPI implements ClusterLokiLogApiInter
|
|
|
1484
1497
|
* @memberof ClusterLokiLogApi
|
|
1485
1498
|
*/
|
|
1486
1499
|
public queryLokiAuditLogs(requestParameters: ClusterLokiLogApiQueryLokiAuditLogsRequest, options?: RawAxiosRequestConfig) {
|
|
1487
|
-
return ClusterLokiLogApiFp(this.configuration).queryLokiAuditLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.limit, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.sortType, options).then((request) => request(this.axios, this.basePath));
|
|
1500
|
+
return ClusterLokiLogApiFp(this.configuration).queryLokiAuditLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.limit, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.filename, requestParameters.sortType, options).then((request) => request(this.axios, this.basePath));
|
|
1488
1501
|
}
|
|
1489
1502
|
|
|
1490
1503
|
/**
|