-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
I'm using version 1.2.0 of this module:
$ pip freeze | grep threatstack
threatstack==1.2.0
I can run through the steps in the docs trying to get alerts, but I always wind up with an empty list. Something's wrong with the generator.
from datetime import datetime, timedelta
from threatstack import ThreatStack
api_key = 'my_api_key'
org_id = 'my_org_id'
user_id = 'my_user_id'
client = ThreatStack(api_key=api_key, org_id=org_id, user_id=user_id)
now = datetime.now()
yesterday = now - timedelta(days=1)
alerts = client.alerts.list(start=yesterday, end=now)
print([ alert for alert in alerts ])
The output:
[]
If I look in the web UI, I can see several alerts occurring in the past day. I should get more than an empty list here.
Metadata
Metadata
Assignees
Labels
No labels