Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Change default value of the index rollover condition (#206)
Browse files Browse the repository at this point in the history
* change default value of the setting 'alert_history_max_age' to 30 days

* change default value of the setting 'alert_history_retention_period' to 60 days
  • Loading branch information
ftianli-amzn authored May 28, 2020
1 parent 9f405c2 commit 573986b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class AlertingSettings {

val ALERT_HISTORY_INDEX_MAX_AGE = Setting.positiveTimeSetting(
"opendistro.alerting.alert_history_max_age",
TimeValue.timeValueHours(24),
TimeValue(30, TimeUnit.DAYS),
Setting.Property.NodeScope, Setting.Property.Dynamic
)

Expand All @@ -104,7 +104,7 @@ class AlertingSettings {

val ALERT_HISTORY_RETENTION_PERIOD = Setting.positiveTimeSetting(
"opendistro.alerting.alert_history_retention_period",
TimeValue(30, TimeUnit.DAYS),
TimeValue(60, TimeUnit.DAYS),
Setting.Property.NodeScope, Setting.Property.Dynamic
)

Expand Down

0 comments on commit 573986b

Please sign in to comment.