Skip to content

Commit

Permalink
Added a feature of rollup search on the UI side
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Antonov <alexwizp@gmail.com>
  • Loading branch information
sulemanof authored and alexwizp committed Jan 14, 2019
1 parent 09ea8e3 commit 9568b09
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ export const IndexPattern = props => {
const indexPatternName = `${prefix}index_pattern`;
const intervalName = `${prefix}interval`;
const dropBucketName = `${prefix}drop_last_bucket`;
const rollupSearchName = `${prefix}rollup_search`;

const defaults = {
[indexPatternName]: '*',
[intervalName]: 'auto',
[dropBucketName]: 1
[dropBucketName]: 1,
[rollupSearchName]: 0
};

const htmlId = htmlIdGenerator();
Expand All @@ -73,6 +75,22 @@ export const IndexPattern = props => {
/>
</EuiFormRow>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiFormLabel>
<FormattedMessage
id="tsvb.indexPattern.searchRolledUpData"
defaultMessage="Searching rolled-up data?"
/>
</EuiFormLabel>
<EuiSpacer size="s" />
<YesNo
value={model[rollupSearchName]}
name={rollupSearchName}
onChange={props.onChange}
/>
</EuiFlexItem>
</EuiFlexGroup>
<EuiFlexGroup responsive={false} wrap={true}>
<EuiFlexItem>
<EuiFormRow
id={htmlId('timeField')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ export default function MetricsVisProvider(Private, i18n) {
axis_formatter: 'number',
axis_scale: 'normal',
show_legend: 1,
show_grid: 1
show_grid: 1,
rollup_search: 0
},
component: require('../components/vis_editor')
},
Expand Down

0 comments on commit 9568b09

Please sign in to comment.