kb-cloud-client-typescript 2.3.0-alpha.227 → 2.3.0-alpha.228

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.
Files changed (61) hide show
  1. package/dist/adminapi/api.d.ts +1 -0
  2. package/dist/adminapi/api.d.ts.map +1 -1
  3. package/dist/adminapi/api.js +1 -0
  4. package/dist/adminapi/api.js.map +1 -1
  5. package/dist/adminapi/apis/cluster-loki-log-api.d.ts +885 -0
  6. package/dist/adminapi/apis/cluster-loki-log-api.d.ts.map +1 -0
  7. package/dist/adminapi/apis/cluster-loki-log-api.js +853 -0
  8. package/dist/adminapi/apis/cluster-loki-log-api.js.map +1 -0
  9. package/dist/adminapi/apis/shared-api.d.ts +848 -15
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +845 -56
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/environment.d.ts +7 -0
  14. package/dist/adminapi/models/environment.d.ts.map +1 -1
  15. package/dist/adminapi/models/index.d.ts +1 -0
  16. package/dist/adminapi/models/index.d.ts.map +1 -1
  17. package/dist/adminapi/models/index.js +1 -0
  18. package/dist/adminapi/models/index.js.map +1 -1
  19. package/dist/adminapi/models/log-backend-type.d.ts +22 -0
  20. package/dist/adminapi/models/log-backend-type.d.ts.map +1 -0
  21. package/dist/adminapi/models/log-backend-type.js +26 -0
  22. package/dist/adminapi/models/log-backend-type.js.map +1 -0
  23. package/dist/openapi/api.d.ts +1 -0
  24. package/dist/openapi/api.d.ts.map +1 -1
  25. package/dist/openapi/api.js +1 -0
  26. package/dist/openapi/api.js.map +1 -1
  27. package/dist/openapi/apis/cluster-loki-log-api.d.ts +885 -0
  28. package/dist/openapi/apis/cluster-loki-log-api.d.ts.map +1 -0
  29. package/dist/openapi/apis/cluster-loki-log-api.js +853 -0
  30. package/dist/openapi/apis/cluster-loki-log-api.js.map +1 -0
  31. package/dist/openapi/apis/shared-api.d.ts +844 -11
  32. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  33. package/dist/openapi/apis/shared-api.js +845 -56
  34. package/dist/openapi/apis/shared-api.js.map +1 -1
  35. package/dist/openapi/models/environment.d.ts +7 -0
  36. package/dist/openapi/models/environment.d.ts.map +1 -1
  37. package/dist/openapi/models/index.d.ts +1 -0
  38. package/dist/openapi/models/index.d.ts.map +1 -1
  39. package/dist/openapi/models/index.js +1 -0
  40. package/dist/openapi/models/index.js.map +1 -1
  41. package/dist/openapi/models/log-backend-type.d.ts +22 -0
  42. package/dist/openapi/models/log-backend-type.d.ts.map +1 -0
  43. package/dist/openapi/models/log-backend-type.js +26 -0
  44. package/dist/openapi/models/log-backend-type.js.map +1 -0
  45. package/package.json +1 -1
  46. package/src/adminapi/.openapi-generator/FILES +2 -0
  47. package/src/adminapi/api.ts +1 -0
  48. package/src/adminapi/apis/cluster-loki-log-api.ts +1525 -0
  49. package/src/adminapi/apis/shared-api.ts +1620 -173
  50. package/src/adminapi/models/environment.ts +9 -0
  51. package/src/adminapi/models/index.ts +1 -0
  52. package/src/adminapi/models/log-backend-type.ts +31 -0
  53. package/src/adminapi.yaml +309 -0
  54. package/src/openapi/.openapi-generator/FILES +2 -0
  55. package/src/openapi/api.ts +1 -0
  56. package/src/openapi/apis/cluster-loki-log-api.ts +1525 -0
  57. package/src/openapi/apis/shared-api.ts +1620 -173
  58. package/src/openapi/models/environment.ts +9 -0
  59. package/src/openapi/models/index.ts +1 -0
  60. package/src/openapi/models/log-backend-type.ts +31 -0
  61. package/src/openapi.yaml +309 -0
@@ -0,0 +1,1525 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud API
5
+ * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import type { Configuration } from '../configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
22
+ // @ts-ignore
23
+ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
+ // @ts-ignore
25
+ import type { APIErrorResponse } from '../models';
26
+ // @ts-ignore
27
+ import type { ClusterExecutionLog } from '../models';
28
+ // @ts-ignore
29
+ import type { ClusterRawLogResponse } from '../models';
30
+ // @ts-ignore
31
+ import type { ClusterSlowLogStats } from '../models';
32
+ // @ts-ignore
33
+ import type { SortType } from '../models';
34
+ /**
35
+ * ClusterLokiLogApi - axios parameter creator
36
+ * @export
37
+ */
38
+ export const ClusterLokiLogApiAxiosParamCreator = function (configuration?: Configuration) {
39
+ return {
40
+ /**
41
+ * Export logs through the Loki compatibility API.
42
+ * @summary Export Loki logs
43
+ * @param {string} orgName
44
+ * @param {string} clusterName
45
+ * @param {string} logType Log type: runninglog, errorlog, slow, auditlog
46
+ * @param {number} [startTime] Start time in epoch nanoseconds. If omitted, exports from the earliest available log
47
+ * @param {number} [endTime] End time in epoch nanoseconds. If omitted, exports up to the latest available log
48
+ * @param {string} [format] Export format: csv, raw, jsonl
49
+ * @param {string} [query]
50
+ * @param {string} [filename]
51
+ * @param {string} [componentName]
52
+ * @param {string} [instanceName]
53
+ * @param {number} [maxLines] Maximum number of lines to export. Defaults to 100000 if omitted
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ exportLokiClusterLogs: async (orgName: string, clusterName: string, logType: string, startTime?: number, endTime?: number, format?: string, query?: string, filename?: string, componentName?: string, instanceName?: string, maxLines?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
58
+ // verify required parameter 'orgName' is not null or undefined
59
+ assertParamExists('exportLokiClusterLogs', 'orgName', orgName)
60
+ // verify required parameter 'clusterName' is not null or undefined
61
+ assertParamExists('exportLokiClusterLogs', 'clusterName', clusterName)
62
+ // verify required parameter 'logType' is not null or undefined
63
+ assertParamExists('exportLokiClusterLogs', 'logType', logType)
64
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/export`
65
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
66
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
67
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
68
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
69
+ let baseOptions;
70
+ if (configuration) {
71
+ baseOptions = configuration.baseOptions;
72
+ }
73
+
74
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
75
+ const localVarHeaderParameter = {} as any;
76
+ const localVarQueryParameter = {} as any;
77
+
78
+ // authentication BearerToken required
79
+ // http bearer authentication required
80
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
81
+
82
+ // authentication DigestAuth required
83
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
84
+
85
+ if (logType !== undefined) {
86
+ localVarQueryParameter['logType'] = logType;
87
+ }
88
+
89
+ if (startTime !== undefined) {
90
+ localVarQueryParameter['startTime'] = startTime;
91
+ }
92
+
93
+ if (endTime !== undefined) {
94
+ localVarQueryParameter['endTime'] = endTime;
95
+ }
96
+
97
+ if (format !== undefined) {
98
+ localVarQueryParameter['format'] = format;
99
+ }
100
+
101
+ if (query !== undefined) {
102
+ localVarQueryParameter['query'] = query;
103
+ }
104
+
105
+ if (filename !== undefined) {
106
+ localVarQueryParameter['filename'] = filename;
107
+ }
108
+
109
+ if (componentName !== undefined) {
110
+ localVarQueryParameter['componentName'] = componentName;
111
+ }
112
+
113
+ if (instanceName !== undefined) {
114
+ localVarQueryParameter['instanceName'] = instanceName;
115
+ }
116
+
117
+ if (maxLines !== undefined) {
118
+ localVarQueryParameter['maxLines'] = maxLines;
119
+ }
120
+
121
+
122
+
123
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
124
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
125
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
126
+
127
+ return {
128
+ url: toPathString(localVarUrlObj),
129
+ options: localVarRequestOptions,
130
+ };
131
+ },
132
+ /**
133
+ * Query slow-log statistics through the Loki compatibility API.
134
+ * @summary Query Loki slow-log statistics
135
+ * @param {string} orgName
136
+ * @param {string} clusterName
137
+ * @param {string} startTime Start time in epoch nanoseconds.
138
+ * @param {string} endTime End time in epoch nanoseconds.
139
+ * @param {string} [componentName]
140
+ * @param {string} [instanceName]
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ */
144
+ getLokiSlowLogStats: async (orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
145
+ // verify required parameter 'orgName' is not null or undefined
146
+ assertParamExists('getLokiSlowLogStats', 'orgName', orgName)
147
+ // verify required parameter 'clusterName' is not null or undefined
148
+ assertParamExists('getLokiSlowLogStats', 'clusterName', clusterName)
149
+ // verify required parameter 'startTime' is not null or undefined
150
+ assertParamExists('getLokiSlowLogStats', 'startTime', startTime)
151
+ // verify required parameter 'endTime' is not null or undefined
152
+ assertParamExists('getLokiSlowLogStats', 'endTime', endTime)
153
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/slow/stats`
154
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
155
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
156
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
157
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
158
+ let baseOptions;
159
+ if (configuration) {
160
+ baseOptions = configuration.baseOptions;
161
+ }
162
+
163
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
164
+ const localVarHeaderParameter = {} as any;
165
+ const localVarQueryParameter = {} as any;
166
+
167
+ // authentication BearerToken required
168
+ // http bearer authentication required
169
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
170
+
171
+ // authentication DigestAuth required
172
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
173
+
174
+ if (startTime !== undefined) {
175
+ localVarQueryParameter['startTime'] = startTime;
176
+ }
177
+
178
+ if (endTime !== undefined) {
179
+ localVarQueryParameter['endTime'] = endTime;
180
+ }
181
+
182
+ if (componentName !== undefined) {
183
+ localVarQueryParameter['componentName'] = componentName;
184
+ }
185
+
186
+ if (instanceName !== undefined) {
187
+ localVarQueryParameter['instanceName'] = instanceName;
188
+ }
189
+
190
+
191
+
192
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
193
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
194
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
195
+
196
+ return {
197
+ url: toPathString(localVarUrlObj),
198
+ options: localVarRequestOptions,
199
+ };
200
+ },
201
+ /**
202
+ * Query audit logs through the Loki compatibility API.
203
+ * @summary Query Loki audit logs
204
+ * @param {string} orgName
205
+ * @param {string} clusterName
206
+ * @param {string} startTime Start time in epoch nanoseconds.
207
+ * @param {string} endTime End time in epoch nanoseconds.
208
+ * @param {string} [limit]
209
+ * @param {string} [componentName]
210
+ * @param {string} [instanceName]
211
+ * @param {SortType} [sortType]
212
+ * @param {*} [options] Override http request option.
213
+ * @throws {RequiredError}
214
+ */
215
+ queryLokiAuditLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, limit?: string, componentName?: string, instanceName?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
216
+ // verify required parameter 'orgName' is not null or undefined
217
+ assertParamExists('queryLokiAuditLogs', 'orgName', orgName)
218
+ // verify required parameter 'clusterName' is not null or undefined
219
+ assertParamExists('queryLokiAuditLogs', 'clusterName', clusterName)
220
+ // verify required parameter 'startTime' is not null or undefined
221
+ assertParamExists('queryLokiAuditLogs', 'startTime', startTime)
222
+ // verify required parameter 'endTime' is not null or undefined
223
+ assertParamExists('queryLokiAuditLogs', 'endTime', endTime)
224
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/audit`
225
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
226
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
227
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
228
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
229
+ let baseOptions;
230
+ if (configuration) {
231
+ baseOptions = configuration.baseOptions;
232
+ }
233
+
234
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
235
+ const localVarHeaderParameter = {} as any;
236
+ const localVarQueryParameter = {} as any;
237
+
238
+ // authentication BearerToken required
239
+ // http bearer authentication required
240
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
241
+
242
+ // authentication DigestAuth required
243
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
244
+
245
+ if (startTime !== undefined) {
246
+ localVarQueryParameter['startTime'] = startTime;
247
+ }
248
+
249
+ if (endTime !== undefined) {
250
+ localVarQueryParameter['endTime'] = endTime;
251
+ }
252
+
253
+ if (limit !== undefined) {
254
+ localVarQueryParameter['limit'] = limit;
255
+ }
256
+
257
+ if (componentName !== undefined) {
258
+ localVarQueryParameter['componentName'] = componentName;
259
+ }
260
+
261
+ if (instanceName !== undefined) {
262
+ localVarQueryParameter['instanceName'] = instanceName;
263
+ }
264
+
265
+ if (sortType !== undefined) {
266
+ localVarQueryParameter['sortType'] = sortType;
267
+ }
268
+
269
+
270
+
271
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
272
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
273
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
274
+
275
+ return {
276
+ url: toPathString(localVarUrlObj),
277
+ options: localVarRequestOptions,
278
+ };
279
+ },
280
+ /**
281
+ * Query error logs through the Loki compatibility API.
282
+ * @summary Query Loki error logs
283
+ * @param {string} orgName
284
+ * @param {string} clusterName
285
+ * @param {string} startTime Start time in epoch nanoseconds.
286
+ * @param {string} endTime End time in epoch nanoseconds.
287
+ * @param {string} [componentName]
288
+ * @param {string} [instanceName]
289
+ * @param {string} [filename]
290
+ * @param {string} [query]
291
+ * @param {string} [limit]
292
+ * @param {SortType} [sortType]
293
+ * @param {*} [options] Override http request option.
294
+ * @throws {RequiredError}
295
+ */
296
+ queryLokiErrorLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, filename?: string, query?: string, limit?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
297
+ // verify required parameter 'orgName' is not null or undefined
298
+ assertParamExists('queryLokiErrorLogs', 'orgName', orgName)
299
+ // verify required parameter 'clusterName' is not null or undefined
300
+ assertParamExists('queryLokiErrorLogs', 'clusterName', clusterName)
301
+ // verify required parameter 'startTime' is not null or undefined
302
+ assertParamExists('queryLokiErrorLogs', 'startTime', startTime)
303
+ // verify required parameter 'endTime' is not null or undefined
304
+ assertParamExists('queryLokiErrorLogs', 'endTime', endTime)
305
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/error`
306
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
307
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
308
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
309
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
310
+ let baseOptions;
311
+ if (configuration) {
312
+ baseOptions = configuration.baseOptions;
313
+ }
314
+
315
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
316
+ const localVarHeaderParameter = {} as any;
317
+ const localVarQueryParameter = {} as any;
318
+
319
+ // authentication BearerToken required
320
+ // http bearer authentication required
321
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
322
+
323
+ // authentication DigestAuth required
324
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
325
+
326
+ if (componentName !== undefined) {
327
+ localVarQueryParameter['componentName'] = componentName;
328
+ }
329
+
330
+ if (instanceName !== undefined) {
331
+ localVarQueryParameter['instanceName'] = instanceName;
332
+ }
333
+
334
+ if (filename !== undefined) {
335
+ localVarQueryParameter['filename'] = filename;
336
+ }
337
+
338
+ if (startTime !== undefined) {
339
+ localVarQueryParameter['startTime'] = startTime;
340
+ }
341
+
342
+ if (endTime !== undefined) {
343
+ localVarQueryParameter['endTime'] = endTime;
344
+ }
345
+
346
+ if (query !== undefined) {
347
+ localVarQueryParameter['query'] = query;
348
+ }
349
+
350
+ if (limit !== undefined) {
351
+ localVarQueryParameter['limit'] = limit;
352
+ }
353
+
354
+ if (sortType !== undefined) {
355
+ localVarQueryParameter['sortType'] = sortType;
356
+ }
357
+
358
+
359
+
360
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
361
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
362
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
363
+
364
+ return {
365
+ url: toPathString(localVarUrlObj),
366
+ options: localVarRequestOptions,
367
+ };
368
+ },
369
+ /**
370
+ * Query pod logs through the Loki compatibility API.
371
+ * @summary Query Loki pod logs
372
+ * @param {string} orgName
373
+ * @param {string} clusterName
374
+ * @param {string} startTime Start time in epoch nanoseconds.
375
+ * @param {string} endTime End time in epoch nanoseconds.
376
+ * @param {string} [componentName]
377
+ * @param {string} [instanceName]
378
+ * @param {string} [filename]
379
+ * @param {string} [limit]
380
+ * @param {SortType} [sortType]
381
+ * @param {*} [options] Override http request option.
382
+ * @throws {RequiredError}
383
+ */
384
+ queryLokiPodLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, filename?: string, limit?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
385
+ // verify required parameter 'orgName' is not null or undefined
386
+ assertParamExists('queryLokiPodLogs', 'orgName', orgName)
387
+ // verify required parameter 'clusterName' is not null or undefined
388
+ assertParamExists('queryLokiPodLogs', 'clusterName', clusterName)
389
+ // verify required parameter 'startTime' is not null or undefined
390
+ assertParamExists('queryLokiPodLogs', 'startTime', startTime)
391
+ // verify required parameter 'endTime' is not null or undefined
392
+ assertParamExists('queryLokiPodLogs', 'endTime', endTime)
393
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/pod`
394
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
395
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
396
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
397
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
398
+ let baseOptions;
399
+ if (configuration) {
400
+ baseOptions = configuration.baseOptions;
401
+ }
402
+
403
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
404
+ const localVarHeaderParameter = {} as any;
405
+ const localVarQueryParameter = {} as any;
406
+
407
+ // authentication BearerToken required
408
+ // http bearer authentication required
409
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
410
+
411
+ // authentication DigestAuth required
412
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
413
+
414
+ if (componentName !== undefined) {
415
+ localVarQueryParameter['componentName'] = componentName;
416
+ }
417
+
418
+ if (instanceName !== undefined) {
419
+ localVarQueryParameter['instanceName'] = instanceName;
420
+ }
421
+
422
+ if (filename !== undefined) {
423
+ localVarQueryParameter['filename'] = filename;
424
+ }
425
+
426
+ if (startTime !== undefined) {
427
+ localVarQueryParameter['startTime'] = startTime;
428
+ }
429
+
430
+ if (endTime !== undefined) {
431
+ localVarQueryParameter['endTime'] = endTime;
432
+ }
433
+
434
+ if (limit !== undefined) {
435
+ localVarQueryParameter['limit'] = limit;
436
+ }
437
+
438
+ if (sortType !== undefined) {
439
+ localVarQueryParameter['sortType'] = sortType;
440
+ }
441
+
442
+
443
+
444
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
445
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
446
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
447
+
448
+ return {
449
+ url: toPathString(localVarUrlObj),
450
+ options: localVarRequestOptions,
451
+ };
452
+ },
453
+ /**
454
+ * Query running logs through the Loki compatibility API.
455
+ * @summary Query Loki running logs
456
+ * @param {string} orgName
457
+ * @param {string} clusterName
458
+ * @param {string} startTime Start time in epoch nanoseconds.
459
+ * @param {string} endTime End time in epoch nanoseconds.
460
+ * @param {string} [componentName]
461
+ * @param {string} [instanceName]
462
+ * @param {string} [filename]
463
+ * @param {string} [limit]
464
+ * @param {string} [query]
465
+ * @param {SortType} [sortType]
466
+ * @param {*} [options] Override http request option.
467
+ * @throws {RequiredError}
468
+ */
469
+ queryLokiRunningLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, filename?: string, limit?: string, query?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
470
+ // verify required parameter 'orgName' is not null or undefined
471
+ assertParamExists('queryLokiRunningLogs', 'orgName', orgName)
472
+ // verify required parameter 'clusterName' is not null or undefined
473
+ assertParamExists('queryLokiRunningLogs', 'clusterName', clusterName)
474
+ // verify required parameter 'startTime' is not null or undefined
475
+ assertParamExists('queryLokiRunningLogs', 'startTime', startTime)
476
+ // verify required parameter 'endTime' is not null or undefined
477
+ assertParamExists('queryLokiRunningLogs', 'endTime', endTime)
478
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/running`
479
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
480
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
481
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
482
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
483
+ let baseOptions;
484
+ if (configuration) {
485
+ baseOptions = configuration.baseOptions;
486
+ }
487
+
488
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
489
+ const localVarHeaderParameter = {} as any;
490
+ const localVarQueryParameter = {} as any;
491
+
492
+ // authentication BearerToken required
493
+ // http bearer authentication required
494
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
495
+
496
+ // authentication DigestAuth required
497
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
498
+
499
+ if (componentName !== undefined) {
500
+ localVarQueryParameter['componentName'] = componentName;
501
+ }
502
+
503
+ if (instanceName !== undefined) {
504
+ localVarQueryParameter['instanceName'] = instanceName;
505
+ }
506
+
507
+ if (filename !== undefined) {
508
+ localVarQueryParameter['filename'] = filename;
509
+ }
510
+
511
+ if (startTime !== undefined) {
512
+ localVarQueryParameter['startTime'] = startTime;
513
+ }
514
+
515
+ if (endTime !== undefined) {
516
+ localVarQueryParameter['endTime'] = endTime;
517
+ }
518
+
519
+ if (limit !== undefined) {
520
+ localVarQueryParameter['limit'] = limit;
521
+ }
522
+
523
+ if (query !== undefined) {
524
+ localVarQueryParameter['query'] = query;
525
+ }
526
+
527
+ if (sortType !== undefined) {
528
+ localVarQueryParameter['sortType'] = sortType;
529
+ }
530
+
531
+
532
+
533
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
534
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
535
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
536
+
537
+ return {
538
+ url: toPathString(localVarUrlObj),
539
+ options: localVarRequestOptions,
540
+ };
541
+ },
542
+ /**
543
+ * Query slow logs through the Loki compatibility API.
544
+ * @summary Query Loki slow logs
545
+ * @param {string} orgName
546
+ * @param {string} clusterName
547
+ * @param {string} startTime Start time in epoch nanoseconds.
548
+ * @param {string} endTime End time in epoch nanoseconds.
549
+ * @param {string} [componentName]
550
+ * @param {string} [instanceName]
551
+ * @param {string} [query]
552
+ * @param {string} [limit]
553
+ * @param {SortType} [sortType]
554
+ * @param {*} [options] Override http request option.
555
+ * @throws {RequiredError}
556
+ */
557
+ queryLokiSlowLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, query?: string, limit?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
558
+ // verify required parameter 'orgName' is not null or undefined
559
+ assertParamExists('queryLokiSlowLogs', 'orgName', orgName)
560
+ // verify required parameter 'clusterName' is not null or undefined
561
+ assertParamExists('queryLokiSlowLogs', 'clusterName', clusterName)
562
+ // verify required parameter 'startTime' is not null or undefined
563
+ assertParamExists('queryLokiSlowLogs', 'startTime', startTime)
564
+ // verify required parameter 'endTime' is not null or undefined
565
+ assertParamExists('queryLokiSlowLogs', 'endTime', endTime)
566
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/slow`
567
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
568
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
569
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
570
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
571
+ let baseOptions;
572
+ if (configuration) {
573
+ baseOptions = configuration.baseOptions;
574
+ }
575
+
576
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
577
+ const localVarHeaderParameter = {} as any;
578
+ const localVarQueryParameter = {} as any;
579
+
580
+ // authentication BearerToken required
581
+ // http bearer authentication required
582
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
583
+
584
+ // authentication DigestAuth required
585
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
586
+
587
+ if (startTime !== undefined) {
588
+ localVarQueryParameter['startTime'] = startTime;
589
+ }
590
+
591
+ if (endTime !== undefined) {
592
+ localVarQueryParameter['endTime'] = endTime;
593
+ }
594
+
595
+ if (componentName !== undefined) {
596
+ localVarQueryParameter['componentName'] = componentName;
597
+ }
598
+
599
+ if (instanceName !== undefined) {
600
+ localVarQueryParameter['instanceName'] = instanceName;
601
+ }
602
+
603
+ if (query !== undefined) {
604
+ localVarQueryParameter['query'] = query;
605
+ }
606
+
607
+ if (limit !== undefined) {
608
+ localVarQueryParameter['limit'] = limit;
609
+ }
610
+
611
+ if (sortType !== undefined) {
612
+ localVarQueryParameter['sortType'] = sortType;
613
+ }
614
+
615
+
616
+
617
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
618
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
619
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
620
+
621
+ return {
622
+ url: toPathString(localVarUrlObj),
623
+ options: localVarRequestOptions,
624
+ };
625
+ },
626
+ }
627
+ };
628
+
629
+ /**
630
+ * ClusterLokiLogApi - functional programming interface
631
+ * @export
632
+ */
633
+ export const ClusterLokiLogApiFp = function(configuration?: Configuration) {
634
+ const localVarAxiosParamCreator = ClusterLokiLogApiAxiosParamCreator(configuration)
635
+ return {
636
+ /**
637
+ * Export logs through the Loki compatibility API.
638
+ * @summary Export Loki logs
639
+ * @param {string} orgName
640
+ * @param {string} clusterName
641
+ * @param {string} logType Log type: runninglog, errorlog, slow, auditlog
642
+ * @param {number} [startTime] Start time in epoch nanoseconds. If omitted, exports from the earliest available log
643
+ * @param {number} [endTime] End time in epoch nanoseconds. If omitted, exports up to the latest available log
644
+ * @param {string} [format] Export format: csv, raw, jsonl
645
+ * @param {string} [query]
646
+ * @param {string} [filename]
647
+ * @param {string} [componentName]
648
+ * @param {string} [instanceName]
649
+ * @param {number} [maxLines] Maximum number of lines to export. Defaults to 100000 if omitted
650
+ * @param {*} [options] Override http request option.
651
+ * @throws {RequiredError}
652
+ */
653
+ async exportLokiClusterLogs(orgName: string, clusterName: string, logType: string, startTime?: number, endTime?: number, format?: string, query?: string, filename?: string, componentName?: string, instanceName?: string, maxLines?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
654
+ const localVarAxiosArgs = await localVarAxiosParamCreator.exportLokiClusterLogs(orgName, clusterName, logType, startTime, endTime, format, query, filename, componentName, instanceName, maxLines, options);
655
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
656
+ const localVarOperationServerBasePath = operationServerMap['ClusterLokiLogApi.exportLokiClusterLogs']?.[localVarOperationServerIndex]?.url;
657
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
658
+ },
659
+ /**
660
+ * Query slow-log statistics through the Loki compatibility API.
661
+ * @summary Query Loki slow-log statistics
662
+ * @param {string} orgName
663
+ * @param {string} clusterName
664
+ * @param {string} startTime Start time in epoch nanoseconds.
665
+ * @param {string} endTime End time in epoch nanoseconds.
666
+ * @param {string} [componentName]
667
+ * @param {string} [instanceName]
668
+ * @param {*} [options] Override http request option.
669
+ * @throws {RequiredError}
670
+ */
671
+ async getLokiSlowLogStats(orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterSlowLogStats>> {
672
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLokiSlowLogStats(orgName, clusterName, startTime, endTime, componentName, instanceName, options);
673
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
674
+ const localVarOperationServerBasePath = operationServerMap['ClusterLokiLogApi.getLokiSlowLogStats']?.[localVarOperationServerIndex]?.url;
675
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
676
+ },
677
+ /**
678
+ * Query audit logs through the Loki compatibility API.
679
+ * @summary Query Loki audit logs
680
+ * @param {string} orgName
681
+ * @param {string} clusterName
682
+ * @param {string} startTime Start time in epoch nanoseconds.
683
+ * @param {string} endTime End time in epoch nanoseconds.
684
+ * @param {string} [limit]
685
+ * @param {string} [componentName]
686
+ * @param {string} [instanceName]
687
+ * @param {SortType} [sortType]
688
+ * @param {*} [options] Override http request option.
689
+ * @throws {RequiredError}
690
+ */
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);
693
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
694
+ const localVarOperationServerBasePath = operationServerMap['ClusterLokiLogApi.queryLokiAuditLogs']?.[localVarOperationServerIndex]?.url;
695
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
696
+ },
697
+ /**
698
+ * Query error logs through the Loki compatibility API.
699
+ * @summary Query Loki error logs
700
+ * @param {string} orgName
701
+ * @param {string} clusterName
702
+ * @param {string} startTime Start time in epoch nanoseconds.
703
+ * @param {string} endTime End time in epoch nanoseconds.
704
+ * @param {string} [componentName]
705
+ * @param {string} [instanceName]
706
+ * @param {string} [filename]
707
+ * @param {string} [query]
708
+ * @param {string} [limit]
709
+ * @param {SortType} [sortType]
710
+ * @param {*} [options] Override http request option.
711
+ * @throws {RequiredError}
712
+ */
713
+ async queryLokiErrorLogs(orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, filename?: string, query?: string, limit?: string, sortType?: SortType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterRawLogResponse>> {
714
+ const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiErrorLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, query, limit, sortType, options);
715
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
716
+ const localVarOperationServerBasePath = operationServerMap['ClusterLokiLogApi.queryLokiErrorLogs']?.[localVarOperationServerIndex]?.url;
717
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
718
+ },
719
+ /**
720
+ * Query pod logs through the Loki compatibility API.
721
+ * @summary Query Loki pod logs
722
+ * @param {string} orgName
723
+ * @param {string} clusterName
724
+ * @param {string} startTime Start time in epoch nanoseconds.
725
+ * @param {string} endTime End time in epoch nanoseconds.
726
+ * @param {string} [componentName]
727
+ * @param {string} [instanceName]
728
+ * @param {string} [filename]
729
+ * @param {string} [limit]
730
+ * @param {SortType} [sortType]
731
+ * @param {*} [options] Override http request option.
732
+ * @throws {RequiredError}
733
+ */
734
+ async queryLokiPodLogs(orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, filename?: string, limit?: string, sortType?: SortType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterRawLogResponse>> {
735
+ const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiPodLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, sortType, options);
736
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
737
+ const localVarOperationServerBasePath = operationServerMap['ClusterLokiLogApi.queryLokiPodLogs']?.[localVarOperationServerIndex]?.url;
738
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
739
+ },
740
+ /**
741
+ * Query running logs through the Loki compatibility API.
742
+ * @summary Query Loki running logs
743
+ * @param {string} orgName
744
+ * @param {string} clusterName
745
+ * @param {string} startTime Start time in epoch nanoseconds.
746
+ * @param {string} endTime End time in epoch nanoseconds.
747
+ * @param {string} [componentName]
748
+ * @param {string} [instanceName]
749
+ * @param {string} [filename]
750
+ * @param {string} [limit]
751
+ * @param {string} [query]
752
+ * @param {SortType} [sortType]
753
+ * @param {*} [options] Override http request option.
754
+ * @throws {RequiredError}
755
+ */
756
+ async queryLokiRunningLogs(orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, filename?: string, limit?: string, query?: string, sortType?: SortType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterRawLogResponse>> {
757
+ const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiRunningLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, query, sortType, options);
758
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
759
+ const localVarOperationServerBasePath = operationServerMap['ClusterLokiLogApi.queryLokiRunningLogs']?.[localVarOperationServerIndex]?.url;
760
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
761
+ },
762
+ /**
763
+ * Query slow logs through the Loki compatibility API.
764
+ * @summary Query Loki slow logs
765
+ * @param {string} orgName
766
+ * @param {string} clusterName
767
+ * @param {string} startTime Start time in epoch nanoseconds.
768
+ * @param {string} endTime End time in epoch nanoseconds.
769
+ * @param {string} [componentName]
770
+ * @param {string} [instanceName]
771
+ * @param {string} [query]
772
+ * @param {string} [limit]
773
+ * @param {SortType} [sortType]
774
+ * @param {*} [options] Override http request option.
775
+ * @throws {RequiredError}
776
+ */
777
+ async queryLokiSlowLogs(orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, query?: string, limit?: string, sortType?: SortType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterExecutionLog>> {
778
+ const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiSlowLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, query, limit, sortType, options);
779
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
780
+ const localVarOperationServerBasePath = operationServerMap['ClusterLokiLogApi.queryLokiSlowLogs']?.[localVarOperationServerIndex]?.url;
781
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
782
+ },
783
+ }
784
+ };
785
+
786
+ /**
787
+ * ClusterLokiLogApi - factory interface
788
+ * @export
789
+ */
790
+ export const ClusterLokiLogApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
791
+ const localVarFp = ClusterLokiLogApiFp(configuration)
792
+ return {
793
+ /**
794
+ * Export logs through the Loki compatibility API.
795
+ * @summary Export Loki logs
796
+ * @param {ClusterLokiLogApiExportLokiClusterLogsRequest} requestParameters Request parameters.
797
+ * @param {*} [options] Override http request option.
798
+ * @throws {RequiredError}
799
+ */
800
+ exportLokiClusterLogs(requestParameters: ClusterLokiLogApiExportLokiClusterLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
801
+ return localVarFp.exportLokiClusterLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.logType, requestParameters.startTime, requestParameters.endTime, requestParameters.format, requestParameters.query, requestParameters.filename, requestParameters.componentName, requestParameters.instanceName, requestParameters.maxLines, options).then((request) => request(axios, basePath));
802
+ },
803
+ /**
804
+ * Query slow-log statistics through the Loki compatibility API.
805
+ * @summary Query Loki slow-log statistics
806
+ * @param {ClusterLokiLogApiGetLokiSlowLogStatsRequest} requestParameters Request parameters.
807
+ * @param {*} [options] Override http request option.
808
+ * @throws {RequiredError}
809
+ */
810
+ getLokiSlowLogStats(requestParameters: ClusterLokiLogApiGetLokiSlowLogStatsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterSlowLogStats> {
811
+ return localVarFp.getLokiSlowLogStats(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, options).then((request) => request(axios, basePath));
812
+ },
813
+ /**
814
+ * Query audit logs through the Loki compatibility API.
815
+ * @summary Query Loki audit logs
816
+ * @param {ClusterLokiLogApiQueryLokiAuditLogsRequest} requestParameters Request parameters.
817
+ * @param {*} [options] Override http request option.
818
+ * @throws {RequiredError}
819
+ */
820
+ 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));
822
+ },
823
+ /**
824
+ * Query error logs through the Loki compatibility API.
825
+ * @summary Query Loki error logs
826
+ * @param {ClusterLokiLogApiQueryLokiErrorLogsRequest} requestParameters Request parameters.
827
+ * @param {*} [options] Override http request option.
828
+ * @throws {RequiredError}
829
+ */
830
+ queryLokiErrorLogs(requestParameters: ClusterLokiLogApiQueryLokiErrorLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRawLogResponse> {
831
+ return localVarFp.queryLokiErrorLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.filename, requestParameters.query, requestParameters.limit, requestParameters.sortType, options).then((request) => request(axios, basePath));
832
+ },
833
+ /**
834
+ * Query pod logs through the Loki compatibility API.
835
+ * @summary Query Loki pod logs
836
+ * @param {ClusterLokiLogApiQueryLokiPodLogsRequest} requestParameters Request parameters.
837
+ * @param {*} [options] Override http request option.
838
+ * @throws {RequiredError}
839
+ */
840
+ queryLokiPodLogs(requestParameters: ClusterLokiLogApiQueryLokiPodLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRawLogResponse> {
841
+ return localVarFp.queryLokiPodLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.filename, requestParameters.limit, requestParameters.sortType, options).then((request) => request(axios, basePath));
842
+ },
843
+ /**
844
+ * Query running logs through the Loki compatibility API.
845
+ * @summary Query Loki running logs
846
+ * @param {ClusterLokiLogApiQueryLokiRunningLogsRequest} requestParameters Request parameters.
847
+ * @param {*} [options] Override http request option.
848
+ * @throws {RequiredError}
849
+ */
850
+ queryLokiRunningLogs(requestParameters: ClusterLokiLogApiQueryLokiRunningLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRawLogResponse> {
851
+ return localVarFp.queryLokiRunningLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.filename, requestParameters.limit, requestParameters.query, requestParameters.sortType, options).then((request) => request(axios, basePath));
852
+ },
853
+ /**
854
+ * Query slow logs through the Loki compatibility API.
855
+ * @summary Query Loki slow logs
856
+ * @param {ClusterLokiLogApiQueryLokiSlowLogsRequest} requestParameters Request parameters.
857
+ * @param {*} [options] Override http request option.
858
+ * @throws {RequiredError}
859
+ */
860
+ queryLokiSlowLogs(requestParameters: ClusterLokiLogApiQueryLokiSlowLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLog> {
861
+ return localVarFp.queryLokiSlowLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.limit, requestParameters.sortType, options).then((request) => request(axios, basePath));
862
+ },
863
+ };
864
+ };
865
+
866
+ /**
867
+ * ClusterLokiLogApi - interface
868
+ * @export
869
+ * @interface ClusterLokiLogApi
870
+ */
871
+ export interface ClusterLokiLogApiInterface {
872
+ /**
873
+ * Export logs through the Loki compatibility API.
874
+ * @summary Export Loki logs
875
+ * @param {ClusterLokiLogApiExportLokiClusterLogsRequest} requestParameters Request parameters.
876
+ * @param {*} [options] Override http request option.
877
+ * @throws {RequiredError}
878
+ * @memberof ClusterLokiLogApiInterface
879
+ */
880
+ exportLokiClusterLogs(requestParameters: ClusterLokiLogApiExportLokiClusterLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
881
+
882
+ /**
883
+ * Query slow-log statistics through the Loki compatibility API.
884
+ * @summary Query Loki slow-log statistics
885
+ * @param {ClusterLokiLogApiGetLokiSlowLogStatsRequest} requestParameters Request parameters.
886
+ * @param {*} [options] Override http request option.
887
+ * @throws {RequiredError}
888
+ * @memberof ClusterLokiLogApiInterface
889
+ */
890
+ getLokiSlowLogStats(requestParameters: ClusterLokiLogApiGetLokiSlowLogStatsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterSlowLogStats>;
891
+
892
+ /**
893
+ * Query audit logs through the Loki compatibility API.
894
+ * @summary Query Loki audit logs
895
+ * @param {ClusterLokiLogApiQueryLokiAuditLogsRequest} requestParameters Request parameters.
896
+ * @param {*} [options] Override http request option.
897
+ * @throws {RequiredError}
898
+ * @memberof ClusterLokiLogApiInterface
899
+ */
900
+ queryLokiAuditLogs(requestParameters: ClusterLokiLogApiQueryLokiAuditLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLog>;
901
+
902
+ /**
903
+ * Query error logs through the Loki compatibility API.
904
+ * @summary Query Loki error logs
905
+ * @param {ClusterLokiLogApiQueryLokiErrorLogsRequest} requestParameters Request parameters.
906
+ * @param {*} [options] Override http request option.
907
+ * @throws {RequiredError}
908
+ * @memberof ClusterLokiLogApiInterface
909
+ */
910
+ queryLokiErrorLogs(requestParameters: ClusterLokiLogApiQueryLokiErrorLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRawLogResponse>;
911
+
912
+ /**
913
+ * Query pod logs through the Loki compatibility API.
914
+ * @summary Query Loki pod logs
915
+ * @param {ClusterLokiLogApiQueryLokiPodLogsRequest} requestParameters Request parameters.
916
+ * @param {*} [options] Override http request option.
917
+ * @throws {RequiredError}
918
+ * @memberof ClusterLokiLogApiInterface
919
+ */
920
+ queryLokiPodLogs(requestParameters: ClusterLokiLogApiQueryLokiPodLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRawLogResponse>;
921
+
922
+ /**
923
+ * Query running logs through the Loki compatibility API.
924
+ * @summary Query Loki running logs
925
+ * @param {ClusterLokiLogApiQueryLokiRunningLogsRequest} requestParameters Request parameters.
926
+ * @param {*} [options] Override http request option.
927
+ * @throws {RequiredError}
928
+ * @memberof ClusterLokiLogApiInterface
929
+ */
930
+ queryLokiRunningLogs(requestParameters: ClusterLokiLogApiQueryLokiRunningLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRawLogResponse>;
931
+
932
+ /**
933
+ * Query slow logs through the Loki compatibility API.
934
+ * @summary Query Loki slow logs
935
+ * @param {ClusterLokiLogApiQueryLokiSlowLogsRequest} requestParameters Request parameters.
936
+ * @param {*} [options] Override http request option.
937
+ * @throws {RequiredError}
938
+ * @memberof ClusterLokiLogApiInterface
939
+ */
940
+ queryLokiSlowLogs(requestParameters: ClusterLokiLogApiQueryLokiSlowLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLog>;
941
+
942
+ }
943
+
944
+ /**
945
+ * Request parameters for exportLokiClusterLogs operation in ClusterLokiLogApi.
946
+ * @export
947
+ * @interface ClusterLokiLogApiExportLokiClusterLogsRequest
948
+ */
949
+ export interface ClusterLokiLogApiExportLokiClusterLogsRequest {
950
+ /**
951
+ *
952
+ * @type {string}
953
+ * @memberof ClusterLokiLogApiExportLokiClusterLogs
954
+ */
955
+ readonly orgName: string
956
+
957
+ /**
958
+ *
959
+ * @type {string}
960
+ * @memberof ClusterLokiLogApiExportLokiClusterLogs
961
+ */
962
+ readonly clusterName: string
963
+
964
+ /**
965
+ * Log type: runninglog, errorlog, slow, auditlog
966
+ * @type {string}
967
+ * @memberof ClusterLokiLogApiExportLokiClusterLogs
968
+ */
969
+ readonly logType: string
970
+
971
+ /**
972
+ * Start time in epoch nanoseconds. If omitted, exports from the earliest available log
973
+ * @type {number}
974
+ * @memberof ClusterLokiLogApiExportLokiClusterLogs
975
+ */
976
+ readonly startTime?: number
977
+
978
+ /**
979
+ * End time in epoch nanoseconds. If omitted, exports up to the latest available log
980
+ * @type {number}
981
+ * @memberof ClusterLokiLogApiExportLokiClusterLogs
982
+ */
983
+ readonly endTime?: number
984
+
985
+ /**
986
+ * Export format: csv, raw, jsonl
987
+ * @type {string}
988
+ * @memberof ClusterLokiLogApiExportLokiClusterLogs
989
+ */
990
+ readonly format?: string
991
+
992
+ /**
993
+ *
994
+ * @type {string}
995
+ * @memberof ClusterLokiLogApiExportLokiClusterLogs
996
+ */
997
+ readonly query?: string
998
+
999
+ /**
1000
+ *
1001
+ * @type {string}
1002
+ * @memberof ClusterLokiLogApiExportLokiClusterLogs
1003
+ */
1004
+ readonly filename?: string
1005
+
1006
+ /**
1007
+ *
1008
+ * @type {string}
1009
+ * @memberof ClusterLokiLogApiExportLokiClusterLogs
1010
+ */
1011
+ readonly componentName?: string
1012
+
1013
+ /**
1014
+ *
1015
+ * @type {string}
1016
+ * @memberof ClusterLokiLogApiExportLokiClusterLogs
1017
+ */
1018
+ readonly instanceName?: string
1019
+
1020
+ /**
1021
+ * Maximum number of lines to export. Defaults to 100000 if omitted
1022
+ * @type {number}
1023
+ * @memberof ClusterLokiLogApiExportLokiClusterLogs
1024
+ */
1025
+ readonly maxLines?: number
1026
+ }
1027
+
1028
+ /**
1029
+ * Request parameters for getLokiSlowLogStats operation in ClusterLokiLogApi.
1030
+ * @export
1031
+ * @interface ClusterLokiLogApiGetLokiSlowLogStatsRequest
1032
+ */
1033
+ export interface ClusterLokiLogApiGetLokiSlowLogStatsRequest {
1034
+ /**
1035
+ *
1036
+ * @type {string}
1037
+ * @memberof ClusterLokiLogApiGetLokiSlowLogStats
1038
+ */
1039
+ readonly orgName: string
1040
+
1041
+ /**
1042
+ *
1043
+ * @type {string}
1044
+ * @memberof ClusterLokiLogApiGetLokiSlowLogStats
1045
+ */
1046
+ readonly clusterName: string
1047
+
1048
+ /**
1049
+ * Start time in epoch nanoseconds.
1050
+ * @type {string}
1051
+ * @memberof ClusterLokiLogApiGetLokiSlowLogStats
1052
+ */
1053
+ readonly startTime: string
1054
+
1055
+ /**
1056
+ * End time in epoch nanoseconds.
1057
+ * @type {string}
1058
+ * @memberof ClusterLokiLogApiGetLokiSlowLogStats
1059
+ */
1060
+ readonly endTime: string
1061
+
1062
+ /**
1063
+ *
1064
+ * @type {string}
1065
+ * @memberof ClusterLokiLogApiGetLokiSlowLogStats
1066
+ */
1067
+ readonly componentName?: string
1068
+
1069
+ /**
1070
+ *
1071
+ * @type {string}
1072
+ * @memberof ClusterLokiLogApiGetLokiSlowLogStats
1073
+ */
1074
+ readonly instanceName?: string
1075
+ }
1076
+
1077
+ /**
1078
+ * Request parameters for queryLokiAuditLogs operation in ClusterLokiLogApi.
1079
+ * @export
1080
+ * @interface ClusterLokiLogApiQueryLokiAuditLogsRequest
1081
+ */
1082
+ export interface ClusterLokiLogApiQueryLokiAuditLogsRequest {
1083
+ /**
1084
+ *
1085
+ * @type {string}
1086
+ * @memberof ClusterLokiLogApiQueryLokiAuditLogs
1087
+ */
1088
+ readonly orgName: string
1089
+
1090
+ /**
1091
+ *
1092
+ * @type {string}
1093
+ * @memberof ClusterLokiLogApiQueryLokiAuditLogs
1094
+ */
1095
+ readonly clusterName: string
1096
+
1097
+ /**
1098
+ * Start time in epoch nanoseconds.
1099
+ * @type {string}
1100
+ * @memberof ClusterLokiLogApiQueryLokiAuditLogs
1101
+ */
1102
+ readonly startTime: string
1103
+
1104
+ /**
1105
+ * End time in epoch nanoseconds.
1106
+ * @type {string}
1107
+ * @memberof ClusterLokiLogApiQueryLokiAuditLogs
1108
+ */
1109
+ readonly endTime: string
1110
+
1111
+ /**
1112
+ *
1113
+ * @type {string}
1114
+ * @memberof ClusterLokiLogApiQueryLokiAuditLogs
1115
+ */
1116
+ readonly limit?: string
1117
+
1118
+ /**
1119
+ *
1120
+ * @type {string}
1121
+ * @memberof ClusterLokiLogApiQueryLokiAuditLogs
1122
+ */
1123
+ readonly componentName?: string
1124
+
1125
+ /**
1126
+ *
1127
+ * @type {string}
1128
+ * @memberof ClusterLokiLogApiQueryLokiAuditLogs
1129
+ */
1130
+ readonly instanceName?: string
1131
+
1132
+ /**
1133
+ *
1134
+ * @type {SortType}
1135
+ * @memberof ClusterLokiLogApiQueryLokiAuditLogs
1136
+ */
1137
+ readonly sortType?: SortType
1138
+ }
1139
+
1140
+ /**
1141
+ * Request parameters for queryLokiErrorLogs operation in ClusterLokiLogApi.
1142
+ * @export
1143
+ * @interface ClusterLokiLogApiQueryLokiErrorLogsRequest
1144
+ */
1145
+ export interface ClusterLokiLogApiQueryLokiErrorLogsRequest {
1146
+ /**
1147
+ *
1148
+ * @type {string}
1149
+ * @memberof ClusterLokiLogApiQueryLokiErrorLogs
1150
+ */
1151
+ readonly orgName: string
1152
+
1153
+ /**
1154
+ *
1155
+ * @type {string}
1156
+ * @memberof ClusterLokiLogApiQueryLokiErrorLogs
1157
+ */
1158
+ readonly clusterName: string
1159
+
1160
+ /**
1161
+ * Start time in epoch nanoseconds.
1162
+ * @type {string}
1163
+ * @memberof ClusterLokiLogApiQueryLokiErrorLogs
1164
+ */
1165
+ readonly startTime: string
1166
+
1167
+ /**
1168
+ * End time in epoch nanoseconds.
1169
+ * @type {string}
1170
+ * @memberof ClusterLokiLogApiQueryLokiErrorLogs
1171
+ */
1172
+ readonly endTime: string
1173
+
1174
+ /**
1175
+ *
1176
+ * @type {string}
1177
+ * @memberof ClusterLokiLogApiQueryLokiErrorLogs
1178
+ */
1179
+ readonly componentName?: string
1180
+
1181
+ /**
1182
+ *
1183
+ * @type {string}
1184
+ * @memberof ClusterLokiLogApiQueryLokiErrorLogs
1185
+ */
1186
+ readonly instanceName?: string
1187
+
1188
+ /**
1189
+ *
1190
+ * @type {string}
1191
+ * @memberof ClusterLokiLogApiQueryLokiErrorLogs
1192
+ */
1193
+ readonly filename?: string
1194
+
1195
+ /**
1196
+ *
1197
+ * @type {string}
1198
+ * @memberof ClusterLokiLogApiQueryLokiErrorLogs
1199
+ */
1200
+ readonly query?: string
1201
+
1202
+ /**
1203
+ *
1204
+ * @type {string}
1205
+ * @memberof ClusterLokiLogApiQueryLokiErrorLogs
1206
+ */
1207
+ readonly limit?: string
1208
+
1209
+ /**
1210
+ *
1211
+ * @type {SortType}
1212
+ * @memberof ClusterLokiLogApiQueryLokiErrorLogs
1213
+ */
1214
+ readonly sortType?: SortType
1215
+ }
1216
+
1217
+ /**
1218
+ * Request parameters for queryLokiPodLogs operation in ClusterLokiLogApi.
1219
+ * @export
1220
+ * @interface ClusterLokiLogApiQueryLokiPodLogsRequest
1221
+ */
1222
+ export interface ClusterLokiLogApiQueryLokiPodLogsRequest {
1223
+ /**
1224
+ *
1225
+ * @type {string}
1226
+ * @memberof ClusterLokiLogApiQueryLokiPodLogs
1227
+ */
1228
+ readonly orgName: string
1229
+
1230
+ /**
1231
+ *
1232
+ * @type {string}
1233
+ * @memberof ClusterLokiLogApiQueryLokiPodLogs
1234
+ */
1235
+ readonly clusterName: string
1236
+
1237
+ /**
1238
+ * Start time in epoch nanoseconds.
1239
+ * @type {string}
1240
+ * @memberof ClusterLokiLogApiQueryLokiPodLogs
1241
+ */
1242
+ readonly startTime: string
1243
+
1244
+ /**
1245
+ * End time in epoch nanoseconds.
1246
+ * @type {string}
1247
+ * @memberof ClusterLokiLogApiQueryLokiPodLogs
1248
+ */
1249
+ readonly endTime: string
1250
+
1251
+ /**
1252
+ *
1253
+ * @type {string}
1254
+ * @memberof ClusterLokiLogApiQueryLokiPodLogs
1255
+ */
1256
+ readonly componentName?: string
1257
+
1258
+ /**
1259
+ *
1260
+ * @type {string}
1261
+ * @memberof ClusterLokiLogApiQueryLokiPodLogs
1262
+ */
1263
+ readonly instanceName?: string
1264
+
1265
+ /**
1266
+ *
1267
+ * @type {string}
1268
+ * @memberof ClusterLokiLogApiQueryLokiPodLogs
1269
+ */
1270
+ readonly filename?: string
1271
+
1272
+ /**
1273
+ *
1274
+ * @type {string}
1275
+ * @memberof ClusterLokiLogApiQueryLokiPodLogs
1276
+ */
1277
+ readonly limit?: string
1278
+
1279
+ /**
1280
+ *
1281
+ * @type {SortType}
1282
+ * @memberof ClusterLokiLogApiQueryLokiPodLogs
1283
+ */
1284
+ readonly sortType?: SortType
1285
+ }
1286
+
1287
+ /**
1288
+ * Request parameters for queryLokiRunningLogs operation in ClusterLokiLogApi.
1289
+ * @export
1290
+ * @interface ClusterLokiLogApiQueryLokiRunningLogsRequest
1291
+ */
1292
+ export interface ClusterLokiLogApiQueryLokiRunningLogsRequest {
1293
+ /**
1294
+ *
1295
+ * @type {string}
1296
+ * @memberof ClusterLokiLogApiQueryLokiRunningLogs
1297
+ */
1298
+ readonly orgName: string
1299
+
1300
+ /**
1301
+ *
1302
+ * @type {string}
1303
+ * @memberof ClusterLokiLogApiQueryLokiRunningLogs
1304
+ */
1305
+ readonly clusterName: string
1306
+
1307
+ /**
1308
+ * Start time in epoch nanoseconds.
1309
+ * @type {string}
1310
+ * @memberof ClusterLokiLogApiQueryLokiRunningLogs
1311
+ */
1312
+ readonly startTime: string
1313
+
1314
+ /**
1315
+ * End time in epoch nanoseconds.
1316
+ * @type {string}
1317
+ * @memberof ClusterLokiLogApiQueryLokiRunningLogs
1318
+ */
1319
+ readonly endTime: string
1320
+
1321
+ /**
1322
+ *
1323
+ * @type {string}
1324
+ * @memberof ClusterLokiLogApiQueryLokiRunningLogs
1325
+ */
1326
+ readonly componentName?: string
1327
+
1328
+ /**
1329
+ *
1330
+ * @type {string}
1331
+ * @memberof ClusterLokiLogApiQueryLokiRunningLogs
1332
+ */
1333
+ readonly instanceName?: string
1334
+
1335
+ /**
1336
+ *
1337
+ * @type {string}
1338
+ * @memberof ClusterLokiLogApiQueryLokiRunningLogs
1339
+ */
1340
+ readonly filename?: string
1341
+
1342
+ /**
1343
+ *
1344
+ * @type {string}
1345
+ * @memberof ClusterLokiLogApiQueryLokiRunningLogs
1346
+ */
1347
+ readonly limit?: string
1348
+
1349
+ /**
1350
+ *
1351
+ * @type {string}
1352
+ * @memberof ClusterLokiLogApiQueryLokiRunningLogs
1353
+ */
1354
+ readonly query?: string
1355
+
1356
+ /**
1357
+ *
1358
+ * @type {SortType}
1359
+ * @memberof ClusterLokiLogApiQueryLokiRunningLogs
1360
+ */
1361
+ readonly sortType?: SortType
1362
+ }
1363
+
1364
+ /**
1365
+ * Request parameters for queryLokiSlowLogs operation in ClusterLokiLogApi.
1366
+ * @export
1367
+ * @interface ClusterLokiLogApiQueryLokiSlowLogsRequest
1368
+ */
1369
+ export interface ClusterLokiLogApiQueryLokiSlowLogsRequest {
1370
+ /**
1371
+ *
1372
+ * @type {string}
1373
+ * @memberof ClusterLokiLogApiQueryLokiSlowLogs
1374
+ */
1375
+ readonly orgName: string
1376
+
1377
+ /**
1378
+ *
1379
+ * @type {string}
1380
+ * @memberof ClusterLokiLogApiQueryLokiSlowLogs
1381
+ */
1382
+ readonly clusterName: string
1383
+
1384
+ /**
1385
+ * Start time in epoch nanoseconds.
1386
+ * @type {string}
1387
+ * @memberof ClusterLokiLogApiQueryLokiSlowLogs
1388
+ */
1389
+ readonly startTime: string
1390
+
1391
+ /**
1392
+ * End time in epoch nanoseconds.
1393
+ * @type {string}
1394
+ * @memberof ClusterLokiLogApiQueryLokiSlowLogs
1395
+ */
1396
+ readonly endTime: string
1397
+
1398
+ /**
1399
+ *
1400
+ * @type {string}
1401
+ * @memberof ClusterLokiLogApiQueryLokiSlowLogs
1402
+ */
1403
+ readonly componentName?: string
1404
+
1405
+ /**
1406
+ *
1407
+ * @type {string}
1408
+ * @memberof ClusterLokiLogApiQueryLokiSlowLogs
1409
+ */
1410
+ readonly instanceName?: string
1411
+
1412
+ /**
1413
+ *
1414
+ * @type {string}
1415
+ * @memberof ClusterLokiLogApiQueryLokiSlowLogs
1416
+ */
1417
+ readonly query?: string
1418
+
1419
+ /**
1420
+ *
1421
+ * @type {string}
1422
+ * @memberof ClusterLokiLogApiQueryLokiSlowLogs
1423
+ */
1424
+ readonly limit?: string
1425
+
1426
+ /**
1427
+ *
1428
+ * @type {SortType}
1429
+ * @memberof ClusterLokiLogApiQueryLokiSlowLogs
1430
+ */
1431
+ readonly sortType?: SortType
1432
+ }
1433
+
1434
+ /**
1435
+ * ClusterLokiLogApi - object-oriented interface
1436
+ * @export
1437
+ * @class ClusterLokiLogApi
1438
+ * @extends {BaseAPI}
1439
+ */
1440
+ export class ClusterLokiLogApi extends BaseAPI implements ClusterLokiLogApiInterface {
1441
+ /**
1442
+ * Export logs through the Loki compatibility API.
1443
+ * @summary Export Loki logs
1444
+ * @param {ClusterLokiLogApiExportLokiClusterLogsRequest} requestParameters Request parameters.
1445
+ * @param {*} [options] Override http request option.
1446
+ * @throws {RequiredError}
1447
+ * @memberof ClusterLokiLogApi
1448
+ */
1449
+ public exportLokiClusterLogs(requestParameters: ClusterLokiLogApiExportLokiClusterLogsRequest, options?: RawAxiosRequestConfig) {
1450
+ return ClusterLokiLogApiFp(this.configuration).exportLokiClusterLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.logType, requestParameters.startTime, requestParameters.endTime, requestParameters.format, requestParameters.query, requestParameters.filename, requestParameters.componentName, requestParameters.instanceName, requestParameters.maxLines, options).then((request) => request(this.axios, this.basePath));
1451
+ }
1452
+
1453
+ /**
1454
+ * Query slow-log statistics through the Loki compatibility API.
1455
+ * @summary Query Loki slow-log statistics
1456
+ * @param {ClusterLokiLogApiGetLokiSlowLogStatsRequest} requestParameters Request parameters.
1457
+ * @param {*} [options] Override http request option.
1458
+ * @throws {RequiredError}
1459
+ * @memberof ClusterLokiLogApi
1460
+ */
1461
+ public getLokiSlowLogStats(requestParameters: ClusterLokiLogApiGetLokiSlowLogStatsRequest, options?: RawAxiosRequestConfig) {
1462
+ return ClusterLokiLogApiFp(this.configuration).getLokiSlowLogStats(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, options).then((request) => request(this.axios, this.basePath));
1463
+ }
1464
+
1465
+ /**
1466
+ * Query audit logs through the Loki compatibility API.
1467
+ * @summary Query Loki audit logs
1468
+ * @param {ClusterLokiLogApiQueryLokiAuditLogsRequest} requestParameters Request parameters.
1469
+ * @param {*} [options] Override http request option.
1470
+ * @throws {RequiredError}
1471
+ * @memberof ClusterLokiLogApi
1472
+ */
1473
+ 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));
1475
+ }
1476
+
1477
+ /**
1478
+ * Query error logs through the Loki compatibility API.
1479
+ * @summary Query Loki error logs
1480
+ * @param {ClusterLokiLogApiQueryLokiErrorLogsRequest} requestParameters Request parameters.
1481
+ * @param {*} [options] Override http request option.
1482
+ * @throws {RequiredError}
1483
+ * @memberof ClusterLokiLogApi
1484
+ */
1485
+ public queryLokiErrorLogs(requestParameters: ClusterLokiLogApiQueryLokiErrorLogsRequest, options?: RawAxiosRequestConfig) {
1486
+ return ClusterLokiLogApiFp(this.configuration).queryLokiErrorLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.filename, requestParameters.query, requestParameters.limit, requestParameters.sortType, options).then((request) => request(this.axios, this.basePath));
1487
+ }
1488
+
1489
+ /**
1490
+ * Query pod logs through the Loki compatibility API.
1491
+ * @summary Query Loki pod logs
1492
+ * @param {ClusterLokiLogApiQueryLokiPodLogsRequest} requestParameters Request parameters.
1493
+ * @param {*} [options] Override http request option.
1494
+ * @throws {RequiredError}
1495
+ * @memberof ClusterLokiLogApi
1496
+ */
1497
+ public queryLokiPodLogs(requestParameters: ClusterLokiLogApiQueryLokiPodLogsRequest, options?: RawAxiosRequestConfig) {
1498
+ return ClusterLokiLogApiFp(this.configuration).queryLokiPodLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.filename, requestParameters.limit, requestParameters.sortType, options).then((request) => request(this.axios, this.basePath));
1499
+ }
1500
+
1501
+ /**
1502
+ * Query running logs through the Loki compatibility API.
1503
+ * @summary Query Loki running logs
1504
+ * @param {ClusterLokiLogApiQueryLokiRunningLogsRequest} requestParameters Request parameters.
1505
+ * @param {*} [options] Override http request option.
1506
+ * @throws {RequiredError}
1507
+ * @memberof ClusterLokiLogApi
1508
+ */
1509
+ public queryLokiRunningLogs(requestParameters: ClusterLokiLogApiQueryLokiRunningLogsRequest, options?: RawAxiosRequestConfig) {
1510
+ return ClusterLokiLogApiFp(this.configuration).queryLokiRunningLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.filename, requestParameters.limit, requestParameters.query, requestParameters.sortType, options).then((request) => request(this.axios, this.basePath));
1511
+ }
1512
+
1513
+ /**
1514
+ * Query slow logs through the Loki compatibility API.
1515
+ * @summary Query Loki slow logs
1516
+ * @param {ClusterLokiLogApiQueryLokiSlowLogsRequest} requestParameters Request parameters.
1517
+ * @param {*} [options] Override http request option.
1518
+ * @throws {RequiredError}
1519
+ * @memberof ClusterLokiLogApi
1520
+ */
1521
+ public queryLokiSlowLogs(requestParameters: ClusterLokiLogApiQueryLokiSlowLogsRequest, options?: RawAxiosRequestConfig) {
1522
+ return ClusterLokiLogApiFp(this.configuration).queryLokiSlowLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.limit, requestParameters.sortType, options).then((request) => request(this.axios, this.basePath));
1523
+ }
1524
+ }
1525
+