kb-cloud-client-typescript 2.3.0-alpha.115 → 2.3.0-alpha.117
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/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 +4 -3
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +4 -3
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/postgresql-lock-analysis.d.ts +7 -7
- package/dist/adminapi/models/postgresql-lock-analysis.d.ts.map +1 -1
- package/dist/adminapi/models/postgresql-wait-graph-edge-evidence.d.ts +32 -0
- package/dist/adminapi/models/postgresql-wait-graph-edge-evidence.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-wait-graph-edge-evidence.js +16 -0
- package/dist/adminapi/models/postgresql-wait-graph-edge-evidence.js.map +1 -0
- package/dist/adminapi/models/{postgresql-wait-chain-edge.d.ts → postgresql-wait-graph-edge.d.ts} +12 -5
- package/dist/adminapi/models/postgresql-wait-graph-edge.d.ts.map +1 -0
- package/dist/adminapi/models/{postgresql-wait-chain-edge.js → postgresql-wait-graph-edge.js} +1 -1
- package/dist/adminapi/models/postgresql-wait-graph-edge.js.map +1 -0
- package/dist/adminapi/models/{postgresql-wait-chain-node.d.ts → postgresql-wait-graph-node.d.ts} +5 -11
- package/dist/adminapi/models/postgresql-wait-graph-node.d.ts.map +1 -0
- package/dist/adminapi/models/{postgresql-wait-chain-node.js → postgresql-wait-graph-node.js} +1 -1
- package/dist/adminapi/models/postgresql-wait-graph-node.js.map +1 -0
- package/dist/adminapi/models/postgresql-wait-graph.d.ts +33 -0
- package/dist/adminapi/models/{postgresql-wait-chain.d.ts.map → postgresql-wait-graph.d.ts.map} +1 -1
- package/dist/adminapi/models/{postgresql-wait-chain.js → postgresql-wait-graph.js} +1 -1
- package/dist/adminapi/models/postgresql-wait-graph.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/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 +4 -3
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +4 -3
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/postgresql-lock-analysis.d.ts +7 -7
- package/dist/openapi/models/postgresql-lock-analysis.d.ts.map +1 -1
- package/dist/openapi/models/{postgresql-wait-chain.d.ts → postgresql-wait-graph-edge-evidence.d.ts} +12 -13
- package/dist/openapi/models/postgresql-wait-graph-edge-evidence.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-wait-graph-edge-evidence.js +16 -0
- package/dist/openapi/models/postgresql-wait-graph-edge-evidence.js.map +1 -0
- package/dist/openapi/models/{postgresql-wait-chain-edge.d.ts → postgresql-wait-graph-edge.d.ts} +12 -5
- package/dist/openapi/models/postgresql-wait-graph-edge.d.ts.map +1 -0
- package/dist/openapi/models/{postgresql-wait-chain-edge.js → postgresql-wait-graph-edge.js} +1 -1
- package/dist/openapi/models/postgresql-wait-graph-edge.js.map +1 -0
- package/dist/openapi/models/{postgresql-wait-chain-node.d.ts → postgresql-wait-graph-node.d.ts} +5 -11
- package/dist/openapi/models/postgresql-wait-graph-node.d.ts.map +1 -0
- package/dist/openapi/models/{postgresql-wait-chain-node.js → postgresql-wait-graph-node.js} +1 -1
- package/dist/openapi/models/postgresql-wait-graph-node.js.map +1 -0
- package/dist/openapi/models/postgresql-wait-graph.d.ts +33 -0
- package/dist/openapi/models/{postgresql-wait-chain.d.ts.map → postgresql-wait-graph.d.ts.map} +1 -1
- package/dist/openapi/models/{postgresql-wait-chain.js → postgresql-wait-graph.js} +1 -1
- package/dist/openapi/models/postgresql-wait-graph.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +4 -3
- package/src/adminapi/apis/cluster-log-api.ts +337 -25
- package/src/adminapi/apis/shared-api.ts +337 -25
- package/src/adminapi/models/index.ts +4 -3
- package/src/adminapi/models/postgresql-lock-analysis.ts +7 -7
- package/src/adminapi/models/postgresql-wait-graph-edge-evidence.ts +39 -0
- package/src/adminapi/models/{postgresql-wait-chain-edge.ts → postgresql-wait-graph-edge.ts} +13 -4
- package/src/adminapi/models/{postgresql-wait-chain-node.ts → postgresql-wait-graph-node.ts} +4 -10
- package/src/adminapi/models/postgresql-wait-graph.ts +42 -0
- package/src/adminapi.yaml +163 -19
- package/src/openapi/.openapi-generator/FILES +4 -3
- package/src/openapi/apis/cluster-log-api.ts +340 -28
- package/src/openapi/apis/shared-api.ts +340 -28
- package/src/openapi/models/index.ts +4 -3
- package/src/openapi/models/postgresql-lock-analysis.ts +7 -7
- package/src/openapi/models/{postgresql-wait-chain.ts → postgresql-wait-graph-edge-evidence.ts} +11 -14
- package/src/openapi/models/{postgresql-wait-chain-edge.ts → postgresql-wait-graph-edge.ts} +13 -4
- package/src/openapi/models/{postgresql-wait-chain-node.ts → postgresql-wait-graph-node.ts} +4 -10
- package/src/openapi/models/postgresql-wait-graph.ts +42 -0
- package/src/openapi.yaml +164 -20
- package/dist/adminapi/models/postgresql-wait-chain-edge.d.ts.map +0 -1
- package/dist/adminapi/models/postgresql-wait-chain-edge.js.map +0 -1
- package/dist/adminapi/models/postgresql-wait-chain-node.d.ts.map +0 -1
- package/dist/adminapi/models/postgresql-wait-chain-node.js.map +0 -1
- package/dist/adminapi/models/postgresql-wait-chain.d.ts +0 -33
- package/dist/adminapi/models/postgresql-wait-chain.js.map +0 -1
- package/dist/openapi/models/postgresql-wait-chain-edge.d.ts.map +0 -1
- package/dist/openapi/models/postgresql-wait-chain-edge.js.map +0 -1
- package/dist/openapi/models/postgresql-wait-chain-node.d.ts.map +0 -1
- package/dist/openapi/models/postgresql-wait-chain-node.js.map +0 -1
- package/dist/openapi/models/postgresql-wait-chain.js.map +0 -1
- package/src/adminapi/models/postgresql-wait-chain.ts +0 -42
|
@@ -144,7 +144,7 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
|
|
|
144
144
|
};
|
|
145
145
|
},
|
|
146
146
|
/**
|
|
147
|
-
* Aggregate slow logs of a cluster (Victoria Logs backend only)
|
|
147
|
+
* 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.
|
|
148
148
|
* @summary Aggregate cluster slow logs
|
|
149
149
|
* @param {string} orgName
|
|
150
150
|
* @param {string} clusterName
|
|
@@ -369,10 +369,22 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
|
|
|
369
369
|
* @param {string} [componentName]
|
|
370
370
|
* @param {string} [instanceName]
|
|
371
371
|
* @param {string} [query]
|
|
372
|
+
* @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Decimal values are supported, for example 0.5.
|
|
373
|
+
* @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Decimal values are supported, for example 0.5.
|
|
374
|
+
* @param {number} [minLockTime] Minimum slow log lock time in seconds. Decimal values are supported, for example 0.001.
|
|
375
|
+
* @param {number} [maxLockTime] Maximum slow log lock time in seconds. Decimal values are supported, for example 0.001.
|
|
376
|
+
* @param {number} [minRowsExamined]
|
|
377
|
+
* @param {number} [maxRowsExamined]
|
|
378
|
+
* @param {number} [minRowsSent]
|
|
379
|
+
* @param {number} [maxRowsSent]
|
|
380
|
+
* @param {string} [dbName] Filter slow logs whose database name contains this value.
|
|
381
|
+
* @param {string} [userName] Filter slow logs whose user name contains this value.
|
|
382
|
+
* @param {string} [clientIp] Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
|
|
383
|
+
* @param {string} [appName] Filter slow logs whose application name contains this value.
|
|
372
384
|
* @param {*} [options] Override http request option.
|
|
373
385
|
* @throws {RequiredError}
|
|
374
386
|
*/
|
|
375
|
-
explainSlowLogTemplate: async (orgName: string, clusterName: string, templateId: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, query?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
387
|
+
explainSlowLogTemplate: async (orgName: string, clusterName: string, templateId: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, query?: string, minExecutionTime?: number, maxExecutionTime?: number, minLockTime?: number, maxLockTime?: number, minRowsExamined?: number, maxRowsExamined?: number, minRowsSent?: number, maxRowsSent?: number, dbName?: string, userName?: string, clientIp?: string, appName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
376
388
|
// verify required parameter 'orgName' is not null or undefined
|
|
377
389
|
assertParamExists('explainSlowLogTemplate', 'orgName', orgName)
|
|
378
390
|
// verify required parameter 'clusterName' is not null or undefined
|
|
@@ -425,6 +437,54 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
|
|
|
425
437
|
localVarQueryParameter['query'] = query;
|
|
426
438
|
}
|
|
427
439
|
|
|
440
|
+
if (minExecutionTime !== undefined) {
|
|
441
|
+
localVarQueryParameter['minExecutionTime'] = minExecutionTime;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
if (maxExecutionTime !== undefined) {
|
|
445
|
+
localVarQueryParameter['maxExecutionTime'] = maxExecutionTime;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
if (minLockTime !== undefined) {
|
|
449
|
+
localVarQueryParameter['minLockTime'] = minLockTime;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
if (maxLockTime !== undefined) {
|
|
453
|
+
localVarQueryParameter['maxLockTime'] = maxLockTime;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
if (minRowsExamined !== undefined) {
|
|
457
|
+
localVarQueryParameter['minRowsExamined'] = minRowsExamined;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
if (maxRowsExamined !== undefined) {
|
|
461
|
+
localVarQueryParameter['maxRowsExamined'] = maxRowsExamined;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
if (minRowsSent !== undefined) {
|
|
465
|
+
localVarQueryParameter['minRowsSent'] = minRowsSent;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
if (maxRowsSent !== undefined) {
|
|
469
|
+
localVarQueryParameter['maxRowsSent'] = maxRowsSent;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
if (dbName !== undefined) {
|
|
473
|
+
localVarQueryParameter['dbName'] = dbName;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
if (userName !== undefined) {
|
|
477
|
+
localVarQueryParameter['userName'] = userName;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
if (clientIp !== undefined) {
|
|
481
|
+
localVarQueryParameter['clientIp'] = clientIp;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
if (appName !== undefined) {
|
|
485
|
+
localVarQueryParameter['appName'] = appName;
|
|
486
|
+
}
|
|
487
|
+
|
|
428
488
|
|
|
429
489
|
|
|
430
490
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -444,7 +504,7 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
|
|
|
444
504
|
* @param {string} logType Log type: runninglog, errorlog, slow, auditlog
|
|
445
505
|
* @param {number} [startTime] Start time in epoch nanoseconds. If omitted, exports from the earliest available log
|
|
446
506
|
* @param {number} [endTime] End time in epoch nanoseconds. If omitted, exports up to the latest available log
|
|
447
|
-
* @param {string} [format] Export format: csv, raw, jsonl
|
|
507
|
+
* @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.
|
|
448
508
|
* @param {string} [query] Optional search query
|
|
449
509
|
* @param {string} [filename] Optional log filename filter
|
|
450
510
|
* @param {string} [componentName] Optional component name filter
|
|
@@ -599,7 +659,7 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
|
|
|
599
659
|
};
|
|
600
660
|
},
|
|
601
661
|
/**
|
|
602
|
-
* Get statistics summary for slow logs of a cluster
|
|
662
|
+
* 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.
|
|
603
663
|
* @summary Get cluster slow log statistics
|
|
604
664
|
* @param {string} orgName
|
|
605
665
|
* @param {string} clusterName
|
|
@@ -753,10 +813,22 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
|
|
|
753
813
|
* @param {string} [componentName]
|
|
754
814
|
* @param {string} [instanceName]
|
|
755
815
|
* @param {string} [query]
|
|
816
|
+
* @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Decimal values are supported, for example 0.5.
|
|
817
|
+
* @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Decimal values are supported, for example 0.5.
|
|
818
|
+
* @param {number} [minLockTime] Minimum slow log lock time in seconds. Decimal values are supported, for example 0.001.
|
|
819
|
+
* @param {number} [maxLockTime] Maximum slow log lock time in seconds. Decimal values are supported, for example 0.001.
|
|
820
|
+
* @param {number} [minRowsExamined]
|
|
821
|
+
* @param {number} [maxRowsExamined]
|
|
822
|
+
* @param {number} [minRowsSent]
|
|
823
|
+
* @param {number} [maxRowsSent]
|
|
824
|
+
* @param {string} [dbName] Filter slow logs whose database name contains this value.
|
|
825
|
+
* @param {string} [userName] Filter slow logs whose user name contains this value.
|
|
826
|
+
* @param {string} [clientIp] Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
|
|
827
|
+
* @param {string} [appName] Filter slow logs whose application name contains this value.
|
|
756
828
|
* @param {*} [options] Override http request option.
|
|
757
829
|
* @throws {RequiredError}
|
|
758
830
|
*/
|
|
759
|
-
getSlowLogTemplate: async (orgName: string, clusterName: string, templateId: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, query?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
831
|
+
getSlowLogTemplate: async (orgName: string, clusterName: string, templateId: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, query?: string, minExecutionTime?: number, maxExecutionTime?: number, minLockTime?: number, maxLockTime?: number, minRowsExamined?: number, maxRowsExamined?: number, minRowsSent?: number, maxRowsSent?: number, dbName?: string, userName?: string, clientIp?: string, appName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
760
832
|
// verify required parameter 'orgName' is not null or undefined
|
|
761
833
|
assertParamExists('getSlowLogTemplate', 'orgName', orgName)
|
|
762
834
|
// verify required parameter 'clusterName' is not null or undefined
|
|
@@ -809,6 +881,54 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
|
|
|
809
881
|
localVarQueryParameter['query'] = query;
|
|
810
882
|
}
|
|
811
883
|
|
|
884
|
+
if (minExecutionTime !== undefined) {
|
|
885
|
+
localVarQueryParameter['minExecutionTime'] = minExecutionTime;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
if (maxExecutionTime !== undefined) {
|
|
889
|
+
localVarQueryParameter['maxExecutionTime'] = maxExecutionTime;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
if (minLockTime !== undefined) {
|
|
893
|
+
localVarQueryParameter['minLockTime'] = minLockTime;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
if (maxLockTime !== undefined) {
|
|
897
|
+
localVarQueryParameter['maxLockTime'] = maxLockTime;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
if (minRowsExamined !== undefined) {
|
|
901
|
+
localVarQueryParameter['minRowsExamined'] = minRowsExamined;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
if (maxRowsExamined !== undefined) {
|
|
905
|
+
localVarQueryParameter['maxRowsExamined'] = maxRowsExamined;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
if (minRowsSent !== undefined) {
|
|
909
|
+
localVarQueryParameter['minRowsSent'] = minRowsSent;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
if (maxRowsSent !== undefined) {
|
|
913
|
+
localVarQueryParameter['maxRowsSent'] = maxRowsSent;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
if (dbName !== undefined) {
|
|
917
|
+
localVarQueryParameter['dbName'] = dbName;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
if (userName !== undefined) {
|
|
921
|
+
localVarQueryParameter['userName'] = userName;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
if (clientIp !== undefined) {
|
|
925
|
+
localVarQueryParameter['clientIp'] = clientIp;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
if (appName !== undefined) {
|
|
929
|
+
localVarQueryParameter['appName'] = appName;
|
|
930
|
+
}
|
|
931
|
+
|
|
812
932
|
|
|
813
933
|
|
|
814
934
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -989,7 +1109,7 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
|
|
|
989
1109
|
};
|
|
990
1110
|
},
|
|
991
1111
|
/**
|
|
992
|
-
* Query log hits histogram for time-bucketed log counts (VictoriaLogs only)
|
|
1112
|
+
* 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.
|
|
993
1113
|
* @summary Query log hits histogram
|
|
994
1114
|
* @param {string} orgName
|
|
995
1115
|
* @param {string} clusterName
|
|
@@ -1809,7 +1929,7 @@ export const ClusterLogApiFp = function(configuration?: Configuration) {
|
|
|
1809
1929
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1810
1930
|
},
|
|
1811
1931
|
/**
|
|
1812
|
-
* Aggregate slow logs of a cluster (Victoria Logs backend only)
|
|
1932
|
+
* 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.
|
|
1813
1933
|
* @summary Aggregate cluster slow logs
|
|
1814
1934
|
* @param {string} orgName
|
|
1815
1935
|
* @param {string} clusterName
|
|
@@ -1871,11 +1991,23 @@ export const ClusterLogApiFp = function(configuration?: Configuration) {
|
|
|
1871
1991
|
* @param {string} [componentName]
|
|
1872
1992
|
* @param {string} [instanceName]
|
|
1873
1993
|
* @param {string} [query]
|
|
1994
|
+
* @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Decimal values are supported, for example 0.5.
|
|
1995
|
+
* @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Decimal values are supported, for example 0.5.
|
|
1996
|
+
* @param {number} [minLockTime] Minimum slow log lock time in seconds. Decimal values are supported, for example 0.001.
|
|
1997
|
+
* @param {number} [maxLockTime] Maximum slow log lock time in seconds. Decimal values are supported, for example 0.001.
|
|
1998
|
+
* @param {number} [minRowsExamined]
|
|
1999
|
+
* @param {number} [maxRowsExamined]
|
|
2000
|
+
* @param {number} [minRowsSent]
|
|
2001
|
+
* @param {number} [maxRowsSent]
|
|
2002
|
+
* @param {string} [dbName] Filter slow logs whose database name contains this value.
|
|
2003
|
+
* @param {string} [userName] Filter slow logs whose user name contains this value.
|
|
2004
|
+
* @param {string} [clientIp] Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
|
|
2005
|
+
* @param {string} [appName] Filter slow logs whose application name contains this value.
|
|
1874
2006
|
* @param {*} [options] Override http request option.
|
|
1875
2007
|
* @throws {RequiredError}
|
|
1876
2008
|
*/
|
|
1877
|
-
async explainSlowLogTemplate(orgName: string, clusterName: string, templateId: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, query?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterSlowLogExplainResponse>> {
|
|
1878
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.explainSlowLogTemplate(orgName, clusterName, templateId, startTime, endTime, componentName, instanceName, query, options);
|
|
2009
|
+
async explainSlowLogTemplate(orgName: string, clusterName: string, templateId: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, query?: string, minExecutionTime?: number, maxExecutionTime?: number, minLockTime?: number, maxLockTime?: number, minRowsExamined?: number, maxRowsExamined?: number, minRowsSent?: number, maxRowsSent?: number, dbName?: string, userName?: string, clientIp?: string, appName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterSlowLogExplainResponse>> {
|
|
2010
|
+
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);
|
|
1879
2011
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1880
2012
|
const localVarOperationServerBasePath = operationServerMap['ClusterLogApi.explainSlowLogTemplate']?.[localVarOperationServerIndex]?.url;
|
|
1881
2013
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1888,7 +2020,7 @@ export const ClusterLogApiFp = function(configuration?: Configuration) {
|
|
|
1888
2020
|
* @param {string} logType Log type: runninglog, errorlog, slow, auditlog
|
|
1889
2021
|
* @param {number} [startTime] Start time in epoch nanoseconds. If omitted, exports from the earliest available log
|
|
1890
2022
|
* @param {number} [endTime] End time in epoch nanoseconds. If omitted, exports up to the latest available log
|
|
1891
|
-
* @param {string} [format] Export format: csv, raw, jsonl
|
|
2023
|
+
* @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.
|
|
1892
2024
|
* @param {string} [query] Optional search query
|
|
1893
2025
|
* @param {string} [filename] Optional log filename filter
|
|
1894
2026
|
* @param {string} [componentName] Optional component name filter
|
|
@@ -1918,7 +2050,7 @@ export const ClusterLogApiFp = function(configuration?: Configuration) {
|
|
|
1918
2050
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1919
2051
|
},
|
|
1920
2052
|
/**
|
|
1921
|
-
* Get statistics summary for slow logs of a cluster
|
|
2053
|
+
* 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.
|
|
1922
2054
|
* @summary Get cluster slow log statistics
|
|
1923
2055
|
* @param {string} orgName
|
|
1924
2056
|
* @param {string} clusterName
|
|
@@ -1961,11 +2093,23 @@ export const ClusterLogApiFp = function(configuration?: Configuration) {
|
|
|
1961
2093
|
* @param {string} [componentName]
|
|
1962
2094
|
* @param {string} [instanceName]
|
|
1963
2095
|
* @param {string} [query]
|
|
2096
|
+
* @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Decimal values are supported, for example 0.5.
|
|
2097
|
+
* @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Decimal values are supported, for example 0.5.
|
|
2098
|
+
* @param {number} [minLockTime] Minimum slow log lock time in seconds. Decimal values are supported, for example 0.001.
|
|
2099
|
+
* @param {number} [maxLockTime] Maximum slow log lock time in seconds. Decimal values are supported, for example 0.001.
|
|
2100
|
+
* @param {number} [minRowsExamined]
|
|
2101
|
+
* @param {number} [maxRowsExamined]
|
|
2102
|
+
* @param {number} [minRowsSent]
|
|
2103
|
+
* @param {number} [maxRowsSent]
|
|
2104
|
+
* @param {string} [dbName] Filter slow logs whose database name contains this value.
|
|
2105
|
+
* @param {string} [userName] Filter slow logs whose user name contains this value.
|
|
2106
|
+
* @param {string} [clientIp] Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
|
|
2107
|
+
* @param {string} [appName] Filter slow logs whose application name contains this value.
|
|
1964
2108
|
* @param {*} [options] Override http request option.
|
|
1965
2109
|
* @throws {RequiredError}
|
|
1966
2110
|
*/
|
|
1967
|
-
async getSlowLogTemplate(orgName: string, clusterName: string, templateId: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, query?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterSlowLogTemplate>> {
|
|
1968
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getSlowLogTemplate(orgName, clusterName, templateId, startTime, endTime, componentName, instanceName, query, options);
|
|
2111
|
+
async getSlowLogTemplate(orgName: string, clusterName: string, templateId: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, query?: string, minExecutionTime?: number, maxExecutionTime?: number, minLockTime?: number, maxLockTime?: number, minRowsExamined?: number, maxRowsExamined?: number, minRowsSent?: number, maxRowsSent?: number, dbName?: string, userName?: string, clientIp?: string, appName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterSlowLogTemplate>> {
|
|
2112
|
+
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);
|
|
1969
2113
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1970
2114
|
const localVarOperationServerBasePath = operationServerMap['ClusterLogApi.getSlowLogTemplate']?.[localVarOperationServerIndex]?.url;
|
|
1971
2115
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2013,7 +2157,7 @@ export const ClusterLogApiFp = function(configuration?: Configuration) {
|
|
|
2013
2157
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2014
2158
|
},
|
|
2015
2159
|
/**
|
|
2016
|
-
* Query log hits histogram for time-bucketed log counts (VictoriaLogs only)
|
|
2160
|
+
* 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.
|
|
2017
2161
|
* @summary Query log hits histogram
|
|
2018
2162
|
* @param {string} orgName
|
|
2019
2163
|
* @param {string} clusterName
|
|
@@ -2215,7 +2359,7 @@ export const ClusterLogApiFactory = function (configuration?: Configuration, bas
|
|
|
2215
2359
|
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));
|
|
2216
2360
|
},
|
|
2217
2361
|
/**
|
|
2218
|
-
* Aggregate slow logs of a cluster (Victoria Logs backend only)
|
|
2362
|
+
* 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.
|
|
2219
2363
|
* @summary Aggregate cluster slow logs
|
|
2220
2364
|
* @param {ClusterLogApiAggregateSlowLogsRequest} requestParameters Request parameters.
|
|
2221
2365
|
* @param {*} [options] Override http request option.
|
|
@@ -2242,7 +2386,7 @@ export const ClusterLogApiFactory = function (configuration?: Configuration, bas
|
|
|
2242
2386
|
* @throws {RequiredError}
|
|
2243
2387
|
*/
|
|
2244
2388
|
explainSlowLogTemplate(requestParameters: ClusterLogApiExplainSlowLogTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterSlowLogExplainResponse> {
|
|
2245
|
-
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));
|
|
2389
|
+
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));
|
|
2246
2390
|
},
|
|
2247
2391
|
/**
|
|
2248
2392
|
* Export cluster logs and return as a file download
|
|
@@ -2255,7 +2399,7 @@ export const ClusterLogApiFactory = function (configuration?: Configuration, bas
|
|
|
2255
2399
|
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));
|
|
2256
2400
|
},
|
|
2257
2401
|
/**
|
|
2258
|
-
* Get statistics summary for slow logs of a cluster
|
|
2402
|
+
* 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.
|
|
2259
2403
|
* @summary Get cluster slow log statistics
|
|
2260
2404
|
* @param {ClusterLogApiGetSlowLogStatsRequest} requestParameters Request parameters.
|
|
2261
2405
|
* @param {*} [options] Override http request option.
|
|
@@ -2272,7 +2416,7 @@ export const ClusterLogApiFactory = function (configuration?: Configuration, bas
|
|
|
2272
2416
|
* @throws {RequiredError}
|
|
2273
2417
|
*/
|
|
2274
2418
|
getSlowLogTemplate(requestParameters: ClusterLogApiGetSlowLogTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterSlowLogTemplate> {
|
|
2275
|
-
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));
|
|
2419
|
+
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));
|
|
2276
2420
|
},
|
|
2277
2421
|
/**
|
|
2278
2422
|
* Query audit logs of a cluster
|
|
@@ -2295,7 +2439,7 @@ export const ClusterLogApiFactory = function (configuration?: Configuration, bas
|
|
|
2295
2439
|
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));
|
|
2296
2440
|
},
|
|
2297
2441
|
/**
|
|
2298
|
-
* Query log hits histogram for time-bucketed log counts (VictoriaLogs only)
|
|
2442
|
+
* 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.
|
|
2299
2443
|
* @summary Query log hits histogram
|
|
2300
2444
|
* @param {ClusterLogApiQueryLogHitsRequest} requestParameters Request parameters.
|
|
2301
2445
|
* @param {*} [options] Override http request option.
|
|
@@ -2374,7 +2518,7 @@ export interface ClusterLogApiInterface {
|
|
|
2374
2518
|
aggregateAuditLogs(requestParameters: ClusterLogApiAggregateAuditLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLogAggregateResponse>;
|
|
2375
2519
|
|
|
2376
2520
|
/**
|
|
2377
|
-
* Aggregate slow logs of a cluster (Victoria Logs backend only)
|
|
2521
|
+
* 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.
|
|
2378
2522
|
* @summary Aggregate cluster slow logs
|
|
2379
2523
|
* @param {ClusterLogApiAggregateSlowLogsRequest} requestParameters Request parameters.
|
|
2380
2524
|
* @param {*} [options] Override http request option.
|
|
@@ -2414,7 +2558,7 @@ export interface ClusterLogApiInterface {
|
|
|
2414
2558
|
exportClusterLogs(requestParameters: ClusterLogApiExportClusterLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
2415
2559
|
|
|
2416
2560
|
/**
|
|
2417
|
-
* Get statistics summary for slow logs of a cluster
|
|
2561
|
+
* 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.
|
|
2418
2562
|
* @summary Get cluster slow log statistics
|
|
2419
2563
|
* @param {ClusterLogApiGetSlowLogStatsRequest} requestParameters Request parameters.
|
|
2420
2564
|
* @param {*} [options] Override http request option.
|
|
@@ -2454,7 +2598,7 @@ export interface ClusterLogApiInterface {
|
|
|
2454
2598
|
queryErrorLogs(requestParameters: ClusterLogApiQueryErrorLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRawLogResponse>;
|
|
2455
2599
|
|
|
2456
2600
|
/**
|
|
2457
|
-
* Query log hits histogram for time-bucketed log counts (VictoriaLogs only)
|
|
2601
|
+
* 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.
|
|
2458
2602
|
* @summary Query log hits histogram
|
|
2459
2603
|
* @param {ClusterLogApiQueryLogHitsRequest} requestParameters Request parameters.
|
|
2460
2604
|
* @param {*} [options] Override http request option.
|
|
@@ -2870,6 +3014,90 @@ export interface ClusterLogApiExplainSlowLogTemplateRequest {
|
|
|
2870
3014
|
* @memberof ClusterLogApiExplainSlowLogTemplate
|
|
2871
3015
|
*/
|
|
2872
3016
|
readonly query?: string
|
|
3017
|
+
|
|
3018
|
+
/**
|
|
3019
|
+
* Minimum slow log execution time in seconds. Decimal values are supported, for example 0.5.
|
|
3020
|
+
* @type {number}
|
|
3021
|
+
* @memberof ClusterLogApiExplainSlowLogTemplate
|
|
3022
|
+
*/
|
|
3023
|
+
readonly minExecutionTime?: number
|
|
3024
|
+
|
|
3025
|
+
/**
|
|
3026
|
+
* Maximum slow log execution time in seconds. Decimal values are supported, for example 0.5.
|
|
3027
|
+
* @type {number}
|
|
3028
|
+
* @memberof ClusterLogApiExplainSlowLogTemplate
|
|
3029
|
+
*/
|
|
3030
|
+
readonly maxExecutionTime?: number
|
|
3031
|
+
|
|
3032
|
+
/**
|
|
3033
|
+
* Minimum slow log lock time in seconds. Decimal values are supported, for example 0.001.
|
|
3034
|
+
* @type {number}
|
|
3035
|
+
* @memberof ClusterLogApiExplainSlowLogTemplate
|
|
3036
|
+
*/
|
|
3037
|
+
readonly minLockTime?: number
|
|
3038
|
+
|
|
3039
|
+
/**
|
|
3040
|
+
* Maximum slow log lock time in seconds. Decimal values are supported, for example 0.001.
|
|
3041
|
+
* @type {number}
|
|
3042
|
+
* @memberof ClusterLogApiExplainSlowLogTemplate
|
|
3043
|
+
*/
|
|
3044
|
+
readonly maxLockTime?: number
|
|
3045
|
+
|
|
3046
|
+
/**
|
|
3047
|
+
*
|
|
3048
|
+
* @type {number}
|
|
3049
|
+
* @memberof ClusterLogApiExplainSlowLogTemplate
|
|
3050
|
+
*/
|
|
3051
|
+
readonly minRowsExamined?: number
|
|
3052
|
+
|
|
3053
|
+
/**
|
|
3054
|
+
*
|
|
3055
|
+
* @type {number}
|
|
3056
|
+
* @memberof ClusterLogApiExplainSlowLogTemplate
|
|
3057
|
+
*/
|
|
3058
|
+
readonly maxRowsExamined?: number
|
|
3059
|
+
|
|
3060
|
+
/**
|
|
3061
|
+
*
|
|
3062
|
+
* @type {number}
|
|
3063
|
+
* @memberof ClusterLogApiExplainSlowLogTemplate
|
|
3064
|
+
*/
|
|
3065
|
+
readonly minRowsSent?: number
|
|
3066
|
+
|
|
3067
|
+
/**
|
|
3068
|
+
*
|
|
3069
|
+
* @type {number}
|
|
3070
|
+
* @memberof ClusterLogApiExplainSlowLogTemplate
|
|
3071
|
+
*/
|
|
3072
|
+
readonly maxRowsSent?: number
|
|
3073
|
+
|
|
3074
|
+
/**
|
|
3075
|
+
* Filter slow logs whose database name contains this value.
|
|
3076
|
+
* @type {string}
|
|
3077
|
+
* @memberof ClusterLogApiExplainSlowLogTemplate
|
|
3078
|
+
*/
|
|
3079
|
+
readonly dbName?: string
|
|
3080
|
+
|
|
3081
|
+
/**
|
|
3082
|
+
* Filter slow logs whose user name contains this value.
|
|
3083
|
+
* @type {string}
|
|
3084
|
+
* @memberof ClusterLogApiExplainSlowLogTemplate
|
|
3085
|
+
*/
|
|
3086
|
+
readonly userName?: string
|
|
3087
|
+
|
|
3088
|
+
/**
|
|
3089
|
+
* Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
|
|
3090
|
+
* @type {string}
|
|
3091
|
+
* @memberof ClusterLogApiExplainSlowLogTemplate
|
|
3092
|
+
*/
|
|
3093
|
+
readonly clientIp?: string
|
|
3094
|
+
|
|
3095
|
+
/**
|
|
3096
|
+
* Filter slow logs whose application name contains this value.
|
|
3097
|
+
* @type {string}
|
|
3098
|
+
* @memberof ClusterLogApiExplainSlowLogTemplate
|
|
3099
|
+
*/
|
|
3100
|
+
readonly appName?: string
|
|
2873
3101
|
}
|
|
2874
3102
|
|
|
2875
3103
|
/**
|
|
@@ -2914,7 +3142,7 @@ export interface ClusterLogApiExportClusterLogsRequest {
|
|
|
2914
3142
|
readonly endTime?: number
|
|
2915
3143
|
|
|
2916
3144
|
/**
|
|
2917
|
-
* Export format: csv, raw, jsonl
|
|
3145
|
+
* Export format: csv, raw, jsonl. The JSON-style slow log export format is newline-delimited JSON (jsonl), not a single JSON array.
|
|
2918
3146
|
* @type {string}
|
|
2919
3147
|
* @memberof ClusterLogApiExportClusterLogs
|
|
2920
3148
|
*/
|
|
@@ -3269,6 +3497,90 @@ export interface ClusterLogApiGetSlowLogTemplateRequest {
|
|
|
3269
3497
|
* @memberof ClusterLogApiGetSlowLogTemplate
|
|
3270
3498
|
*/
|
|
3271
3499
|
readonly query?: string
|
|
3500
|
+
|
|
3501
|
+
/**
|
|
3502
|
+
* Minimum slow log execution time in seconds. Decimal values are supported, for example 0.5.
|
|
3503
|
+
* @type {number}
|
|
3504
|
+
* @memberof ClusterLogApiGetSlowLogTemplate
|
|
3505
|
+
*/
|
|
3506
|
+
readonly minExecutionTime?: number
|
|
3507
|
+
|
|
3508
|
+
/**
|
|
3509
|
+
* Maximum slow log execution time in seconds. Decimal values are supported, for example 0.5.
|
|
3510
|
+
* @type {number}
|
|
3511
|
+
* @memberof ClusterLogApiGetSlowLogTemplate
|
|
3512
|
+
*/
|
|
3513
|
+
readonly maxExecutionTime?: number
|
|
3514
|
+
|
|
3515
|
+
/**
|
|
3516
|
+
* Minimum slow log lock time in seconds. Decimal values are supported, for example 0.001.
|
|
3517
|
+
* @type {number}
|
|
3518
|
+
* @memberof ClusterLogApiGetSlowLogTemplate
|
|
3519
|
+
*/
|
|
3520
|
+
readonly minLockTime?: number
|
|
3521
|
+
|
|
3522
|
+
/**
|
|
3523
|
+
* Maximum slow log lock time in seconds. Decimal values are supported, for example 0.001.
|
|
3524
|
+
* @type {number}
|
|
3525
|
+
* @memberof ClusterLogApiGetSlowLogTemplate
|
|
3526
|
+
*/
|
|
3527
|
+
readonly maxLockTime?: number
|
|
3528
|
+
|
|
3529
|
+
/**
|
|
3530
|
+
*
|
|
3531
|
+
* @type {number}
|
|
3532
|
+
* @memberof ClusterLogApiGetSlowLogTemplate
|
|
3533
|
+
*/
|
|
3534
|
+
readonly minRowsExamined?: number
|
|
3535
|
+
|
|
3536
|
+
/**
|
|
3537
|
+
*
|
|
3538
|
+
* @type {number}
|
|
3539
|
+
* @memberof ClusterLogApiGetSlowLogTemplate
|
|
3540
|
+
*/
|
|
3541
|
+
readonly maxRowsExamined?: number
|
|
3542
|
+
|
|
3543
|
+
/**
|
|
3544
|
+
*
|
|
3545
|
+
* @type {number}
|
|
3546
|
+
* @memberof ClusterLogApiGetSlowLogTemplate
|
|
3547
|
+
*/
|
|
3548
|
+
readonly minRowsSent?: number
|
|
3549
|
+
|
|
3550
|
+
/**
|
|
3551
|
+
*
|
|
3552
|
+
* @type {number}
|
|
3553
|
+
* @memberof ClusterLogApiGetSlowLogTemplate
|
|
3554
|
+
*/
|
|
3555
|
+
readonly maxRowsSent?: number
|
|
3556
|
+
|
|
3557
|
+
/**
|
|
3558
|
+
* Filter slow logs whose database name contains this value.
|
|
3559
|
+
* @type {string}
|
|
3560
|
+
* @memberof ClusterLogApiGetSlowLogTemplate
|
|
3561
|
+
*/
|
|
3562
|
+
readonly dbName?: string
|
|
3563
|
+
|
|
3564
|
+
/**
|
|
3565
|
+
* Filter slow logs whose user name contains this value.
|
|
3566
|
+
* @type {string}
|
|
3567
|
+
* @memberof ClusterLogApiGetSlowLogTemplate
|
|
3568
|
+
*/
|
|
3569
|
+
readonly userName?: string
|
|
3570
|
+
|
|
3571
|
+
/**
|
|
3572
|
+
* Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
|
|
3573
|
+
* @type {string}
|
|
3574
|
+
* @memberof ClusterLogApiGetSlowLogTemplate
|
|
3575
|
+
*/
|
|
3576
|
+
readonly clientIp?: string
|
|
3577
|
+
|
|
3578
|
+
/**
|
|
3579
|
+
* Filter slow logs whose application name contains this value.
|
|
3580
|
+
* @type {string}
|
|
3581
|
+
* @memberof ClusterLogApiGetSlowLogTemplate
|
|
3582
|
+
*/
|
|
3583
|
+
readonly appName?: string
|
|
3272
3584
|
}
|
|
3273
3585
|
|
|
3274
3586
|
/**
|
|
@@ -4243,7 +4555,7 @@ export class ClusterLogApi extends BaseAPI implements ClusterLogApiInterface {
|
|
|
4243
4555
|
}
|
|
4244
4556
|
|
|
4245
4557
|
/**
|
|
4246
|
-
* Aggregate slow logs of a cluster (Victoria Logs backend only)
|
|
4558
|
+
* 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.
|
|
4247
4559
|
* @summary Aggregate cluster slow logs
|
|
4248
4560
|
* @param {ClusterLogApiAggregateSlowLogsRequest} requestParameters Request parameters.
|
|
4249
4561
|
* @param {*} [options] Override http request option.
|
|
@@ -4275,7 +4587,7 @@ export class ClusterLogApi extends BaseAPI implements ClusterLogApiInterface {
|
|
|
4275
4587
|
* @memberof ClusterLogApi
|
|
4276
4588
|
*/
|
|
4277
4589
|
public explainSlowLogTemplate(requestParameters: ClusterLogApiExplainSlowLogTemplateRequest, options?: RawAxiosRequestConfig) {
|
|
4278
|
-
return 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));
|
|
4590
|
+
return 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));
|
|
4279
4591
|
}
|
|
4280
4592
|
|
|
4281
4593
|
/**
|
|
@@ -4291,7 +4603,7 @@ export class ClusterLogApi extends BaseAPI implements ClusterLogApiInterface {
|
|
|
4291
4603
|
}
|
|
4292
4604
|
|
|
4293
4605
|
/**
|
|
4294
|
-
* Get statistics summary for slow logs of a cluster
|
|
4606
|
+
* 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.
|
|
4295
4607
|
* @summary Get cluster slow log statistics
|
|
4296
4608
|
* @param {ClusterLogApiGetSlowLogStatsRequest} requestParameters Request parameters.
|
|
4297
4609
|
* @param {*} [options] Override http request option.
|
|
@@ -4311,7 +4623,7 @@ export class ClusterLogApi extends BaseAPI implements ClusterLogApiInterface {
|
|
|
4311
4623
|
* @memberof ClusterLogApi
|
|
4312
4624
|
*/
|
|
4313
4625
|
public getSlowLogTemplate(requestParameters: ClusterLogApiGetSlowLogTemplateRequest, options?: RawAxiosRequestConfig) {
|
|
4314
|
-
return 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));
|
|
4626
|
+
return 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));
|
|
4315
4627
|
}
|
|
4316
4628
|
|
|
4317
4629
|
/**
|
|
@@ -4339,7 +4651,7 @@ export class ClusterLogApi extends BaseAPI implements ClusterLogApiInterface {
|
|
|
4339
4651
|
}
|
|
4340
4652
|
|
|
4341
4653
|
/**
|
|
4342
|
-
* Query log hits histogram for time-bucketed log counts (VictoriaLogs only)
|
|
4654
|
+
* 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.
|
|
4343
4655
|
* @summary Query log hits histogram
|
|
4344
4656
|
* @param {ClusterLogApiQueryLogHitsRequest} requestParameters Request parameters.
|
|
4345
4657
|
* @param {*} [options] Override http request option.
|