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

Normalization reboot - Add condition support to normalizer #1245

Merged
merged 4 commits into from
May 7, 2020

Conversation

chunyong-lin
Copy link
Contributor

to: @airbnb/streamalert-maintainers
related to: #1178, #1230, #1238, #1237, #1242
resolves:

Background

This PR is to add the optional block condition to normalization configure. With this support, we will have more flexibility to normalize only a subset of data. The normalizer will be skipped if the condition block presented and the condition is not met.

See the updated doc for the usage of the condition block.

Changes

Testing

  • Unit test cases are passed
  • Tested in staging account

@chunyong-lin chunyong-lin added this to the 3.3.0 milestone May 5, 2020
found_value = False
break
found_value = True
if param.get('condition') and not cls._match_condition(record, param['condition']):
Copy link
Contributor

Choose a reason for hiding this comment

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

condition —> CONST_CONDITION?

@chunyong-lin chunyong-lin merged commit 00699ee into feature-artifact-extractor May 7, 2020
@chunyong-lin chunyong-lin deleted the cylin-ae-conditions branch May 7, 2020 19:33
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.

2 participants