Skip to content

Make scheduled_queries/ directory configurable from global.json#1209

Merged
Ryxias merged 2 commits into
release-3-1-0from
dw--csq
Mar 27, 2020
Merged

Make scheduled_queries/ directory configurable from global.json#1209
Ryxias merged 2 commits into
release-3-1-0from
dw--csq

Conversation

@Ryxias

@Ryxias Ryxias commented Mar 25, 2020

Copy link
Copy Markdown
Collaborator

to: @ryandeivert
cc: @airbnb/streamalert-maintainers

Changes

It's now configurable under the node scheduled_query_locations in the global.json file

@ryandeivert ryandeivert left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

one request be otherwise LGTM

def load_packs(cls):
import_folders(PACKS_DIRECTORY)
def load_packs(cls, directories):
for dir in directories:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

import_folders takes an arbitrary # of args (using *args).. all you have to do here is use list expansion:

def load_packs(cls, directories):
    import_folders(*directories)

@ryandeivert ryandeivert added streamquery Scheduled queries config labels Mar 26, 2020
@ryandeivert

Copy link
Copy Markdown
Contributor

@ryandeivert ryandeivert changed the base branch from release-3-1-0 to release-3-2-0 March 27, 2020 04:22
@ryandeivert ryandeivert changed the base branch from release-3-2-0 to release-3-1-0 March 27, 2020 04:22
@ryandeivert ryandeivert added this to the 3.1.0 milestone Mar 27, 2020
@Ryxias Ryxias merged commit cdeff0c into release-3-1-0 Mar 27, 2020
@Ryxias Ryxias deleted the dw--csq branch March 27, 2020 16:53
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.003%) to 95.428% when pulling 8f97786 on dw--csq into 266c5a5 on release-3-1-0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config streamquery Scheduled queries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants