[Security Solution] expandable flyout - prevalence data is calculated from 30d to now #162791
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This previous PRs added the prevalence summary and the prevalence detail components to the expandable flyout right and left sections respectively.
This PR modifies the way the data is queried: instead of fetching some prevalence data. It was previously using a dynamic from/to time interval that was retrieved from timeline if timeline is active, or from the KQL bar. We're now retrieving prevalence information for the last 30 days (similar to the threat intelligence data). Changes have been made to the following hooks:
useFetchFieldValuePairByEventType
that retrieves all the unique hosts in the environment that have the field/value pairuseFetchFieldValuePairWithAggregation
that retrieves all the unique documents for the aggregationField in the environment that have the field/value pairThis PR shouldn't introduce any visual changes.
A follow up PR will add a datetime picker to the left section, to allow users to select a specific time range for the prevalence table.
https://github.com/elastic/security-team/issues/7014
Checklist
Delete any items that are not applicable to this PR.