Skip to content

Commit

Permalink
Separate IndexingSlowlogSettings from regular search SlowlogSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
flobernd committed Aug 3, 2023
1 parent 166461d commit a44435b
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions specification/indices/_types/IndexSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export class IndexSettings
* Enable or disable dynamic mapping for an index.
*/
mapping?: MappingLimitSettings
'indexing.slowlog'?: SlowlogSettings
'indexing.slowlog'?: IndexingSlowlogSettings
/**
* Configure indexing back pressure limits.
*/
Expand Down Expand Up @@ -479,12 +479,6 @@ export class SlowlogSettings {
export class SlowlogTresholds {
query?: SlowlogTresholdLevels
fetch?: SlowlogTresholdLevels
/**
* The indexing slow log, similar in functionality to the search slow log. The log file name ends with `_index_indexing_slowlog.json`.
* Log and the thresholds are configured in the same way as the search slowlog.
* @doc_id index-modules-slowlog-slowlog
*/
index?: SlowlogTresholdLevels
}

export class SlowlogTresholdLevels {
Expand Down Expand Up @@ -549,3 +543,19 @@ export class IndexingPressureMemory {
*/
limit?: integer
}

export class IndexingSlowlogSettings {
level?: string
source?: integer
reformat?: boolean
threshold?: IndexingSlowlogTresholds
}

export class IndexingSlowlogTresholds {
/**
* The indexing slow log, similar in functionality to the search slow log. The log file name ends with `_index_indexing_slowlog.json`.
* Log and the thresholds are configured in the same way as the search slowlog.
* @doc_id index-modules-slowlog-slowlog
*/
index?: SlowlogTresholdLevels
}

0 comments on commit a44435b

Please sign in to comment.