Skip to content

Commit

Permalink
Fix method usage as per new signature
Browse files Browse the repository at this point in the history
  • Loading branch information
lahsivjar committed Nov 5, 2024
1 parent e152890 commit 41853a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.elasticsearch.xpack.core.template.IngestPipelineConfig;
import org.elasticsearch.xpack.core.template.JsonIngestPipelineConfig;
import org.elasticsearch.xpack.core.template.JsonLifecyclePolicyConfig;
import org.elasticsearch.xpack.core.template.LifecyclePolicyConfig;

import java.io.IOException;
import java.util.Collections;
Expand Down Expand Up @@ -123,7 +124,7 @@ private void updateEnabledSetting(boolean newValue) {
}
}

private static final List<JsonLifecyclePolicyConfig> LIFECYCLE_POLICY_CONFIGS = List.of(
private static final List<LifecyclePolicyConfig> LIFECYCLE_POLICY_CONFIGS = List.of(
new JsonLifecyclePolicyConfig(LOGS_ILM_POLICY_NAME, "/[email protected]", ADDITIONAL_TEMPLATE_VARIABLES),
new JsonLifecyclePolicyConfig(METRICS_ILM_POLICY_NAME, "/[email protected]", ADDITIONAL_TEMPLATE_VARIABLES),
new JsonLifecyclePolicyConfig(SYNTHETICS_ILM_POLICY_NAME, "/[email protected]", ADDITIONAL_TEMPLATE_VARIABLES),
Expand All @@ -135,7 +136,7 @@ private void updateEnabledSetting(boolean newValue) {
);

@Override
protected List<JsonLifecyclePolicyConfig> getLifecycleConfigs() {
protected List<LifecyclePolicyConfig> getLifecycleConfigs() {
return LIFECYCLE_POLICY_CONFIGS;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import org.elasticsearch.xpack.core.template.IngestPipelineConfig;
import org.elasticsearch.xpack.core.template.JsonIngestPipelineConfig;
import org.elasticsearch.xpack.core.template.JsonLifecyclePolicyConfig;
import org.elasticsearch.xpack.core.template.LifecyclePolicyConfig;

import java.io.IOException;
import java.util.HashMap;
Expand Down Expand Up @@ -250,7 +251,7 @@ private void updateEnabledSetting(boolean newValue) {
}
}

private static final List<JsonLifecyclePolicyConfig> LIFECYCLE_POLICY_CONFIGS = List.of(
private static final List<LifecyclePolicyConfig> LIFECYCLE_POLICY_CONFIGS = List.of(
new JsonLifecyclePolicyConfig(LOGS_ILM_POLICY_NAME, "/[email protected]", ADDITIONAL_TEMPLATE_VARIABLES),
new JsonLifecyclePolicyConfig(METRICS_ILM_POLICY_NAME, "/[email protected]", ADDITIONAL_TEMPLATE_VARIABLES),
new JsonLifecyclePolicyConfig(SYNTHETICS_ILM_POLICY_NAME, "/[email protected]", ADDITIONAL_TEMPLATE_VARIABLES),
Expand All @@ -262,7 +263,7 @@ private void updateEnabledSetting(boolean newValue) {
);

@Override
protected List<JsonLifecyclePolicyConfig> getLifecycleConfigs() {
protected List<LifecyclePolicyConfig> getLifecycleConfigs() {
return LIFECYCLE_POLICY_CONFIGS;
}

Expand Down

0 comments on commit 41853a0

Please sign in to comment.