kb-cloud-client-typescript 2.3.0-alpha.116 → 2.3.0-alpha.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adminapi/apis/cluster-log-api.d.ts +211 -19
- package/dist/adminapi/apis/cluster-log-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-log-api.js +142 -22
- package/dist/adminapi/apis/cluster-log-api.js.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.d.ts +64 -0
- package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.js +74 -0
- package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +211 -19
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +142 -22
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/index.d.ts +10 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +10 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/postgresql-database-space.d.ts +43 -0
- package/dist/adminapi/models/postgresql-database-space.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-database-space.js +16 -0
- package/dist/adminapi/models/postgresql-database-space.js.map +1 -0
- package/dist/adminapi/models/postgresql-index-space.d.ts +103 -0
- package/dist/adminapi/models/postgresql-index-space.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-index-space.js +16 -0
- package/dist/adminapi/models/postgresql-index-space.js.map +1 -0
- package/dist/adminapi/models/postgresql-space-analysis.d.ts +88 -0
- package/dist/adminapi/models/postgresql-space-analysis.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-space-analysis.js +16 -0
- package/dist/adminapi/models/postgresql-space-analysis.js.map +1 -0
- package/dist/adminapi/models/postgresql-space-cannot-prove.d.ts +43 -0
- package/dist/adminapi/models/postgresql-space-cannot-prove.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-space-cannot-prove.js +16 -0
- package/dist/adminapi/models/postgresql-space-cannot-prove.js.map +1 -0
- package/dist/adminapi/models/postgresql-space-pvc.d.ts +43 -0
- package/dist/adminapi/models/postgresql-space-pvc.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-space-pvc.js +16 -0
- package/dist/adminapi/models/postgresql-space-pvc.js.map +1 -0
- package/dist/adminapi/models/postgresql-space-risk-hint.d.ts +61 -0
- package/dist/adminapi/models/postgresql-space-risk-hint.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-space-risk-hint.js +16 -0
- package/dist/adminapi/models/postgresql-space-risk-hint.js.map +1 -0
- package/dist/adminapi/models/postgresql-space-source.d.ts +49 -0
- package/dist/adminapi/models/postgresql-space-source.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-space-source.js +16 -0
- package/dist/adminapi/models/postgresql-space-source.js.map +1 -0
- package/dist/adminapi/models/postgresql-space-summary.d.ts +85 -0
- package/dist/adminapi/models/postgresql-space-summary.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-space-summary.js +16 -0
- package/dist/adminapi/models/postgresql-space-summary.js.map +1 -0
- package/dist/adminapi/models/postgresql-table-space.d.ts +133 -0
- package/dist/adminapi/models/postgresql-table-space.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-table-space.js +16 -0
- package/dist/adminapi/models/postgresql-table-space.js.map +1 -0
- package/dist/adminapi/models/postgresql-toast-relation-space.d.ts +67 -0
- package/dist/adminapi/models/postgresql-toast-relation-space.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-toast-relation-space.js +16 -0
- package/dist/adminapi/models/postgresql-toast-relation-space.js.map +1 -0
- package/dist/openapi/apis/cluster-log-api.d.ts +214 -22
- package/dist/openapi/apis/cluster-log-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-log-api.js +144 -24
- package/dist/openapi/apis/cluster-log-api.js.map +1 -1
- package/dist/openapi/apis/diagnostics-api.d.ts +64 -0
- package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/openapi/apis/diagnostics-api.js +74 -0
- package/dist/openapi/apis/diagnostics-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +214 -22
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +144 -24
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/index.d.ts +10 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +10 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/postgresql-database-space.d.ts +43 -0
- package/dist/openapi/models/postgresql-database-space.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-database-space.js +16 -0
- package/dist/openapi/models/postgresql-database-space.js.map +1 -0
- package/dist/openapi/models/postgresql-index-space.d.ts +103 -0
- package/dist/openapi/models/postgresql-index-space.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-index-space.js +16 -0
- package/dist/openapi/models/postgresql-index-space.js.map +1 -0
- package/dist/openapi/models/postgresql-space-analysis.d.ts +88 -0
- package/dist/openapi/models/postgresql-space-analysis.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-space-analysis.js +16 -0
- package/dist/openapi/models/postgresql-space-analysis.js.map +1 -0
- package/dist/openapi/models/postgresql-space-cannot-prove.d.ts +43 -0
- package/dist/openapi/models/postgresql-space-cannot-prove.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-space-cannot-prove.js +16 -0
- package/dist/openapi/models/postgresql-space-cannot-prove.js.map +1 -0
- package/dist/openapi/models/postgresql-space-pvc.d.ts +43 -0
- package/dist/openapi/models/postgresql-space-pvc.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-space-pvc.js +16 -0
- package/dist/openapi/models/postgresql-space-pvc.js.map +1 -0
- package/dist/openapi/models/postgresql-space-risk-hint.d.ts +61 -0
- package/dist/openapi/models/postgresql-space-risk-hint.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-space-risk-hint.js +16 -0
- package/dist/openapi/models/postgresql-space-risk-hint.js.map +1 -0
- package/dist/openapi/models/postgresql-space-source.d.ts +49 -0
- package/dist/openapi/models/postgresql-space-source.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-space-source.js +16 -0
- package/dist/openapi/models/postgresql-space-source.js.map +1 -0
- package/dist/openapi/models/postgresql-space-summary.d.ts +85 -0
- package/dist/openapi/models/postgresql-space-summary.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-space-summary.js +16 -0
- package/dist/openapi/models/postgresql-space-summary.js.map +1 -0
- package/dist/openapi/models/postgresql-table-space.d.ts +133 -0
- package/dist/openapi/models/postgresql-table-space.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-table-space.js +16 -0
- package/dist/openapi/models/postgresql-table-space.js.map +1 -0
- package/dist/openapi/models/postgresql-toast-relation-space.d.ts +67 -0
- package/dist/openapi/models/postgresql-toast-relation-space.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-toast-relation-space.js +16 -0
- package/dist/openapi/models/postgresql-toast-relation-space.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +10 -0
- package/src/adminapi/apis/cluster-log-api.ts +337 -25
- package/src/adminapi/apis/diagnostics-api.ts +114 -0
- package/src/adminapi/apis/shared-api.ts +337 -25
- package/src/adminapi/models/index.ts +10 -0
- package/src/adminapi/models/postgresql-database-space.ts +48 -0
- package/src/adminapi/models/postgresql-index-space.ts +108 -0
- package/src/adminapi/models/postgresql-space-analysis.ts +111 -0
- package/src/adminapi/models/postgresql-space-cannot-prove.ts +48 -0
- package/src/adminapi/models/postgresql-space-pvc.ts +48 -0
- package/src/adminapi/models/postgresql-space-risk-hint.ts +66 -0
- package/src/adminapi/models/postgresql-space-source.ts +54 -0
- package/src/adminapi/models/postgresql-space-summary.ts +90 -0
- package/src/adminapi/models/postgresql-table-space.ts +138 -0
- package/src/adminapi/models/postgresql-toast-relation-space.ts +72 -0
- package/src/adminapi.yaml +460 -3
- package/src/openapi/.openapi-generator/FILES +10 -0
- package/src/openapi/apis/cluster-log-api.ts +340 -28
- package/src/openapi/apis/diagnostics-api.ts +114 -0
- package/src/openapi/apis/shared-api.ts +340 -28
- package/src/openapi/models/index.ts +10 -0
- package/src/openapi/models/postgresql-database-space.ts +48 -0
- package/src/openapi/models/postgresql-index-space.ts +108 -0
- package/src/openapi/models/postgresql-space-analysis.ts +111 -0
- package/src/openapi/models/postgresql-space-cannot-prove.ts +48 -0
- package/src/openapi/models/postgresql-space-pvc.ts +48 -0
- package/src/openapi/models/postgresql-space-risk-hint.ts +66 -0
- package/src/openapi/models/postgresql-space-source.ts +54 -0
- package/src/openapi/models/postgresql-space-summary.ts +90 -0
- package/src/openapi/models/postgresql-table-space.ts +138 -0
- package/src/openapi/models/postgresql-toast-relation-space.ts +72 -0
- package/src/openapi.yaml +461 -4
|
@@ -108,7 +108,7 @@ const ClusterLogApiAxiosParamCreator = function (configuration) {
|
|
|
108
108
|
};
|
|
109
109
|
},
|
|
110
110
|
/**
|
|
111
|
-
* Aggregate slow logs of a cluster (Victoria Logs backend only)
|
|
111
|
+
* Aggregate slow logs of a cluster over the full requested time range (Victoria Logs backend only). The result is not limited by the slow log list page size.
|
|
112
112
|
* @summary Aggregate cluster slow logs
|
|
113
113
|
* @param {string} orgName
|
|
114
114
|
* @param {string} clusterName
|
|
@@ -295,10 +295,22 @@ const ClusterLogApiAxiosParamCreator = function (configuration) {
|
|
|
295
295
|
* @param {string} [componentName]
|
|
296
296
|
* @param {string} [instanceName]
|
|
297
297
|
* @param {string} [query]
|
|
298
|
+
* @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Decimal values are supported, for example 0.5.
|
|
299
|
+
* @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Decimal values are supported, for example 0.5.
|
|
300
|
+
* @param {number} [minLockTime] Minimum slow log lock time in seconds. Decimal values are supported, for example 0.001.
|
|
301
|
+
* @param {number} [maxLockTime] Maximum slow log lock time in seconds. Decimal values are supported, for example 0.001.
|
|
302
|
+
* @param {number} [minRowsExamined]
|
|
303
|
+
* @param {number} [maxRowsExamined]
|
|
304
|
+
* @param {number} [minRowsSent]
|
|
305
|
+
* @param {number} [maxRowsSent]
|
|
306
|
+
* @param {string} [dbName] Filter slow logs whose database name contains this value.
|
|
307
|
+
* @param {string} [userName] Filter slow logs whose user name contains this value.
|
|
308
|
+
* @param {string} [clientIp] Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
|
|
309
|
+
* @param {string} [appName] Filter slow logs whose application name contains this value.
|
|
298
310
|
* @param {*} [options] Override http request option.
|
|
299
311
|
* @throws {RequiredError}
|
|
300
312
|
*/
|
|
301
|
-
explainSlowLogTemplate: async (orgName, clusterName, templateId, startTime, endTime, componentName, instanceName, query, options = {}) => {
|
|
313
|
+
explainSlowLogTemplate: async (orgName, clusterName, templateId, startTime, endTime, componentName, instanceName, query, minExecutionTime, maxExecutionTime, minLockTime, maxLockTime, minRowsExamined, maxRowsExamined, minRowsSent, maxRowsSent, dbName, userName, clientIp, appName, options = {}) => {
|
|
302
314
|
// verify required parameter 'orgName' is not null or undefined
|
|
303
315
|
(0, common_1.assertParamExists)('explainSlowLogTemplate', 'orgName', orgName);
|
|
304
316
|
// verify required parameter 'clusterName' is not null or undefined
|
|
@@ -342,6 +354,42 @@ const ClusterLogApiAxiosParamCreator = function (configuration) {
|
|
|
342
354
|
if (query !== undefined) {
|
|
343
355
|
localVarQueryParameter['query'] = query;
|
|
344
356
|
}
|
|
357
|
+
if (minExecutionTime !== undefined) {
|
|
358
|
+
localVarQueryParameter['minExecutionTime'] = minExecutionTime;
|
|
359
|
+
}
|
|
360
|
+
if (maxExecutionTime !== undefined) {
|
|
361
|
+
localVarQueryParameter['maxExecutionTime'] = maxExecutionTime;
|
|
362
|
+
}
|
|
363
|
+
if (minLockTime !== undefined) {
|
|
364
|
+
localVarQueryParameter['minLockTime'] = minLockTime;
|
|
365
|
+
}
|
|
366
|
+
if (maxLockTime !== undefined) {
|
|
367
|
+
localVarQueryParameter['maxLockTime'] = maxLockTime;
|
|
368
|
+
}
|
|
369
|
+
if (minRowsExamined !== undefined) {
|
|
370
|
+
localVarQueryParameter['minRowsExamined'] = minRowsExamined;
|
|
371
|
+
}
|
|
372
|
+
if (maxRowsExamined !== undefined) {
|
|
373
|
+
localVarQueryParameter['maxRowsExamined'] = maxRowsExamined;
|
|
374
|
+
}
|
|
375
|
+
if (minRowsSent !== undefined) {
|
|
376
|
+
localVarQueryParameter['minRowsSent'] = minRowsSent;
|
|
377
|
+
}
|
|
378
|
+
if (maxRowsSent !== undefined) {
|
|
379
|
+
localVarQueryParameter['maxRowsSent'] = maxRowsSent;
|
|
380
|
+
}
|
|
381
|
+
if (dbName !== undefined) {
|
|
382
|
+
localVarQueryParameter['dbName'] = dbName;
|
|
383
|
+
}
|
|
384
|
+
if (userName !== undefined) {
|
|
385
|
+
localVarQueryParameter['userName'] = userName;
|
|
386
|
+
}
|
|
387
|
+
if (clientIp !== undefined) {
|
|
388
|
+
localVarQueryParameter['clientIp'] = clientIp;
|
|
389
|
+
}
|
|
390
|
+
if (appName !== undefined) {
|
|
391
|
+
localVarQueryParameter['appName'] = appName;
|
|
392
|
+
}
|
|
345
393
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
346
394
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
347
395
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -358,7 +406,7 @@ const ClusterLogApiAxiosParamCreator = function (configuration) {
|
|
|
358
406
|
* @param {string} logType Log type: runninglog, errorlog, slow, auditlog
|
|
359
407
|
* @param {number} [startTime] Start time in epoch nanoseconds. If omitted, exports from the earliest available log
|
|
360
408
|
* @param {number} [endTime] End time in epoch nanoseconds. If omitted, exports up to the latest available log
|
|
361
|
-
* @param {string} [format] Export format: csv, raw, jsonl
|
|
409
|
+
* @param {string} [format] Export format: csv, raw, jsonl. The JSON-style slow log export format is newline-delimited JSON (jsonl), not a single JSON array.
|
|
362
410
|
* @param {string} [query] Optional search query
|
|
363
411
|
* @param {string} [filename] Optional log filename filter
|
|
364
412
|
* @param {string} [componentName] Optional component name filter
|
|
@@ -483,7 +531,7 @@ const ClusterLogApiAxiosParamCreator = function (configuration) {
|
|
|
483
531
|
};
|
|
484
532
|
},
|
|
485
533
|
/**
|
|
486
|
-
* Get statistics summary for slow logs of a cluster
|
|
534
|
+
* Get statistics summary for slow logs of a cluster. When the same slow log filters are supplied, totalSlowLogs can be used as the filtered list preview count.
|
|
487
535
|
* @summary Get cluster slow log statistics
|
|
488
536
|
* @param {string} orgName
|
|
489
537
|
* @param {string} clusterName
|
|
@@ -611,10 +659,22 @@ const ClusterLogApiAxiosParamCreator = function (configuration) {
|
|
|
611
659
|
* @param {string} [componentName]
|
|
612
660
|
* @param {string} [instanceName]
|
|
613
661
|
* @param {string} [query]
|
|
662
|
+
* @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Decimal values are supported, for example 0.5.
|
|
663
|
+
* @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Decimal values are supported, for example 0.5.
|
|
664
|
+
* @param {number} [minLockTime] Minimum slow log lock time in seconds. Decimal values are supported, for example 0.001.
|
|
665
|
+
* @param {number} [maxLockTime] Maximum slow log lock time in seconds. Decimal values are supported, for example 0.001.
|
|
666
|
+
* @param {number} [minRowsExamined]
|
|
667
|
+
* @param {number} [maxRowsExamined]
|
|
668
|
+
* @param {number} [minRowsSent]
|
|
669
|
+
* @param {number} [maxRowsSent]
|
|
670
|
+
* @param {string} [dbName] Filter slow logs whose database name contains this value.
|
|
671
|
+
* @param {string} [userName] Filter slow logs whose user name contains this value.
|
|
672
|
+
* @param {string} [clientIp] Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
|
|
673
|
+
* @param {string} [appName] Filter slow logs whose application name contains this value.
|
|
614
674
|
* @param {*} [options] Override http request option.
|
|
615
675
|
* @throws {RequiredError}
|
|
616
676
|
*/
|
|
617
|
-
getSlowLogTemplate: async (orgName, clusterName, templateId, startTime, endTime, componentName, instanceName, query, options = {}) => {
|
|
677
|
+
getSlowLogTemplate: async (orgName, clusterName, templateId, startTime, endTime, componentName, instanceName, query, minExecutionTime, maxExecutionTime, minLockTime, maxLockTime, minRowsExamined, maxRowsExamined, minRowsSent, maxRowsSent, dbName, userName, clientIp, appName, options = {}) => {
|
|
618
678
|
// verify required parameter 'orgName' is not null or undefined
|
|
619
679
|
(0, common_1.assertParamExists)('getSlowLogTemplate', 'orgName', orgName);
|
|
620
680
|
// verify required parameter 'clusterName' is not null or undefined
|
|
@@ -658,6 +718,42 @@ const ClusterLogApiAxiosParamCreator = function (configuration) {
|
|
|
658
718
|
if (query !== undefined) {
|
|
659
719
|
localVarQueryParameter['query'] = query;
|
|
660
720
|
}
|
|
721
|
+
if (minExecutionTime !== undefined) {
|
|
722
|
+
localVarQueryParameter['minExecutionTime'] = minExecutionTime;
|
|
723
|
+
}
|
|
724
|
+
if (maxExecutionTime !== undefined) {
|
|
725
|
+
localVarQueryParameter['maxExecutionTime'] = maxExecutionTime;
|
|
726
|
+
}
|
|
727
|
+
if (minLockTime !== undefined) {
|
|
728
|
+
localVarQueryParameter['minLockTime'] = minLockTime;
|
|
729
|
+
}
|
|
730
|
+
if (maxLockTime !== undefined) {
|
|
731
|
+
localVarQueryParameter['maxLockTime'] = maxLockTime;
|
|
732
|
+
}
|
|
733
|
+
if (minRowsExamined !== undefined) {
|
|
734
|
+
localVarQueryParameter['minRowsExamined'] = minRowsExamined;
|
|
735
|
+
}
|
|
736
|
+
if (maxRowsExamined !== undefined) {
|
|
737
|
+
localVarQueryParameter['maxRowsExamined'] = maxRowsExamined;
|
|
738
|
+
}
|
|
739
|
+
if (minRowsSent !== undefined) {
|
|
740
|
+
localVarQueryParameter['minRowsSent'] = minRowsSent;
|
|
741
|
+
}
|
|
742
|
+
if (maxRowsSent !== undefined) {
|
|
743
|
+
localVarQueryParameter['maxRowsSent'] = maxRowsSent;
|
|
744
|
+
}
|
|
745
|
+
if (dbName !== undefined) {
|
|
746
|
+
localVarQueryParameter['dbName'] = dbName;
|
|
747
|
+
}
|
|
748
|
+
if (userName !== undefined) {
|
|
749
|
+
localVarQueryParameter['userName'] = userName;
|
|
750
|
+
}
|
|
751
|
+
if (clientIp !== undefined) {
|
|
752
|
+
localVarQueryParameter['clientIp'] = clientIp;
|
|
753
|
+
}
|
|
754
|
+
if (appName !== undefined) {
|
|
755
|
+
localVarQueryParameter['appName'] = appName;
|
|
756
|
+
}
|
|
661
757
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
662
758
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
663
759
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -807,7 +903,7 @@ const ClusterLogApiAxiosParamCreator = function (configuration) {
|
|
|
807
903
|
};
|
|
808
904
|
},
|
|
809
905
|
/**
|
|
810
|
-
* Query log hits histogram for time-bucketed log counts (VictoriaLogs only)
|
|
906
|
+
* Query log hits histogram for time-bucketed log counts (VictoriaLogs only). When logType=slow, buckets also include avgExecutionTime in seconds; templateId can be supplied for slow template trends.
|
|
811
907
|
* @summary Query log hits histogram
|
|
812
908
|
* @param {string} orgName
|
|
813
909
|
* @param {string} clusterName
|
|
@@ -1489,7 +1585,7 @@ const ClusterLogApiFp = function (configuration) {
|
|
|
1489
1585
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1490
1586
|
},
|
|
1491
1587
|
/**
|
|
1492
|
-
* Aggregate slow logs of a cluster (Victoria Logs backend only)
|
|
1588
|
+
* Aggregate slow logs of a cluster over the full requested time range (Victoria Logs backend only). The result is not limited by the slow log list page size.
|
|
1493
1589
|
* @summary Aggregate cluster slow logs
|
|
1494
1590
|
* @param {string} orgName
|
|
1495
1591
|
* @param {string} clusterName
|
|
@@ -1553,12 +1649,24 @@ const ClusterLogApiFp = function (configuration) {
|
|
|
1553
1649
|
* @param {string} [componentName]
|
|
1554
1650
|
* @param {string} [instanceName]
|
|
1555
1651
|
* @param {string} [query]
|
|
1652
|
+
* @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Decimal values are supported, for example 0.5.
|
|
1653
|
+
* @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Decimal values are supported, for example 0.5.
|
|
1654
|
+
* @param {number} [minLockTime] Minimum slow log lock time in seconds. Decimal values are supported, for example 0.001.
|
|
1655
|
+
* @param {number} [maxLockTime] Maximum slow log lock time in seconds. Decimal values are supported, for example 0.001.
|
|
1656
|
+
* @param {number} [minRowsExamined]
|
|
1657
|
+
* @param {number} [maxRowsExamined]
|
|
1658
|
+
* @param {number} [minRowsSent]
|
|
1659
|
+
* @param {number} [maxRowsSent]
|
|
1660
|
+
* @param {string} [dbName] Filter slow logs whose database name contains this value.
|
|
1661
|
+
* @param {string} [userName] Filter slow logs whose user name contains this value.
|
|
1662
|
+
* @param {string} [clientIp] Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
|
|
1663
|
+
* @param {string} [appName] Filter slow logs whose application name contains this value.
|
|
1556
1664
|
* @param {*} [options] Override http request option.
|
|
1557
1665
|
* @throws {RequiredError}
|
|
1558
1666
|
*/
|
|
1559
|
-
async explainSlowLogTemplate(orgName, clusterName, templateId, startTime, endTime, componentName, instanceName, query, options) {
|
|
1667
|
+
async explainSlowLogTemplate(orgName, clusterName, templateId, startTime, endTime, componentName, instanceName, query, minExecutionTime, maxExecutionTime, minLockTime, maxLockTime, minRowsExamined, maxRowsExamined, minRowsSent, maxRowsSent, dbName, userName, clientIp, appName, options) {
|
|
1560
1668
|
var _a, _b, _c;
|
|
1561
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.explainSlowLogTemplate(orgName, clusterName, templateId, startTime, endTime, componentName, instanceName, query, options);
|
|
1669
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.explainSlowLogTemplate(orgName, clusterName, templateId, startTime, endTime, componentName, instanceName, query, minExecutionTime, maxExecutionTime, minLockTime, maxLockTime, minRowsExamined, maxRowsExamined, minRowsSent, maxRowsSent, dbName, userName, clientIp, appName, options);
|
|
1562
1670
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1563
1671
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterLogApi.explainSlowLogTemplate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1564
1672
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1571,7 +1679,7 @@ const ClusterLogApiFp = function (configuration) {
|
|
|
1571
1679
|
* @param {string} logType Log type: runninglog, errorlog, slow, auditlog
|
|
1572
1680
|
* @param {number} [startTime] Start time in epoch nanoseconds. If omitted, exports from the earliest available log
|
|
1573
1681
|
* @param {number} [endTime] End time in epoch nanoseconds. If omitted, exports up to the latest available log
|
|
1574
|
-
* @param {string} [format] Export format: csv, raw, jsonl
|
|
1682
|
+
* @param {string} [format] Export format: csv, raw, jsonl. The JSON-style slow log export format is newline-delimited JSON (jsonl), not a single JSON array.
|
|
1575
1683
|
* @param {string} [query] Optional search query
|
|
1576
1684
|
* @param {string} [filename] Optional log filename filter
|
|
1577
1685
|
* @param {string} [componentName] Optional component name filter
|
|
@@ -1602,7 +1710,7 @@ const ClusterLogApiFp = function (configuration) {
|
|
|
1602
1710
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1603
1711
|
},
|
|
1604
1712
|
/**
|
|
1605
|
-
* Get statistics summary for slow logs of a cluster
|
|
1713
|
+
* Get statistics summary for slow logs of a cluster. When the same slow log filters are supplied, totalSlowLogs can be used as the filtered list preview count.
|
|
1606
1714
|
* @summary Get cluster slow log statistics
|
|
1607
1715
|
* @param {string} orgName
|
|
1608
1716
|
* @param {string} clusterName
|
|
@@ -1646,12 +1754,24 @@ const ClusterLogApiFp = function (configuration) {
|
|
|
1646
1754
|
* @param {string} [componentName]
|
|
1647
1755
|
* @param {string} [instanceName]
|
|
1648
1756
|
* @param {string} [query]
|
|
1757
|
+
* @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Decimal values are supported, for example 0.5.
|
|
1758
|
+
* @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Decimal values are supported, for example 0.5.
|
|
1759
|
+
* @param {number} [minLockTime] Minimum slow log lock time in seconds. Decimal values are supported, for example 0.001.
|
|
1760
|
+
* @param {number} [maxLockTime] Maximum slow log lock time in seconds. Decimal values are supported, for example 0.001.
|
|
1761
|
+
* @param {number} [minRowsExamined]
|
|
1762
|
+
* @param {number} [maxRowsExamined]
|
|
1763
|
+
* @param {number} [minRowsSent]
|
|
1764
|
+
* @param {number} [maxRowsSent]
|
|
1765
|
+
* @param {string} [dbName] Filter slow logs whose database name contains this value.
|
|
1766
|
+
* @param {string} [userName] Filter slow logs whose user name contains this value.
|
|
1767
|
+
* @param {string} [clientIp] Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
|
|
1768
|
+
* @param {string} [appName] Filter slow logs whose application name contains this value.
|
|
1649
1769
|
* @param {*} [options] Override http request option.
|
|
1650
1770
|
* @throws {RequiredError}
|
|
1651
1771
|
*/
|
|
1652
|
-
async getSlowLogTemplate(orgName, clusterName, templateId, startTime, endTime, componentName, instanceName, query, options) {
|
|
1772
|
+
async getSlowLogTemplate(orgName, clusterName, templateId, startTime, endTime, componentName, instanceName, query, minExecutionTime, maxExecutionTime, minLockTime, maxLockTime, minRowsExamined, maxRowsExamined, minRowsSent, maxRowsSent, dbName, userName, clientIp, appName, options) {
|
|
1653
1773
|
var _a, _b, _c;
|
|
1654
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getSlowLogTemplate(orgName, clusterName, templateId, startTime, endTime, componentName, instanceName, query, options);
|
|
1774
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSlowLogTemplate(orgName, clusterName, templateId, startTime, endTime, componentName, instanceName, query, minExecutionTime, maxExecutionTime, minLockTime, maxLockTime, minRowsExamined, maxRowsExamined, minRowsSent, maxRowsSent, dbName, userName, clientIp, appName, options);
|
|
1655
1775
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1656
1776
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterLogApi.getSlowLogTemplate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1657
1777
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1701,7 +1821,7 @@ const ClusterLogApiFp = function (configuration) {
|
|
|
1701
1821
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1702
1822
|
},
|
|
1703
1823
|
/**
|
|
1704
|
-
* Query log hits histogram for time-bucketed log counts (VictoriaLogs only)
|
|
1824
|
+
* Query log hits histogram for time-bucketed log counts (VictoriaLogs only). When logType=slow, buckets also include avgExecutionTime in seconds; templateId can be supplied for slow template trends.
|
|
1705
1825
|
* @summary Query log hits histogram
|
|
1706
1826
|
* @param {string} orgName
|
|
1707
1827
|
* @param {string} clusterName
|
|
@@ -1909,7 +2029,7 @@ const ClusterLogApiFactory = function (configuration, basePath, axios) {
|
|
|
1909
2029
|
return localVarFp.aggregateAuditLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.limit, requestParameters.sortType, requestParameters.groupBy, requestParameters.topN, options).then((request) => request(axios, basePath));
|
|
1910
2030
|
},
|
|
1911
2031
|
/**
|
|
1912
|
-
* Aggregate slow logs of a cluster (Victoria Logs backend only)
|
|
2032
|
+
* Aggregate slow logs of a cluster over the full requested time range (Victoria Logs backend only). The result is not limited by the slow log list page size.
|
|
1913
2033
|
* @summary Aggregate cluster slow logs
|
|
1914
2034
|
* @param {ClusterLogApiAggregateSlowLogsRequest} requestParameters Request parameters.
|
|
1915
2035
|
* @param {*} [options] Override http request option.
|
|
@@ -1936,7 +2056,7 @@ const ClusterLogApiFactory = function (configuration, basePath, axios) {
|
|
|
1936
2056
|
* @throws {RequiredError}
|
|
1937
2057
|
*/
|
|
1938
2058
|
explainSlowLogTemplate(requestParameters, options) {
|
|
1939
|
-
return localVarFp.explainSlowLogTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.templateId, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, options).then((request) => request(axios, basePath));
|
|
2059
|
+
return localVarFp.explainSlowLogTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.templateId, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, options).then((request) => request(axios, basePath));
|
|
1940
2060
|
},
|
|
1941
2061
|
/**
|
|
1942
2062
|
* Export cluster logs and return as a file download
|
|
@@ -1949,7 +2069,7 @@ const ClusterLogApiFactory = function (configuration, basePath, axios) {
|
|
|
1949
2069
|
return localVarFp.exportClusterLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.logType, requestParameters.startTime, requestParameters.endTime, requestParameters.format, requestParameters.query, requestParameters.filename, requestParameters.componentName, requestParameters.instanceName, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, requestParameters.maxLines, options).then((request) => request(axios, basePath));
|
|
1950
2070
|
},
|
|
1951
2071
|
/**
|
|
1952
|
-
* Get statistics summary for slow logs of a cluster
|
|
2072
|
+
* Get statistics summary for slow logs of a cluster. When the same slow log filters are supplied, totalSlowLogs can be used as the filtered list preview count.
|
|
1953
2073
|
* @summary Get cluster slow log statistics
|
|
1954
2074
|
* @param {ClusterLogApiGetSlowLogStatsRequest} requestParameters Request parameters.
|
|
1955
2075
|
* @param {*} [options] Override http request option.
|
|
@@ -1966,7 +2086,7 @@ const ClusterLogApiFactory = function (configuration, basePath, axios) {
|
|
|
1966
2086
|
* @throws {RequiredError}
|
|
1967
2087
|
*/
|
|
1968
2088
|
getSlowLogTemplate(requestParameters, options) {
|
|
1969
|
-
return localVarFp.getSlowLogTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.templateId, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, options).then((request) => request(axios, basePath));
|
|
2089
|
+
return localVarFp.getSlowLogTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.templateId, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, options).then((request) => request(axios, basePath));
|
|
1970
2090
|
},
|
|
1971
2091
|
/**
|
|
1972
2092
|
* Query audit logs of a cluster
|
|
@@ -1989,7 +2109,7 @@ const ClusterLogApiFactory = function (configuration, basePath, axios) {
|
|
|
1989
2109
|
return localVarFp.queryErrorLogs(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));
|
|
1990
2110
|
},
|
|
1991
2111
|
/**
|
|
1992
|
-
* Query log hits histogram for time-bucketed log counts (VictoriaLogs only)
|
|
2112
|
+
* Query log hits histogram for time-bucketed log counts (VictoriaLogs only). When logType=slow, buckets also include avgExecutionTime in seconds; templateId can be supplied for slow template trends.
|
|
1993
2113
|
* @summary Query log hits histogram
|
|
1994
2114
|
* @param {ClusterLogApiQueryLogHitsRequest} requestParameters Request parameters.
|
|
1995
2115
|
* @param {*} [options] Override http request option.
|
|
@@ -2070,7 +2190,7 @@ class ClusterLogApi extends base_1.BaseAPI {
|
|
|
2070
2190
|
return (0, exports.ClusterLogApiFp)(this.configuration).aggregateAuditLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.limit, requestParameters.sortType, requestParameters.groupBy, requestParameters.topN, options).then((request) => request(this.axios, this.basePath));
|
|
2071
2191
|
}
|
|
2072
2192
|
/**
|
|
2073
|
-
* Aggregate slow logs of a cluster (Victoria Logs backend only)
|
|
2193
|
+
* Aggregate slow logs of a cluster over the full requested time range (Victoria Logs backend only). The result is not limited by the slow log list page size.
|
|
2074
2194
|
* @summary Aggregate cluster slow logs
|
|
2075
2195
|
* @param {ClusterLogApiAggregateSlowLogsRequest} requestParameters Request parameters.
|
|
2076
2196
|
* @param {*} [options] Override http request option.
|
|
@@ -2100,7 +2220,7 @@ class ClusterLogApi extends base_1.BaseAPI {
|
|
|
2100
2220
|
* @memberof ClusterLogApi
|
|
2101
2221
|
*/
|
|
2102
2222
|
explainSlowLogTemplate(requestParameters, options) {
|
|
2103
|
-
return (0, exports.ClusterLogApiFp)(this.configuration).explainSlowLogTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.templateId, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, options).then((request) => request(this.axios, this.basePath));
|
|
2223
|
+
return (0, exports.ClusterLogApiFp)(this.configuration).explainSlowLogTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.templateId, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, options).then((request) => request(this.axios, this.basePath));
|
|
2104
2224
|
}
|
|
2105
2225
|
/**
|
|
2106
2226
|
* Export cluster logs and return as a file download
|
|
@@ -2114,7 +2234,7 @@ class ClusterLogApi extends base_1.BaseAPI {
|
|
|
2114
2234
|
return (0, exports.ClusterLogApiFp)(this.configuration).exportClusterLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.logType, requestParameters.startTime, requestParameters.endTime, requestParameters.format, requestParameters.query, requestParameters.filename, requestParameters.componentName, requestParameters.instanceName, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, requestParameters.maxLines, options).then((request) => request(this.axios, this.basePath));
|
|
2115
2235
|
}
|
|
2116
2236
|
/**
|
|
2117
|
-
* Get statistics summary for slow logs of a cluster
|
|
2237
|
+
* Get statistics summary for slow logs of a cluster. When the same slow log filters are supplied, totalSlowLogs can be used as the filtered list preview count.
|
|
2118
2238
|
* @summary Get cluster slow log statistics
|
|
2119
2239
|
* @param {ClusterLogApiGetSlowLogStatsRequest} requestParameters Request parameters.
|
|
2120
2240
|
* @param {*} [options] Override http request option.
|
|
@@ -2133,7 +2253,7 @@ class ClusterLogApi extends base_1.BaseAPI {
|
|
|
2133
2253
|
* @memberof ClusterLogApi
|
|
2134
2254
|
*/
|
|
2135
2255
|
getSlowLogTemplate(requestParameters, options) {
|
|
2136
|
-
return (0, exports.ClusterLogApiFp)(this.configuration).getSlowLogTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.templateId, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, options).then((request) => request(this.axios, this.basePath));
|
|
2256
|
+
return (0, exports.ClusterLogApiFp)(this.configuration).getSlowLogTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.templateId, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, options).then((request) => request(this.axios, this.basePath));
|
|
2137
2257
|
}
|
|
2138
2258
|
/**
|
|
2139
2259
|
* Query audit logs of a cluster
|
|
@@ -2158,7 +2278,7 @@ class ClusterLogApi extends base_1.BaseAPI {
|
|
|
2158
2278
|
return (0, exports.ClusterLogApiFp)(this.configuration).queryErrorLogs(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));
|
|
2159
2279
|
}
|
|
2160
2280
|
/**
|
|
2161
|
-
* Query log hits histogram for time-bucketed log counts (VictoriaLogs only)
|
|
2281
|
+
* Query log hits histogram for time-bucketed log counts (VictoriaLogs only). When logType=slow, buckets also include avgExecutionTime in seconds; templateId can be supplied for slow template trends.
|
|
2162
2282
|
* @summary Query log hits histogram
|
|
2163
2283
|
* @param {ClusterLogApiQueryLogHitsRequest} requestParameters Request parameters.
|
|
2164
2284
|
* @param {*} [options] Override http request option.
|