File tree Expand file tree Collapse file tree 3 files changed +3
-10
lines changed
server/lib/requests/search Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ export { CONTEXT_DEFAULTS } from './context_defaults';
1111export * from './capabilities' ;
1212export * from './settings_defaults' ;
1313export { PLUGIN } from './plugin' ;
14- export { QUERY , STATES } from './query' ;
14+ export { QUERY } from './query' ;
1515export * from './ui' ;
1616export * from './rest_api' ;
Original file line number Diff line number Diff line change @@ -25,10 +25,3 @@ export const QUERY = {
2525 'error.type' ,
2626 ] ,
2727} ;
28-
29- export const STATES = {
30- // Number of results returned for a states query
31- LEGACY_STATES_QUERY_SIZE : 10 ,
32- // The maximum number of monitors that should be supported
33- MAX_MONITORS : 35000 ,
34- } ;
Original file line number Diff line number Diff line change 66
77import { get , sortBy } from 'lodash' ;
88import { QueryContext } from './query_context' ;
9- import { QUERY , STATES } from '../../../../common/constants' ;
9+ import { QUERY } from '../../../../common/constants' ;
1010import {
1111 Check ,
1212 Histogram ,
@@ -314,7 +314,7 @@ const getHistogramForMonitors = async (
314314 by_id : {
315315 terms : {
316316 field : 'monitor.id' ,
317- size : STATES . LEGACY_STATES_QUERY_SIZE ,
317+ size : queryContext . size ,
318318 } ,
319319 aggs : {
320320 histogram : {
You can’t perform that action at this time.
0 commit comments