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

Commit

Permalink
change AD setting name
Browse files Browse the repository at this point in the history
  • Loading branch information
ylwu-amzn authored and wnbts committed Jan 9, 2020
1 parent 484ea52 commit e7429ed
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,71 +30,71 @@ private AnomalyDetectorSettings() {
}

public static final Setting<Integer> MAX_ANOMALY_DETECTORS = Setting.intSetting(
"ml.anomaly_detectors.max_anomaly_detectors",
"opendistro.anomaly_detection.max_anomaly_detectors",
1000,
Setting.Property.NodeScope, Setting.Property.Dynamic);

public static final Setting<Integer> MAX_ANOMALY_FEATURES = Setting.intSetting(
"ml.anomaly_detectors.max_anomaly_features",
"opendistro.anomaly_detection.max_anomaly_features",
5,
Setting.Property.NodeScope, Setting.Property.Dynamic);

public static final Setting<TimeValue> REQUEST_TIMEOUT = Setting.positiveTimeSetting(
"ml.anomaly_detectors.request_timeout",
"opendistro.anomaly_detection.request_timeout",
TimeValue.timeValueSeconds(10),
Setting.Property.NodeScope, Setting.Property.Dynamic);

public static final Setting<TimeValue> DETECTION_INTERVAL = Setting.positiveTimeSetting(
"ml.anomaly_detectors.detection_interval",
"opendistro.anomaly_detection.detection_interval",
TimeValue.timeValueMinutes(10),
Setting.Property.NodeScope, Setting.Property.Dynamic);

public static final Setting<TimeValue> DETECTION_WINDOW_DELAY = Setting.positiveTimeSetting(
"ml.anomaly_detectors.detection_window_delay",
"opendistro.anomaly_detection.detection_window_delay",
TimeValue.timeValueSeconds(30),
Setting.Property.NodeScope, Setting.Property.Dynamic);

public static final Setting<TimeValue> AD_RESULT_ROLLOVER_PERIOD = Setting.positiveTimeSetting(
"ml.anomaly_detectors.ad_result_rollover_period",
"opendistro.anomaly_detection.ad_result_rollover_period",
TimeValue.timeValueHours(12),
Setting.Property.NodeScope, Setting.Property.Dynamic);

public static final Setting<TimeValue> AD_RESULT_HISTORY_ROLLOVER_PERIOD = Setting.positiveTimeSetting(
"ml.anomaly_detectors.ad_result_history_rollover_period",
"opendistro.anomaly_detection.ad_result_history_rollover_period",
TimeValue.timeValueHours(12),
Setting.Property.NodeScope, Setting.Property.Dynamic);

public static final Setting<TimeValue> AD_RESULT_HISTORY_INDEX_MAX_AGE = Setting.positiveTimeSetting(
"ml.anomaly_detectors.ad_result_history_max_age",
"opendistro.anomaly_detection.ad_result_history_max_age",
TimeValue.timeValueHours(24),
Setting.Property.NodeScope, Setting.Property.Dynamic);

public static final Setting<Long> AD_RESULT_HISTORY_MAX_DOCS = Setting.longSetting(
"ml.anomaly_detectors.ad_result_history_max_docs",
"opendistro.anomaly_detection.ad_result_history_max_docs",
10000L,
0L,
Setting.Property.NodeScope, Setting.Property.Dynamic);

public static final Setting<Integer> MAX_RETRY_FOR_UNRESPONSIVE_NODE = Setting.intSetting(
"ml.anomaly_detectors.max_retry_for_unresponsive_node",
"opendistro.anomaly_detection.max_retry_for_unresponsive_node",
5,
0,
Setting.Property.NodeScope, Setting.Property.Dynamic);

public static final Setting<TimeValue> COOLDOWN_MINUTES = Setting.positiveTimeSetting(
"ml.anomaly_detectors.cooldown_minutes", TimeValue.timeValueMinutes(5),
"opendistro.anomaly_detection.cooldown_minutes", TimeValue.timeValueMinutes(5),
Setting.Property.NodeScope, Setting.Property.Dynamic);

public static final Setting<TimeValue> BACKOFF_MINUTES = Setting.positiveTimeSetting(
"ml.anomaly_detectors.backoff_minutes", TimeValue.timeValueMinutes(15),
"opendistro.anomaly_detection.backoff_minutes", TimeValue.timeValueMinutes(15),
Setting.Property.NodeScope, Setting.Property.Dynamic);

public static final Setting<TimeValue> BACKOFF_INITIAL_DELAY = Setting.positiveTimeSetting(
"ml.anomaly_detectors.backoff_initial_delay", TimeValue.timeValueMillis(1000),
"opendistro.anomaly_detection.backoff_initial_delay", TimeValue.timeValueMillis(1000),
Setting.Property.NodeScope, Setting.Property.Dynamic);

public static final Setting<Integer> MAX_RETRY_FOR_BACKOFF = Setting.intSetting(
"ml.anomaly_detectors.max_retry_for_backoff",
"opendistro.anomaly_detection.max_retry_for_backoff",
3,
0,
Setting.Property.NodeScope, Setting.Property.Dynamic);
Expand Down

0 comments on commit e7429ed

Please sign in to comment.