Skip to content

Commit

Permalink
[Security Solution] Changes rule details default stack-by value (#78357)
Browse files Browse the repository at this point in the history
  • Loading branch information
dplumlee committed Sep 24, 2020
1 parent 441ebf6 commit 34e8a3f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ import { timelineDefaults } from '../../../../../timelines/store/timeline/defaul
import { TimelineModel } from '../../../../../timelines/store/timeline/model';
import { useSourcererScope } from '../../../../../common/containers/sourcerer';
import { SourcererScopeName } from '../../../../../common/store/sourcerer/model';
import { AlertsHistogramOption } from '../../../../components/alerts_histogram_panel/types';

enum RuleDetailTabs {
alerts = 'alerts',
Expand Down Expand Up @@ -345,6 +346,11 @@ export const RuleDetailsPageComponent: FC<PropsFromRedux> = ({
return null;
}

const defaultRuleStackByOption: AlertsHistogramOption = {
text: 'event.category',
value: 'event.category',
};

return (
<>
{hasIndexWrite != null && !hasIndexWrite && <NoWriteAlertsCallOut />}
Expand Down Expand Up @@ -480,6 +486,7 @@ export const RuleDetailsPageComponent: FC<PropsFromRedux> = ({
signalIndexName={signalIndexName}
setQuery={setQuery}
stackByOptions={alertsHistogramOptions}
defaultStackByOption={defaultRuleStackByOption}
to={to}
updateDateRange={updateDateRangeCallback}
/>
Expand Down

0 comments on commit 34e8a3f

Please sign in to comment.