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
|
@@ -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}
|
|
@@ -694,11 +694,13 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
|
|
|
694
694
|
* @param {string} [limit]
|
|
695
695
|
* @param {string} [componentName]
|
|
696
696
|
* @param {string} [instanceName]
|
|
697
|
+
* @param {string} [query]
|
|
698
|
+
* @param {string} [filename]
|
|
697
699
|
* @param {SortType} [sortType]
|
|
698
700
|
* @param {*} [options] Override http request option.
|
|
699
701
|
* @throws {RequiredError}
|
|
700
702
|
*/
|
|
701
|
-
queryAuditLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, limit?: string, componentName?: string, instanceName?: 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> => {
|
|
702
704
|
// verify required parameter 'orgName' is not null or undefined
|
|
703
705
|
assertParamExists('queryAuditLogs', 'orgName', orgName)
|
|
704
706
|
// verify required parameter 'clusterName' is not null or undefined
|
|
@@ -748,6 +750,14 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
|
|
|
748
750
|
localVarQueryParameter['instanceName'] = instanceName;
|
|
749
751
|
}
|
|
750
752
|
|
|
753
|
+
if (query !== undefined) {
|
|
754
|
+
localVarQueryParameter['query'] = query;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
if (filename !== undefined) {
|
|
758
|
+
localVarQueryParameter['filename'] = filename;
|
|
759
|
+
}
|
|
760
|
+
|
|
751
761
|
if (sortType !== undefined) {
|
|
752
762
|
localVarQueryParameter['sortType'] = sortType;
|
|
753
763
|
}
|
|
@@ -1808,12 +1818,14 @@ export const ClusterLogApiFp = function(configuration?: Configuration) {
|
|
|
1808
1818
|
* @param {string} [limit]
|
|
1809
1819
|
* @param {string} [componentName]
|
|
1810
1820
|
* @param {string} [instanceName]
|
|
1821
|
+
* @param {string} [query]
|
|
1822
|
+
* @param {string} [filename]
|
|
1811
1823
|
* @param {SortType} [sortType]
|
|
1812
1824
|
* @param {*} [options] Override http request option.
|
|
1813
1825
|
* @throws {RequiredError}
|
|
1814
1826
|
*/
|
|
1815
|
-
async queryAuditLogs(orgName: string, clusterName: string, startTime: string, endTime: string, limit?: string, componentName?: string, instanceName?: string, sortType?: SortType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterExecutionLog>> {
|
|
1816
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.queryAuditLogs(orgName, clusterName, startTime, endTime, limit, componentName, instanceName, 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);
|
|
1817
1829
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1818
1830
|
const localVarOperationServerBasePath = operationServerMap['ClusterLogApi.queryAuditLogs']?.[localVarOperationServerIndex]?.url;
|
|
1819
1831
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2090,7 +2102,7 @@ export const ClusterLogApiFactory = function (configuration?: Configuration, bas
|
|
|
2090
2102
|
* @throws {RequiredError}
|
|
2091
2103
|
*/
|
|
2092
2104
|
queryAuditLogs(requestParameters: ClusterLogApiQueryAuditLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLog> {
|
|
2093
|
-
return localVarFp.queryAuditLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.limit, requestParameters.componentName, requestParameters.instanceName, 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));
|
|
2094
2106
|
},
|
|
2095
2107
|
/**
|
|
2096
2108
|
* Query error logs of a cluster
|
|
@@ -3016,6 +3028,20 @@ export interface ClusterLogApiQueryAuditLogsRequest {
|
|
|
3016
3028
|
*/
|
|
3017
3029
|
readonly instanceName?: string
|
|
3018
3030
|
|
|
3031
|
+
/**
|
|
3032
|
+
*
|
|
3033
|
+
* @type {string}
|
|
3034
|
+
* @memberof ClusterLogApiQueryAuditLogs
|
|
3035
|
+
*/
|
|
3036
|
+
readonly query?: string
|
|
3037
|
+
|
|
3038
|
+
/**
|
|
3039
|
+
*
|
|
3040
|
+
* @type {string}
|
|
3041
|
+
* @memberof ClusterLogApiQueryAuditLogs
|
|
3042
|
+
*/
|
|
3043
|
+
readonly filename?: string
|
|
3044
|
+
|
|
3019
3045
|
/**
|
|
3020
3046
|
*
|
|
3021
3047
|
* @type {SortType}
|
|
@@ -3989,7 +4015,7 @@ export class ClusterLogApi extends BaseAPI implements ClusterLogApiInterface {
|
|
|
3989
4015
|
* @memberof ClusterLogApi
|
|
3990
4016
|
*/
|
|
3991
4017
|
public queryAuditLogs(requestParameters: ClusterLogApiQueryAuditLogsRequest, options?: RawAxiosRequestConfig) {
|
|
3992
|
-
return ClusterLogApiFp(this.configuration).queryAuditLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.limit, requestParameters.componentName, requestParameters.instanceName, 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));
|
|
3993
4019
|
}
|
|
3994
4020
|
|
|
3995
4021
|
/**
|
|
@@ -208,11 +208,13 @@ export const ClusterLokiLogApiAxiosParamCreator = function (configuration?: Conf
|
|
|
208
208
|
* @param {string} [limit]
|
|
209
209
|
* @param {string} [componentName]
|
|
210
210
|
* @param {string} [instanceName]
|
|
211
|
+
* @param {string} [query]
|
|
212
|
+
* @param {string} [filename]
|
|
211
213
|
* @param {SortType} [sortType]
|
|
212
214
|
* @param {*} [options] Override http request option.
|
|
213
215
|
* @throws {RequiredError}
|
|
214
216
|
*/
|
|
215
|
-
queryLokiAuditLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, limit?: string, componentName?: string, instanceName?: 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> => {
|
|
216
218
|
// verify required parameter 'orgName' is not null or undefined
|
|
217
219
|
assertParamExists('queryLokiAuditLogs', 'orgName', orgName)
|
|
218
220
|
// verify required parameter 'clusterName' is not null or undefined
|
|
@@ -262,6 +264,14 @@ export const ClusterLokiLogApiAxiosParamCreator = function (configuration?: Conf
|
|
|
262
264
|
localVarQueryParameter['instanceName'] = instanceName;
|
|
263
265
|
}
|
|
264
266
|
|
|
267
|
+
if (query !== undefined) {
|
|
268
|
+
localVarQueryParameter['query'] = query;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
if (filename !== undefined) {
|
|
272
|
+
localVarQueryParameter['filename'] = filename;
|
|
273
|
+
}
|
|
274
|
+
|
|
265
275
|
if (sortType !== undefined) {
|
|
266
276
|
localVarQueryParameter['sortType'] = sortType;
|
|
267
277
|
}
|
|
@@ -684,12 +694,14 @@ export const ClusterLokiLogApiFp = function(configuration?: Configuration) {
|
|
|
684
694
|
* @param {string} [limit]
|
|
685
695
|
* @param {string} [componentName]
|
|
686
696
|
* @param {string} [instanceName]
|
|
697
|
+
* @param {string} [query]
|
|
698
|
+
* @param {string} [filename]
|
|
687
699
|
* @param {SortType} [sortType]
|
|
688
700
|
* @param {*} [options] Override http request option.
|
|
689
701
|
* @throws {RequiredError}
|
|
690
702
|
*/
|
|
691
|
-
async queryLokiAuditLogs(orgName: string, clusterName: string, startTime: string, endTime: string, limit?: string, componentName?: string, instanceName?: string, sortType?: SortType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterExecutionLog>> {
|
|
692
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiAuditLogs(orgName, clusterName, startTime, endTime, limit, componentName, instanceName, 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);
|
|
693
705
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
694
706
|
const localVarOperationServerBasePath = operationServerMap['ClusterLokiLogApi.queryLokiAuditLogs']?.[localVarOperationServerIndex]?.url;
|
|
695
707
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -818,7 +830,7 @@ export const ClusterLokiLogApiFactory = function (configuration?: Configuration,
|
|
|
818
830
|
* @throws {RequiredError}
|
|
819
831
|
*/
|
|
820
832
|
queryLokiAuditLogs(requestParameters: ClusterLokiLogApiQueryLokiAuditLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLog> {
|
|
821
|
-
return localVarFp.queryLokiAuditLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.limit, requestParameters.componentName, requestParameters.instanceName, 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));
|
|
822
834
|
},
|
|
823
835
|
/**
|
|
824
836
|
* Query error logs through the Loki compatibility API.
|
|
@@ -1129,6 +1141,20 @@ export interface ClusterLokiLogApiQueryLokiAuditLogsRequest {
|
|
|
1129
1141
|
*/
|
|
1130
1142
|
readonly instanceName?: string
|
|
1131
1143
|
|
|
1144
|
+
/**
|
|
1145
|
+
*
|
|
1146
|
+
* @type {string}
|
|
1147
|
+
* @memberof ClusterLokiLogApiQueryLokiAuditLogs
|
|
1148
|
+
*/
|
|
1149
|
+
readonly query?: string
|
|
1150
|
+
|
|
1151
|
+
/**
|
|
1152
|
+
*
|
|
1153
|
+
* @type {string}
|
|
1154
|
+
* @memberof ClusterLokiLogApiQueryLokiAuditLogs
|
|
1155
|
+
*/
|
|
1156
|
+
readonly filename?: string
|
|
1157
|
+
|
|
1132
1158
|
/**
|
|
1133
1159
|
*
|
|
1134
1160
|
* @type {SortType}
|
|
@@ -1471,7 +1497,7 @@ export class ClusterLokiLogApi extends BaseAPI implements ClusterLokiLogApiInter
|
|
|
1471
1497
|
* @memberof ClusterLokiLogApi
|
|
1472
1498
|
*/
|
|
1473
1499
|
public queryLokiAuditLogs(requestParameters: ClusterLokiLogApiQueryLokiAuditLogsRequest, options?: RawAxiosRequestConfig) {
|
|
1474
|
-
return ClusterLokiLogApiFp(this.configuration).queryLokiAuditLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.limit, requestParameters.componentName, requestParameters.instanceName, 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));
|
|
1475
1501
|
}
|
|
1476
1502
|
|
|
1477
1503
|
/**
|