kb-cloud-client-typescript 2.3.0-alpha.227 → 2.3.0-alpha.229
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/api.d.ts +1 -0
- package/dist/adminapi/api.d.ts.map +1 -1
- package/dist/adminapi/api.js +1 -0
- package/dist/adminapi/api.js.map +1 -1
- package/dist/adminapi/apis/cluster-loki-log-api.d.ts +885 -0
- package/dist/adminapi/apis/cluster-loki-log-api.d.ts.map +1 -0
- package/dist/adminapi/apis/cluster-loki-log-api.js +853 -0
- package/dist/adminapi/apis/cluster-loki-log-api.js.map +1 -0
- package/dist/adminapi/apis/shared-api.d.ts +848 -15
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +845 -56
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/environment.d.ts +7 -0
- package/dist/adminapi/models/environment.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +1 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +1 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/log-backend-type.d.ts +22 -0
- package/dist/adminapi/models/log-backend-type.d.ts.map +1 -0
- package/dist/adminapi/models/log-backend-type.js +26 -0
- package/dist/adminapi/models/log-backend-type.js.map +1 -0
- package/dist/openapi/api.d.ts +1 -0
- package/dist/openapi/api.d.ts.map +1 -1
- package/dist/openapi/api.js +1 -0
- package/dist/openapi/api.js.map +1 -1
- package/dist/openapi/apis/cluster-loki-log-api.d.ts +885 -0
- package/dist/openapi/apis/cluster-loki-log-api.d.ts.map +1 -0
- package/dist/openapi/apis/cluster-loki-log-api.js +853 -0
- package/dist/openapi/apis/cluster-loki-log-api.js.map +1 -0
- package/dist/openapi/apis/shared-api.d.ts +844 -11
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +845 -56
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/environment.d.ts +7 -0
- package/dist/openapi/models/environment.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +1 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +1 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/log-backend-type.d.ts +22 -0
- package/dist/openapi/models/log-backend-type.d.ts.map +1 -0
- package/dist/openapi/models/log-backend-type.js +26 -0
- package/dist/openapi/models/log-backend-type.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +2 -0
- package/src/adminapi/api.ts +1 -0
- package/src/adminapi/apis/cluster-loki-log-api.ts +1525 -0
- package/src/adminapi/apis/shared-api.ts +1620 -173
- package/src/adminapi/models/environment.ts +9 -0
- package/src/adminapi/models/index.ts +1 -0
- package/src/adminapi/models/log-backend-type.ts +31 -0
- package/src/adminapi.yaml +309 -0
- package/src/openapi/.openapi-generator/FILES +2 -0
- package/src/openapi/api.ts +1 -0
- package/src/openapi/apis/cluster-loki-log-api.ts +1525 -0
- package/src/openapi/apis/shared-api.ts +1620 -173
- package/src/openapi/models/environment.ts +9 -0
- package/src/openapi/models/index.ts +1 -0
- package/src/openapi/models/log-backend-type.ts +31 -0
- package/src/openapi.yaml +309 -0
|
@@ -0,0 +1,853 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Admin API
|
|
6
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@apecloud.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.ClusterLokiLogApi = exports.ClusterLokiLogApiFactory = exports.ClusterLokiLogApiFp = exports.ClusterLokiLogApiAxiosParamCreator = void 0;
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
21
|
+
// Some imports not used depending on template conditions
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
const common_1 = require("../common");
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
const base_1 = require("../base");
|
|
26
|
+
/**
|
|
27
|
+
* ClusterLokiLogApi - axios parameter creator
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
const ClusterLokiLogApiAxiosParamCreator = function (configuration) {
|
|
31
|
+
return {
|
|
32
|
+
/**
|
|
33
|
+
* Export logs through the Loki compatibility API.
|
|
34
|
+
* @summary Export Loki logs
|
|
35
|
+
* @param {string} orgName
|
|
36
|
+
* @param {string} clusterName
|
|
37
|
+
* @param {string} logType Log type: runninglog, errorlog, slow, auditlog
|
|
38
|
+
* @param {number} [startTime] Start time in epoch nanoseconds. If omitted, exports from the earliest available log
|
|
39
|
+
* @param {number} [endTime] End time in epoch nanoseconds. If omitted, exports up to the latest available log
|
|
40
|
+
* @param {string} [format] Export format: csv, raw, jsonl
|
|
41
|
+
* @param {string} [query]
|
|
42
|
+
* @param {string} [filename]
|
|
43
|
+
* @param {string} [componentName]
|
|
44
|
+
* @param {string} [instanceName]
|
|
45
|
+
* @param {number} [maxLines] Maximum number of lines to export. Defaults to 100000 if omitted
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
exportLokiClusterLogs: async (orgName, clusterName, logType, startTime, endTime, format, query, filename, componentName, instanceName, maxLines, options = {}) => {
|
|
50
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
51
|
+
(0, common_1.assertParamExists)('exportLokiClusterLogs', 'orgName', orgName);
|
|
52
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
53
|
+
(0, common_1.assertParamExists)('exportLokiClusterLogs', 'clusterName', clusterName);
|
|
54
|
+
// verify required parameter 'logType' is not null or undefined
|
|
55
|
+
(0, common_1.assertParamExists)('exportLokiClusterLogs', 'logType', logType);
|
|
56
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/export`
|
|
57
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
58
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
59
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
60
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
61
|
+
let baseOptions;
|
|
62
|
+
if (configuration) {
|
|
63
|
+
baseOptions = configuration.baseOptions;
|
|
64
|
+
}
|
|
65
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
66
|
+
const localVarHeaderParameter = {};
|
|
67
|
+
const localVarQueryParameter = {};
|
|
68
|
+
// authentication BearerToken required
|
|
69
|
+
// http bearer authentication required
|
|
70
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
71
|
+
// authentication DigestAuth required
|
|
72
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
73
|
+
if (logType !== undefined) {
|
|
74
|
+
localVarQueryParameter['logType'] = logType;
|
|
75
|
+
}
|
|
76
|
+
if (startTime !== undefined) {
|
|
77
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
78
|
+
}
|
|
79
|
+
if (endTime !== undefined) {
|
|
80
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
81
|
+
}
|
|
82
|
+
if (format !== undefined) {
|
|
83
|
+
localVarQueryParameter['format'] = format;
|
|
84
|
+
}
|
|
85
|
+
if (query !== undefined) {
|
|
86
|
+
localVarQueryParameter['query'] = query;
|
|
87
|
+
}
|
|
88
|
+
if (filename !== undefined) {
|
|
89
|
+
localVarQueryParameter['filename'] = filename;
|
|
90
|
+
}
|
|
91
|
+
if (componentName !== undefined) {
|
|
92
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
93
|
+
}
|
|
94
|
+
if (instanceName !== undefined) {
|
|
95
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
96
|
+
}
|
|
97
|
+
if (maxLines !== undefined) {
|
|
98
|
+
localVarQueryParameter['maxLines'] = maxLines;
|
|
99
|
+
}
|
|
100
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
101
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
102
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
103
|
+
return {
|
|
104
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
105
|
+
options: localVarRequestOptions,
|
|
106
|
+
};
|
|
107
|
+
},
|
|
108
|
+
/**
|
|
109
|
+
* Query slow-log statistics through the Loki compatibility API.
|
|
110
|
+
* @summary Query Loki slow-log statistics
|
|
111
|
+
* @param {string} orgName
|
|
112
|
+
* @param {string} clusterName
|
|
113
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
114
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
115
|
+
* @param {string} [componentName]
|
|
116
|
+
* @param {string} [instanceName]
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
getLokiSlowLogStats: async (orgName, clusterName, startTime, endTime, componentName, instanceName, options = {}) => {
|
|
121
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
122
|
+
(0, common_1.assertParamExists)('getLokiSlowLogStats', 'orgName', orgName);
|
|
123
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
124
|
+
(0, common_1.assertParamExists)('getLokiSlowLogStats', 'clusterName', clusterName);
|
|
125
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
126
|
+
(0, common_1.assertParamExists)('getLokiSlowLogStats', 'startTime', startTime);
|
|
127
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
128
|
+
(0, common_1.assertParamExists)('getLokiSlowLogStats', 'endTime', endTime);
|
|
129
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/slow/stats`
|
|
130
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
131
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
132
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
133
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
134
|
+
let baseOptions;
|
|
135
|
+
if (configuration) {
|
|
136
|
+
baseOptions = configuration.baseOptions;
|
|
137
|
+
}
|
|
138
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
139
|
+
const localVarHeaderParameter = {};
|
|
140
|
+
const localVarQueryParameter = {};
|
|
141
|
+
// authentication BearerToken required
|
|
142
|
+
// http bearer authentication required
|
|
143
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
144
|
+
// authentication DigestAuth required
|
|
145
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
146
|
+
if (startTime !== undefined) {
|
|
147
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
148
|
+
}
|
|
149
|
+
if (endTime !== undefined) {
|
|
150
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
151
|
+
}
|
|
152
|
+
if (componentName !== undefined) {
|
|
153
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
154
|
+
}
|
|
155
|
+
if (instanceName !== undefined) {
|
|
156
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
157
|
+
}
|
|
158
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
159
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
160
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
161
|
+
return {
|
|
162
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
163
|
+
options: localVarRequestOptions,
|
|
164
|
+
};
|
|
165
|
+
},
|
|
166
|
+
/**
|
|
167
|
+
* Query audit logs through the Loki compatibility API.
|
|
168
|
+
* @summary Query Loki audit logs
|
|
169
|
+
* @param {string} orgName
|
|
170
|
+
* @param {string} clusterName
|
|
171
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
172
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
173
|
+
* @param {string} [limit]
|
|
174
|
+
* @param {string} [componentName]
|
|
175
|
+
* @param {string} [instanceName]
|
|
176
|
+
* @param {SortType} [sortType]
|
|
177
|
+
* @param {*} [options] Override http request option.
|
|
178
|
+
* @throws {RequiredError}
|
|
179
|
+
*/
|
|
180
|
+
queryLokiAuditLogs: async (orgName, clusterName, startTime, endTime, limit, componentName, instanceName, sortType, options = {}) => {
|
|
181
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
182
|
+
(0, common_1.assertParamExists)('queryLokiAuditLogs', 'orgName', orgName);
|
|
183
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
184
|
+
(0, common_1.assertParamExists)('queryLokiAuditLogs', 'clusterName', clusterName);
|
|
185
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
186
|
+
(0, common_1.assertParamExists)('queryLokiAuditLogs', 'startTime', startTime);
|
|
187
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
188
|
+
(0, common_1.assertParamExists)('queryLokiAuditLogs', 'endTime', endTime);
|
|
189
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/audit`
|
|
190
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
191
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
192
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
193
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
194
|
+
let baseOptions;
|
|
195
|
+
if (configuration) {
|
|
196
|
+
baseOptions = configuration.baseOptions;
|
|
197
|
+
}
|
|
198
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
199
|
+
const localVarHeaderParameter = {};
|
|
200
|
+
const localVarQueryParameter = {};
|
|
201
|
+
// authentication BearerToken required
|
|
202
|
+
// http bearer authentication required
|
|
203
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
204
|
+
// authentication DigestAuth required
|
|
205
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
206
|
+
if (startTime !== undefined) {
|
|
207
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
208
|
+
}
|
|
209
|
+
if (endTime !== undefined) {
|
|
210
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
211
|
+
}
|
|
212
|
+
if (limit !== undefined) {
|
|
213
|
+
localVarQueryParameter['limit'] = limit;
|
|
214
|
+
}
|
|
215
|
+
if (componentName !== undefined) {
|
|
216
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
217
|
+
}
|
|
218
|
+
if (instanceName !== undefined) {
|
|
219
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
220
|
+
}
|
|
221
|
+
if (sortType !== undefined) {
|
|
222
|
+
localVarQueryParameter['sortType'] = sortType;
|
|
223
|
+
}
|
|
224
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
225
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
226
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
227
|
+
return {
|
|
228
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
229
|
+
options: localVarRequestOptions,
|
|
230
|
+
};
|
|
231
|
+
},
|
|
232
|
+
/**
|
|
233
|
+
* Query error logs through the Loki compatibility API.
|
|
234
|
+
* @summary Query Loki error logs
|
|
235
|
+
* @param {string} orgName
|
|
236
|
+
* @param {string} clusterName
|
|
237
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
238
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
239
|
+
* @param {string} [componentName]
|
|
240
|
+
* @param {string} [instanceName]
|
|
241
|
+
* @param {string} [filename]
|
|
242
|
+
* @param {string} [query]
|
|
243
|
+
* @param {string} [limit]
|
|
244
|
+
* @param {SortType} [sortType]
|
|
245
|
+
* @param {*} [options] Override http request option.
|
|
246
|
+
* @throws {RequiredError}
|
|
247
|
+
*/
|
|
248
|
+
queryLokiErrorLogs: async (orgName, clusterName, startTime, endTime, componentName, instanceName, filename, query, limit, sortType, options = {}) => {
|
|
249
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
250
|
+
(0, common_1.assertParamExists)('queryLokiErrorLogs', 'orgName', orgName);
|
|
251
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
252
|
+
(0, common_1.assertParamExists)('queryLokiErrorLogs', 'clusterName', clusterName);
|
|
253
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
254
|
+
(0, common_1.assertParamExists)('queryLokiErrorLogs', 'startTime', startTime);
|
|
255
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
256
|
+
(0, common_1.assertParamExists)('queryLokiErrorLogs', 'endTime', endTime);
|
|
257
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/error`
|
|
258
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
259
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
260
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
261
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
262
|
+
let baseOptions;
|
|
263
|
+
if (configuration) {
|
|
264
|
+
baseOptions = configuration.baseOptions;
|
|
265
|
+
}
|
|
266
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
267
|
+
const localVarHeaderParameter = {};
|
|
268
|
+
const localVarQueryParameter = {};
|
|
269
|
+
// authentication BearerToken required
|
|
270
|
+
// http bearer authentication required
|
|
271
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
272
|
+
// authentication DigestAuth required
|
|
273
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
274
|
+
if (componentName !== undefined) {
|
|
275
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
276
|
+
}
|
|
277
|
+
if (instanceName !== undefined) {
|
|
278
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
279
|
+
}
|
|
280
|
+
if (filename !== undefined) {
|
|
281
|
+
localVarQueryParameter['filename'] = filename;
|
|
282
|
+
}
|
|
283
|
+
if (startTime !== undefined) {
|
|
284
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
285
|
+
}
|
|
286
|
+
if (endTime !== undefined) {
|
|
287
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
288
|
+
}
|
|
289
|
+
if (query !== undefined) {
|
|
290
|
+
localVarQueryParameter['query'] = query;
|
|
291
|
+
}
|
|
292
|
+
if (limit !== undefined) {
|
|
293
|
+
localVarQueryParameter['limit'] = limit;
|
|
294
|
+
}
|
|
295
|
+
if (sortType !== undefined) {
|
|
296
|
+
localVarQueryParameter['sortType'] = sortType;
|
|
297
|
+
}
|
|
298
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
299
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
300
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
301
|
+
return {
|
|
302
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
303
|
+
options: localVarRequestOptions,
|
|
304
|
+
};
|
|
305
|
+
},
|
|
306
|
+
/**
|
|
307
|
+
* Query pod logs through the Loki compatibility API.
|
|
308
|
+
* @summary Query Loki pod logs
|
|
309
|
+
* @param {string} orgName
|
|
310
|
+
* @param {string} clusterName
|
|
311
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
312
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
313
|
+
* @param {string} [componentName]
|
|
314
|
+
* @param {string} [instanceName]
|
|
315
|
+
* @param {string} [filename]
|
|
316
|
+
* @param {string} [limit]
|
|
317
|
+
* @param {SortType} [sortType]
|
|
318
|
+
* @param {*} [options] Override http request option.
|
|
319
|
+
* @throws {RequiredError}
|
|
320
|
+
*/
|
|
321
|
+
queryLokiPodLogs: async (orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, sortType, options = {}) => {
|
|
322
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
323
|
+
(0, common_1.assertParamExists)('queryLokiPodLogs', 'orgName', orgName);
|
|
324
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
325
|
+
(0, common_1.assertParamExists)('queryLokiPodLogs', 'clusterName', clusterName);
|
|
326
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
327
|
+
(0, common_1.assertParamExists)('queryLokiPodLogs', 'startTime', startTime);
|
|
328
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
329
|
+
(0, common_1.assertParamExists)('queryLokiPodLogs', 'endTime', endTime);
|
|
330
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/pod`
|
|
331
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
332
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
333
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
334
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
335
|
+
let baseOptions;
|
|
336
|
+
if (configuration) {
|
|
337
|
+
baseOptions = configuration.baseOptions;
|
|
338
|
+
}
|
|
339
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
340
|
+
const localVarHeaderParameter = {};
|
|
341
|
+
const localVarQueryParameter = {};
|
|
342
|
+
// authentication BearerToken required
|
|
343
|
+
// http bearer authentication required
|
|
344
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
345
|
+
// authentication DigestAuth required
|
|
346
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
347
|
+
if (componentName !== undefined) {
|
|
348
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
349
|
+
}
|
|
350
|
+
if (instanceName !== undefined) {
|
|
351
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
352
|
+
}
|
|
353
|
+
if (filename !== undefined) {
|
|
354
|
+
localVarQueryParameter['filename'] = filename;
|
|
355
|
+
}
|
|
356
|
+
if (startTime !== undefined) {
|
|
357
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
358
|
+
}
|
|
359
|
+
if (endTime !== undefined) {
|
|
360
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
361
|
+
}
|
|
362
|
+
if (limit !== undefined) {
|
|
363
|
+
localVarQueryParameter['limit'] = limit;
|
|
364
|
+
}
|
|
365
|
+
if (sortType !== undefined) {
|
|
366
|
+
localVarQueryParameter['sortType'] = sortType;
|
|
367
|
+
}
|
|
368
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
369
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
370
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
371
|
+
return {
|
|
372
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
373
|
+
options: localVarRequestOptions,
|
|
374
|
+
};
|
|
375
|
+
},
|
|
376
|
+
/**
|
|
377
|
+
* Query running logs through the Loki compatibility API.
|
|
378
|
+
* @summary Query Loki running logs
|
|
379
|
+
* @param {string} orgName
|
|
380
|
+
* @param {string} clusterName
|
|
381
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
382
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
383
|
+
* @param {string} [componentName]
|
|
384
|
+
* @param {string} [instanceName]
|
|
385
|
+
* @param {string} [filename]
|
|
386
|
+
* @param {string} [limit]
|
|
387
|
+
* @param {string} [query]
|
|
388
|
+
* @param {SortType} [sortType]
|
|
389
|
+
* @param {*} [options] Override http request option.
|
|
390
|
+
* @throws {RequiredError}
|
|
391
|
+
*/
|
|
392
|
+
queryLokiRunningLogs: async (orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, query, sortType, options = {}) => {
|
|
393
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
394
|
+
(0, common_1.assertParamExists)('queryLokiRunningLogs', 'orgName', orgName);
|
|
395
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
396
|
+
(0, common_1.assertParamExists)('queryLokiRunningLogs', 'clusterName', clusterName);
|
|
397
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
398
|
+
(0, common_1.assertParamExists)('queryLokiRunningLogs', 'startTime', startTime);
|
|
399
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
400
|
+
(0, common_1.assertParamExists)('queryLokiRunningLogs', 'endTime', endTime);
|
|
401
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/running`
|
|
402
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
403
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
404
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
405
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
406
|
+
let baseOptions;
|
|
407
|
+
if (configuration) {
|
|
408
|
+
baseOptions = configuration.baseOptions;
|
|
409
|
+
}
|
|
410
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
411
|
+
const localVarHeaderParameter = {};
|
|
412
|
+
const localVarQueryParameter = {};
|
|
413
|
+
// authentication BearerToken required
|
|
414
|
+
// http bearer authentication required
|
|
415
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
416
|
+
// authentication DigestAuth required
|
|
417
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
418
|
+
if (componentName !== undefined) {
|
|
419
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
420
|
+
}
|
|
421
|
+
if (instanceName !== undefined) {
|
|
422
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
423
|
+
}
|
|
424
|
+
if (filename !== undefined) {
|
|
425
|
+
localVarQueryParameter['filename'] = filename;
|
|
426
|
+
}
|
|
427
|
+
if (startTime !== undefined) {
|
|
428
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
429
|
+
}
|
|
430
|
+
if (endTime !== undefined) {
|
|
431
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
432
|
+
}
|
|
433
|
+
if (limit !== undefined) {
|
|
434
|
+
localVarQueryParameter['limit'] = limit;
|
|
435
|
+
}
|
|
436
|
+
if (query !== undefined) {
|
|
437
|
+
localVarQueryParameter['query'] = query;
|
|
438
|
+
}
|
|
439
|
+
if (sortType !== undefined) {
|
|
440
|
+
localVarQueryParameter['sortType'] = sortType;
|
|
441
|
+
}
|
|
442
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
443
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
444
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
445
|
+
return {
|
|
446
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
447
|
+
options: localVarRequestOptions,
|
|
448
|
+
};
|
|
449
|
+
},
|
|
450
|
+
/**
|
|
451
|
+
* Query slow logs through the Loki compatibility API.
|
|
452
|
+
* @summary Query Loki slow logs
|
|
453
|
+
* @param {string} orgName
|
|
454
|
+
* @param {string} clusterName
|
|
455
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
456
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
457
|
+
* @param {string} [componentName]
|
|
458
|
+
* @param {string} [instanceName]
|
|
459
|
+
* @param {string} [query]
|
|
460
|
+
* @param {string} [limit]
|
|
461
|
+
* @param {SortType} [sortType]
|
|
462
|
+
* @param {*} [options] Override http request option.
|
|
463
|
+
* @throws {RequiredError}
|
|
464
|
+
*/
|
|
465
|
+
queryLokiSlowLogs: async (orgName, clusterName, startTime, endTime, componentName, instanceName, query, limit, sortType, options = {}) => {
|
|
466
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
467
|
+
(0, common_1.assertParamExists)('queryLokiSlowLogs', 'orgName', orgName);
|
|
468
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
469
|
+
(0, common_1.assertParamExists)('queryLokiSlowLogs', 'clusterName', clusterName);
|
|
470
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
471
|
+
(0, common_1.assertParamExists)('queryLokiSlowLogs', 'startTime', startTime);
|
|
472
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
473
|
+
(0, common_1.assertParamExists)('queryLokiSlowLogs', 'endTime', endTime);
|
|
474
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/slow`
|
|
475
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
476
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
477
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
478
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
479
|
+
let baseOptions;
|
|
480
|
+
if (configuration) {
|
|
481
|
+
baseOptions = configuration.baseOptions;
|
|
482
|
+
}
|
|
483
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
484
|
+
const localVarHeaderParameter = {};
|
|
485
|
+
const localVarQueryParameter = {};
|
|
486
|
+
// authentication BearerToken required
|
|
487
|
+
// http bearer authentication required
|
|
488
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
489
|
+
// authentication DigestAuth required
|
|
490
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
491
|
+
if (startTime !== undefined) {
|
|
492
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
493
|
+
}
|
|
494
|
+
if (endTime !== undefined) {
|
|
495
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
496
|
+
}
|
|
497
|
+
if (componentName !== undefined) {
|
|
498
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
499
|
+
}
|
|
500
|
+
if (instanceName !== undefined) {
|
|
501
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
502
|
+
}
|
|
503
|
+
if (query !== undefined) {
|
|
504
|
+
localVarQueryParameter['query'] = query;
|
|
505
|
+
}
|
|
506
|
+
if (limit !== undefined) {
|
|
507
|
+
localVarQueryParameter['limit'] = limit;
|
|
508
|
+
}
|
|
509
|
+
if (sortType !== undefined) {
|
|
510
|
+
localVarQueryParameter['sortType'] = sortType;
|
|
511
|
+
}
|
|
512
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
513
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
514
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
515
|
+
return {
|
|
516
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
517
|
+
options: localVarRequestOptions,
|
|
518
|
+
};
|
|
519
|
+
},
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
exports.ClusterLokiLogApiAxiosParamCreator = ClusterLokiLogApiAxiosParamCreator;
|
|
523
|
+
/**
|
|
524
|
+
* ClusterLokiLogApi - functional programming interface
|
|
525
|
+
* @export
|
|
526
|
+
*/
|
|
527
|
+
const ClusterLokiLogApiFp = function (configuration) {
|
|
528
|
+
const localVarAxiosParamCreator = (0, exports.ClusterLokiLogApiAxiosParamCreator)(configuration);
|
|
529
|
+
return {
|
|
530
|
+
/**
|
|
531
|
+
* Export logs through the Loki compatibility API.
|
|
532
|
+
* @summary Export Loki logs
|
|
533
|
+
* @param {string} orgName
|
|
534
|
+
* @param {string} clusterName
|
|
535
|
+
* @param {string} logType Log type: runninglog, errorlog, slow, auditlog
|
|
536
|
+
* @param {number} [startTime] Start time in epoch nanoseconds. If omitted, exports from the earliest available log
|
|
537
|
+
* @param {number} [endTime] End time in epoch nanoseconds. If omitted, exports up to the latest available log
|
|
538
|
+
* @param {string} [format] Export format: csv, raw, jsonl
|
|
539
|
+
* @param {string} [query]
|
|
540
|
+
* @param {string} [filename]
|
|
541
|
+
* @param {string} [componentName]
|
|
542
|
+
* @param {string} [instanceName]
|
|
543
|
+
* @param {number} [maxLines] Maximum number of lines to export. Defaults to 100000 if omitted
|
|
544
|
+
* @param {*} [options] Override http request option.
|
|
545
|
+
* @throws {RequiredError}
|
|
546
|
+
*/
|
|
547
|
+
async exportLokiClusterLogs(orgName, clusterName, logType, startTime, endTime, format, query, filename, componentName, instanceName, maxLines, options) {
|
|
548
|
+
var _a, _b, _c;
|
|
549
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.exportLokiClusterLogs(orgName, clusterName, logType, startTime, endTime, format, query, filename, componentName, instanceName, maxLines, options);
|
|
550
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
551
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterLokiLogApi.exportLokiClusterLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
552
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
553
|
+
},
|
|
554
|
+
/**
|
|
555
|
+
* Query slow-log statistics through the Loki compatibility API.
|
|
556
|
+
* @summary Query Loki slow-log statistics
|
|
557
|
+
* @param {string} orgName
|
|
558
|
+
* @param {string} clusterName
|
|
559
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
560
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
561
|
+
* @param {string} [componentName]
|
|
562
|
+
* @param {string} [instanceName]
|
|
563
|
+
* @param {*} [options] Override http request option.
|
|
564
|
+
* @throws {RequiredError}
|
|
565
|
+
*/
|
|
566
|
+
async getLokiSlowLogStats(orgName, clusterName, startTime, endTime, componentName, instanceName, options) {
|
|
567
|
+
var _a, _b, _c;
|
|
568
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLokiSlowLogStats(orgName, clusterName, startTime, endTime, componentName, instanceName, options);
|
|
569
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
570
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterLokiLogApi.getLokiSlowLogStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
571
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
572
|
+
},
|
|
573
|
+
/**
|
|
574
|
+
* Query audit logs through the Loki compatibility API.
|
|
575
|
+
* @summary Query Loki audit logs
|
|
576
|
+
* @param {string} orgName
|
|
577
|
+
* @param {string} clusterName
|
|
578
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
579
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
580
|
+
* @param {string} [limit]
|
|
581
|
+
* @param {string} [componentName]
|
|
582
|
+
* @param {string} [instanceName]
|
|
583
|
+
* @param {SortType} [sortType]
|
|
584
|
+
* @param {*} [options] Override http request option.
|
|
585
|
+
* @throws {RequiredError}
|
|
586
|
+
*/
|
|
587
|
+
async queryLokiAuditLogs(orgName, clusterName, startTime, endTime, limit, componentName, instanceName, sortType, options) {
|
|
588
|
+
var _a, _b, _c;
|
|
589
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiAuditLogs(orgName, clusterName, startTime, endTime, limit, componentName, instanceName, sortType, options);
|
|
590
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
591
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterLokiLogApi.queryLokiAuditLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
592
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
593
|
+
},
|
|
594
|
+
/**
|
|
595
|
+
* Query error logs through the Loki compatibility API.
|
|
596
|
+
* @summary Query Loki error logs
|
|
597
|
+
* @param {string} orgName
|
|
598
|
+
* @param {string} clusterName
|
|
599
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
600
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
601
|
+
* @param {string} [componentName]
|
|
602
|
+
* @param {string} [instanceName]
|
|
603
|
+
* @param {string} [filename]
|
|
604
|
+
* @param {string} [query]
|
|
605
|
+
* @param {string} [limit]
|
|
606
|
+
* @param {SortType} [sortType]
|
|
607
|
+
* @param {*} [options] Override http request option.
|
|
608
|
+
* @throws {RequiredError}
|
|
609
|
+
*/
|
|
610
|
+
async queryLokiErrorLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, query, limit, sortType, options) {
|
|
611
|
+
var _a, _b, _c;
|
|
612
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiErrorLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, query, limit, sortType, options);
|
|
613
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
614
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterLokiLogApi.queryLokiErrorLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
615
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
616
|
+
},
|
|
617
|
+
/**
|
|
618
|
+
* Query pod logs through the Loki compatibility API.
|
|
619
|
+
* @summary Query Loki pod logs
|
|
620
|
+
* @param {string} orgName
|
|
621
|
+
* @param {string} clusterName
|
|
622
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
623
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
624
|
+
* @param {string} [componentName]
|
|
625
|
+
* @param {string} [instanceName]
|
|
626
|
+
* @param {string} [filename]
|
|
627
|
+
* @param {string} [limit]
|
|
628
|
+
* @param {SortType} [sortType]
|
|
629
|
+
* @param {*} [options] Override http request option.
|
|
630
|
+
* @throws {RequiredError}
|
|
631
|
+
*/
|
|
632
|
+
async queryLokiPodLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, sortType, options) {
|
|
633
|
+
var _a, _b, _c;
|
|
634
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiPodLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, sortType, options);
|
|
635
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
636
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterLokiLogApi.queryLokiPodLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
637
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
638
|
+
},
|
|
639
|
+
/**
|
|
640
|
+
* Query running logs through the Loki compatibility API.
|
|
641
|
+
* @summary Query Loki running logs
|
|
642
|
+
* @param {string} orgName
|
|
643
|
+
* @param {string} clusterName
|
|
644
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
645
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
646
|
+
* @param {string} [componentName]
|
|
647
|
+
* @param {string} [instanceName]
|
|
648
|
+
* @param {string} [filename]
|
|
649
|
+
* @param {string} [limit]
|
|
650
|
+
* @param {string} [query]
|
|
651
|
+
* @param {SortType} [sortType]
|
|
652
|
+
* @param {*} [options] Override http request option.
|
|
653
|
+
* @throws {RequiredError}
|
|
654
|
+
*/
|
|
655
|
+
async queryLokiRunningLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, query, sortType, options) {
|
|
656
|
+
var _a, _b, _c;
|
|
657
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiRunningLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, query, sortType, options);
|
|
658
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
659
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterLokiLogApi.queryLokiRunningLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
660
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
661
|
+
},
|
|
662
|
+
/**
|
|
663
|
+
* Query slow logs through the Loki compatibility API.
|
|
664
|
+
* @summary Query Loki slow logs
|
|
665
|
+
* @param {string} orgName
|
|
666
|
+
* @param {string} clusterName
|
|
667
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
668
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
669
|
+
* @param {string} [componentName]
|
|
670
|
+
* @param {string} [instanceName]
|
|
671
|
+
* @param {string} [query]
|
|
672
|
+
* @param {string} [limit]
|
|
673
|
+
* @param {SortType} [sortType]
|
|
674
|
+
* @param {*} [options] Override http request option.
|
|
675
|
+
* @throws {RequiredError}
|
|
676
|
+
*/
|
|
677
|
+
async queryLokiSlowLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, query, limit, sortType, options) {
|
|
678
|
+
var _a, _b, _c;
|
|
679
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiSlowLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, query, limit, sortType, options);
|
|
680
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
681
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterLokiLogApi.queryLokiSlowLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
682
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
683
|
+
},
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
exports.ClusterLokiLogApiFp = ClusterLokiLogApiFp;
|
|
687
|
+
/**
|
|
688
|
+
* ClusterLokiLogApi - factory interface
|
|
689
|
+
* @export
|
|
690
|
+
*/
|
|
691
|
+
const ClusterLokiLogApiFactory = function (configuration, basePath, axios) {
|
|
692
|
+
const localVarFp = (0, exports.ClusterLokiLogApiFp)(configuration);
|
|
693
|
+
return {
|
|
694
|
+
/**
|
|
695
|
+
* Export logs through the Loki compatibility API.
|
|
696
|
+
* @summary Export Loki logs
|
|
697
|
+
* @param {ClusterLokiLogApiExportLokiClusterLogsRequest} requestParameters Request parameters.
|
|
698
|
+
* @param {*} [options] Override http request option.
|
|
699
|
+
* @throws {RequiredError}
|
|
700
|
+
*/
|
|
701
|
+
exportLokiClusterLogs(requestParameters, options) {
|
|
702
|
+
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));
|
|
703
|
+
},
|
|
704
|
+
/**
|
|
705
|
+
* Query slow-log statistics through the Loki compatibility API.
|
|
706
|
+
* @summary Query Loki slow-log statistics
|
|
707
|
+
* @param {ClusterLokiLogApiGetLokiSlowLogStatsRequest} requestParameters Request parameters.
|
|
708
|
+
* @param {*} [options] Override http request option.
|
|
709
|
+
* @throws {RequiredError}
|
|
710
|
+
*/
|
|
711
|
+
getLokiSlowLogStats(requestParameters, options) {
|
|
712
|
+
return localVarFp.getLokiSlowLogStats(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, options).then((request) => request(axios, basePath));
|
|
713
|
+
},
|
|
714
|
+
/**
|
|
715
|
+
* Query audit logs through the Loki compatibility API.
|
|
716
|
+
* @summary Query Loki audit logs
|
|
717
|
+
* @param {ClusterLokiLogApiQueryLokiAuditLogsRequest} requestParameters Request parameters.
|
|
718
|
+
* @param {*} [options] Override http request option.
|
|
719
|
+
* @throws {RequiredError}
|
|
720
|
+
*/
|
|
721
|
+
queryLokiAuditLogs(requestParameters, options) {
|
|
722
|
+
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));
|
|
723
|
+
},
|
|
724
|
+
/**
|
|
725
|
+
* Query error logs through the Loki compatibility API.
|
|
726
|
+
* @summary Query Loki error logs
|
|
727
|
+
* @param {ClusterLokiLogApiQueryLokiErrorLogsRequest} requestParameters Request parameters.
|
|
728
|
+
* @param {*} [options] Override http request option.
|
|
729
|
+
* @throws {RequiredError}
|
|
730
|
+
*/
|
|
731
|
+
queryLokiErrorLogs(requestParameters, options) {
|
|
732
|
+
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));
|
|
733
|
+
},
|
|
734
|
+
/**
|
|
735
|
+
* Query pod logs through the Loki compatibility API.
|
|
736
|
+
* @summary Query Loki pod logs
|
|
737
|
+
* @param {ClusterLokiLogApiQueryLokiPodLogsRequest} requestParameters Request parameters.
|
|
738
|
+
* @param {*} [options] Override http request option.
|
|
739
|
+
* @throws {RequiredError}
|
|
740
|
+
*/
|
|
741
|
+
queryLokiPodLogs(requestParameters, options) {
|
|
742
|
+
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));
|
|
743
|
+
},
|
|
744
|
+
/**
|
|
745
|
+
* Query running logs through the Loki compatibility API.
|
|
746
|
+
* @summary Query Loki running logs
|
|
747
|
+
* @param {ClusterLokiLogApiQueryLokiRunningLogsRequest} requestParameters Request parameters.
|
|
748
|
+
* @param {*} [options] Override http request option.
|
|
749
|
+
* @throws {RequiredError}
|
|
750
|
+
*/
|
|
751
|
+
queryLokiRunningLogs(requestParameters, options) {
|
|
752
|
+
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));
|
|
753
|
+
},
|
|
754
|
+
/**
|
|
755
|
+
* Query slow logs through the Loki compatibility API.
|
|
756
|
+
* @summary Query Loki slow logs
|
|
757
|
+
* @param {ClusterLokiLogApiQueryLokiSlowLogsRequest} requestParameters Request parameters.
|
|
758
|
+
* @param {*} [options] Override http request option.
|
|
759
|
+
* @throws {RequiredError}
|
|
760
|
+
*/
|
|
761
|
+
queryLokiSlowLogs(requestParameters, options) {
|
|
762
|
+
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));
|
|
763
|
+
},
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
exports.ClusterLokiLogApiFactory = ClusterLokiLogApiFactory;
|
|
767
|
+
/**
|
|
768
|
+
* ClusterLokiLogApi - object-oriented interface
|
|
769
|
+
* @export
|
|
770
|
+
* @class ClusterLokiLogApi
|
|
771
|
+
* @extends {BaseAPI}
|
|
772
|
+
*/
|
|
773
|
+
class ClusterLokiLogApi extends base_1.BaseAPI {
|
|
774
|
+
/**
|
|
775
|
+
* Export logs through the Loki compatibility API.
|
|
776
|
+
* @summary Export Loki logs
|
|
777
|
+
* @param {ClusterLokiLogApiExportLokiClusterLogsRequest} requestParameters Request parameters.
|
|
778
|
+
* @param {*} [options] Override http request option.
|
|
779
|
+
* @throws {RequiredError}
|
|
780
|
+
* @memberof ClusterLokiLogApi
|
|
781
|
+
*/
|
|
782
|
+
exportLokiClusterLogs(requestParameters, options) {
|
|
783
|
+
return (0, exports.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));
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* Query slow-log statistics through the Loki compatibility API.
|
|
787
|
+
* @summary Query Loki slow-log statistics
|
|
788
|
+
* @param {ClusterLokiLogApiGetLokiSlowLogStatsRequest} requestParameters Request parameters.
|
|
789
|
+
* @param {*} [options] Override http request option.
|
|
790
|
+
* @throws {RequiredError}
|
|
791
|
+
* @memberof ClusterLokiLogApi
|
|
792
|
+
*/
|
|
793
|
+
getLokiSlowLogStats(requestParameters, options) {
|
|
794
|
+
return (0, exports.ClusterLokiLogApiFp)(this.configuration).getLokiSlowLogStats(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, options).then((request) => request(this.axios, this.basePath));
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* Query audit logs through the Loki compatibility API.
|
|
798
|
+
* @summary Query Loki audit logs
|
|
799
|
+
* @param {ClusterLokiLogApiQueryLokiAuditLogsRequest} requestParameters Request parameters.
|
|
800
|
+
* @param {*} [options] Override http request option.
|
|
801
|
+
* @throws {RequiredError}
|
|
802
|
+
* @memberof ClusterLokiLogApi
|
|
803
|
+
*/
|
|
804
|
+
queryLokiAuditLogs(requestParameters, options) {
|
|
805
|
+
return (0, exports.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));
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* Query error logs through the Loki compatibility API.
|
|
809
|
+
* @summary Query Loki error logs
|
|
810
|
+
* @param {ClusterLokiLogApiQueryLokiErrorLogsRequest} requestParameters Request parameters.
|
|
811
|
+
* @param {*} [options] Override http request option.
|
|
812
|
+
* @throws {RequiredError}
|
|
813
|
+
* @memberof ClusterLokiLogApi
|
|
814
|
+
*/
|
|
815
|
+
queryLokiErrorLogs(requestParameters, options) {
|
|
816
|
+
return (0, exports.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));
|
|
817
|
+
}
|
|
818
|
+
/**
|
|
819
|
+
* Query pod logs through the Loki compatibility API.
|
|
820
|
+
* @summary Query Loki pod logs
|
|
821
|
+
* @param {ClusterLokiLogApiQueryLokiPodLogsRequest} requestParameters Request parameters.
|
|
822
|
+
* @param {*} [options] Override http request option.
|
|
823
|
+
* @throws {RequiredError}
|
|
824
|
+
* @memberof ClusterLokiLogApi
|
|
825
|
+
*/
|
|
826
|
+
queryLokiPodLogs(requestParameters, options) {
|
|
827
|
+
return (0, exports.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));
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* Query running logs through the Loki compatibility API.
|
|
831
|
+
* @summary Query Loki running logs
|
|
832
|
+
* @param {ClusterLokiLogApiQueryLokiRunningLogsRequest} requestParameters Request parameters.
|
|
833
|
+
* @param {*} [options] Override http request option.
|
|
834
|
+
* @throws {RequiredError}
|
|
835
|
+
* @memberof ClusterLokiLogApi
|
|
836
|
+
*/
|
|
837
|
+
queryLokiRunningLogs(requestParameters, options) {
|
|
838
|
+
return (0, exports.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));
|
|
839
|
+
}
|
|
840
|
+
/**
|
|
841
|
+
* Query slow logs through the Loki compatibility API.
|
|
842
|
+
* @summary Query Loki slow logs
|
|
843
|
+
* @param {ClusterLokiLogApiQueryLokiSlowLogsRequest} requestParameters Request parameters.
|
|
844
|
+
* @param {*} [options] Override http request option.
|
|
845
|
+
* @throws {RequiredError}
|
|
846
|
+
* @memberof ClusterLokiLogApi
|
|
847
|
+
*/
|
|
848
|
+
queryLokiSlowLogs(requestParameters, options) {
|
|
849
|
+
return (0, exports.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));
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
exports.ClusterLokiLogApi = ClusterLokiLogApi;
|
|
853
|
+
//# sourceMappingURL=cluster-loki-log-api.js.map
|