Skip to content

Commit

Permalink
Add processor.event filter to service nodes projection
Browse files Browse the repository at this point in the history
  • Loading branch information
dgieselaar committed Oct 3, 2019
1 parent ae79c44 commit cb1da01
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
*/

import { Setup } from '../../server/lib/helpers/setup_request';
import { SERVICE_NAME, SERVICE_NODE_NAME } from '../elasticsearch_fieldnames';
import {
SERVICE_NAME,
SERVICE_NODE_NAME,
PROCESSOR_EVENT
} from '../elasticsearch_fieldnames';
import { rangeFilter } from '../../server/lib/helpers/range_filter';

export function getServiceNodesProjection({
Expand All @@ -24,6 +28,7 @@ export function getServiceNodesProjection({
bool: {
filter: [
{ term: { [SERVICE_NAME]: serviceName } },
{ term: { [PROCESSOR_EVENT]: 'metric' } },
{ range: rangeFilter(start, end) },
...uiFiltersES
]
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cb1da01

Please sign in to comment.