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

Unable to filter on start/end date using filter_alerts function #5

Open
Gee94 opened this issue Sep 15, 2023 · 3 comments
Open

Unable to filter on start/end date using filter_alerts function #5

Gee94 opened this issue Sep 15, 2023 · 3 comments

Comments

@Gee94
Copy link

Gee94 commented Sep 15, 2023

I've been trying to retrieve alerts between two dates but the query always returns all results.

dfir-iris-client==2.0.1

session = ClientSession(apikey="<apikey>",
                                host='http://localhost:8000', ssl_verify=False)
alertInstance = Alert(session=session)
results = alertInstance.filter_alerts(alert_start_date="2023-09-01",alert_end_date="2023-09-02")

I appear to have the same issue when performing curl requests when using alert_start_date/alert_end_date.

source_start_date/source_end_date appear to be the correct API calls

@bvirgilioamnh
Copy link

I'm also having this issue.

@stysos
Copy link

stysos commented Dec 11, 2024

I'll create a pull request to fix this in the evening, the URI for filtering in alerts.py is wrong (is alert_start_date, should be source_start_date).

@stysos
Copy link

stysos commented Dec 11, 2024

PR at #17. Feel free to clone it, build and use that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants