Skip to content

Commit

Permalink
Expose startIndex
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
  • Loading branch information
ohltyler committed Nov 15, 2023
1 parent 4d0622e commit 455ec8e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ public <T> void run(Map<String, String> parameters, ActionListener<T> listener)
final String tableSortOrder = parameters.getOrDefault("sortOrder", "asc");
final String tableSortString = parameters.getOrDefault("sortString", "monitor_name.keyword");
final int tableSize = parameters.containsKey("size") ? Integer.parseInt(parameters.get("size")) : 20;
final int startIndex = parameters.containsKey("startIndex") ? Integer.parseInt(parameters.get("startIndex")) : 0;
final String searchString = parameters.getOrDefault("searchString", null);

// not exposing "missing" or "startIndex" from the table, using defaults of null/0, respectively
final Table table = new Table(tableSortOrder, tableSortString, null, tableSize, 0, searchString);
// not exposing "missing" from the table, using default of null
final Table table = new Table(tableSortOrder, tableSortString, null, tableSize, startIndex, searchString);

final String severityLevel = parameters.getOrDefault("severityLevel", "ALL");
final String alertState = parameters.getOrDefault("alertState", "ALL");
Expand Down

0 comments on commit 455ec8e

Please sign in to comment.