From 66f9aed3365f03bdc2998ec4fa50d15ee24de583 Mon Sep 17 00:00:00 2001 From: Siddhant Deshmukh Date: Tue, 12 Nov 2024 12:25:43 -0800 Subject: [PATCH] Make default window size valid for all metric types Signed-off-by: Siddhant Deshmukh --- .../plugin/insights/settings/QueryInsightsSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/opensearch/plugin/insights/settings/QueryInsightsSettings.java b/src/main/java/org/opensearch/plugin/insights/settings/QueryInsightsSettings.java index cc81f47f..316699c5 100644 --- a/src/main/java/org/opensearch/plugin/insights/settings/QueryInsightsSettings.java +++ b/src/main/java/org/opensearch/plugin/insights/settings/QueryInsightsSettings.java @@ -62,7 +62,7 @@ public class QueryInsightsSettings { /** Default N size for top N queries */ public static final int MAX_N_SIZE = 100; /** Default window size in seconds to keep the top N queries with latency data in query insight store */ - public static final TimeValue DEFAULT_WINDOW_SIZE = new TimeValue(60, TimeUnit.SECONDS); + public static final TimeValue DEFAULT_WINDOW_SIZE = new TimeValue(1, TimeUnit.MINUTES); /** Default top N size to keep the data in query insight store */ public static final int DEFAULT_TOP_N_SIZE = 3; /**