Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize sigma aggregation rule based detectors execution workflow #1418

Merged
merged 3 commits into from
Dec 12, 2024

Conversation

sbcd90
Copy link
Collaborator

@sbcd90 sbcd90 commented Nov 13, 2024

Description

This pr proposes optimizations for sigma aggregation rule based detectors execution workflow.

Related Issues

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Subhobrata Dey <[email protected]>
@eirsep
Copy link
Member

eirsep commented Dec 11, 2024

the description seems to not be related to the change in the PR

am unable to understand the change made and the significance of it
plz add code comments too

@@ -84,12 +86,21 @@ public void onResponse(GetDetectorResponse getDetectorResponse) {
// monitor --> detectorId mapping
Map<String, String> monitorToDetectorMapping = new HashMap<>();
detector.getMonitorIds().forEach(
monitorId -> monitorToDetectorMapping.put(monitorId, detector.getId())
monitorId -> {
if (detector.getRuleIdMonitorIdMap().containsKey(CHAINED_FINDINGS_MONITOR_STRING)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this?

eirsep
eirsep previously approved these changes Dec 12, 2024
Signed-off-by: Subhobrata Dey <[email protected]>
@eirsep eirsep merged commit 2a9646e into opensearch-project:main Dec 12, 2024
8 of 9 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Dec 17, 2024
…1418)

* optimize sigma aggregation rule based detectors execution workflow

Signed-off-by: Subhobrata Dey <[email protected]>

* update fixes

Signed-off-by: Subhobrata Dey <[email protected]>

* update ci to v4

Signed-off-by: Subhobrata Dey <[email protected]>

---------

Signed-off-by: Subhobrata Dey <[email protected]>
(cherry picked from commit 2a9646e)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Dec 17, 2024
…1418)

* optimize sigma aggregation rule based detectors execution workflow

Signed-off-by: Subhobrata Dey <[email protected]>

* update fixes

Signed-off-by: Subhobrata Dey <[email protected]>

* update ci to v4

Signed-off-by: Subhobrata Dey <[email protected]>

---------

Signed-off-by: Subhobrata Dey <[email protected]>
(cherry picked from commit 2a9646e)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Dec 17, 2024
…1418)

* optimize sigma aggregation rule based detectors execution workflow

Signed-off-by: Subhobrata Dey <[email protected]>

* update fixes

Signed-off-by: Subhobrata Dey <[email protected]>

* update ci to v4

Signed-off-by: Subhobrata Dey <[email protected]>

---------

Signed-off-by: Subhobrata Dey <[email protected]>
(cherry picked from commit 2a9646e)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
sbcd90 pushed a commit that referenced this pull request Dec 18, 2024
…1418) (#1433)

* optimize sigma aggregation rule based detectors execution workflow

Signed-off-by: Subhobrata Dey <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
sbcd90 pushed a commit that referenced this pull request Dec 18, 2024
…1418) (#1432)

(cherry picked from commit 2a9646e)
Signed-off-by: Subhobrata Dey <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
sbcd90 pushed a commit that referenced this pull request Dec 18, 2024
…1418) (#1431)

(cherry picked from commit 2a9646e)

Signed-off-by: Subhobrata Dey <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants