feat: rename historic sql setup threshold

This commit is contained in:
Andrey Avtomonov 2026-05-11 19:08:41 +02:00
parent d47826a234
commit c91331b57a
6 changed files with 21 additions and 14 deletions

View file

@ -34,6 +34,7 @@ export interface KtxSetupDatabasesArgs {
enableHistoricSql?: boolean;
disableHistoricSql?: boolean;
historicSqlWindowDays?: number;
historicSqlMinExecutions?: number;
historicSqlMinCalls?: number;
historicSqlServiceAccountPatterns?: string[];
historicSqlRedactionPatterns?: string[];
@ -676,8 +677,7 @@ async function maybeApplyHistoricSqlConfig(input: {
...input.connection,
historicSql: {
...common,
minCalls: input.args.historicSqlMinCalls ?? 5,
maxTemplatesPerRun: 5000,
minExecutions: input.args.historicSqlMinExecutions ?? input.args.historicSqlMinCalls ?? 5,
},
};
}