Skip to content

Commit d2d20e4

Browse files
authored
Make default window size valid for all metric types (#156)
Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com>
1 parent a5d0de7 commit d2d20e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/opensearch/plugin/insights/settings/QueryInsightsSettings.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public class QueryInsightsSettings {
6262
/** Default N size for top N queries */
6363
public static final int MAX_N_SIZE = 100;
6464
/** Default window size in seconds to keep the top N queries with latency data in query insight store */
65-
public static final TimeValue DEFAULT_WINDOW_SIZE = new TimeValue(60, TimeUnit.SECONDS);
65+
public static final TimeValue DEFAULT_WINDOW_SIZE = new TimeValue(1, TimeUnit.MINUTES);
6666
/** Default top N size to keep the data in query insight store */
6767
public static final int DEFAULT_TOP_N_SIZE = 3;
6868
/**

0 commit comments

Comments
 (0)