Skip to content

Commit

Permalink
update histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Apr 24, 2020
1 parent 59a9463 commit c031eca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion x-pack/legacy/plugins/uptime/common/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export { CLIENT_DEFAULTS } from './client_defaults';
export { CONTEXT_DEFAULTS } from './context_defaults';
export * from './capabilities';
export { PLUGIN } from './plugin';
export { QUERY, STATES } from './query';
export { QUERY } from './query';
export * from './ui';
export * from './rest_api';
7 changes: 0 additions & 7 deletions x-pack/legacy/plugins/uptime/common/constants/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,3 @@ export const QUERY = {
'error.type',
],
};

export const STATES = {
// Number of results returned for a states query
LEGACY_STATES_QUERY_SIZE: 10,
// The maximum number of monitors that should be supported
MAX_MONITORS: 35000,
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { get, sortBy } from 'lodash';
import { QueryContext } from './query_context';
import { QUERY, STATES } from '../../../../../../legacy/plugins/uptime/common/constants';
import { QUERY } from '../../../../../../legacy/plugins/uptime/common/constants';
import {
Check,
Histogram,
Expand Down Expand Up @@ -314,7 +314,7 @@ const getHistogramForMonitors = async (
by_id: {
terms: {
field: 'monitor.id',
size: STATES.LEGACY_STATES_QUERY_SIZE,
size: queryContext.size,
},
aggs: {
histogram: {
Expand Down

0 comments on commit c031eca

Please sign in to comment.