Skip to content

Commit 34fa8a8

Browse files
floberndgithub-actions[bot]
authored andcommitted
Separate IndexingSlowlogSettings from regular search SlowlogSettings (#2220)
1 parent 3bfbefb commit 34fa8a8

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

specification/indices/_types/IndexSettings.ts

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export class IndexSettings
156156
* Enable or disable dynamic mapping for an index.
157157
*/
158158
mapping?: MappingLimitSettings
159-
'indexing.slowlog'?: SlowlogSettings
159+
'indexing.slowlog'?: IndexingSlowlogSettings
160160
/**
161161
* Configure indexing back pressure limits.
162162
*/
@@ -479,12 +479,6 @@ export class SlowlogSettings {
479479
export class SlowlogTresholds {
480480
query?: SlowlogTresholdLevels
481481
fetch?: SlowlogTresholdLevels
482-
/**
483-
* The indexing slow log, similar in functionality to the search slow log. The log file name ends with `_index_indexing_slowlog.json`.
484-
* Log and the thresholds are configured in the same way as the search slowlog.
485-
* @doc_id index-modules-slowlog-slowlog
486-
*/
487-
index?: SlowlogTresholdLevels
488482
}
489483

490484
export class SlowlogTresholdLevels {
@@ -549,3 +543,19 @@ export class IndexingPressureMemory {
549543
*/
550544
limit?: integer
551545
}
546+
547+
export class IndexingSlowlogSettings {
548+
level?: string
549+
source?: integer
550+
reformat?: boolean
551+
threshold?: IndexingSlowlogTresholds
552+
}
553+
554+
export class IndexingSlowlogTresholds {
555+
/**
556+
* The indexing slow log, similar in functionality to the search slow log. The log file name ends with `_index_indexing_slowlog.json`.
557+
* Log and the thresholds are configured in the same way as the search slowlog.
558+
* @doc_id index-modules-slowlog-slowlog
559+
*/
560+
index?: SlowlogTresholdLevels
561+
}

0 commit comments

Comments
 (0)