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
…) (#78521)
  • Loading branch information
dplumlee authored Sep 25, 2020
1 parent adeec16 commit d2610d0
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 d2610d0

Please sign in to comment.