parent
9173eb04e3
commit
fa0cc9bfca
1 changed files with 3 additions and 1 deletions
|
@ -41,7 +41,9 @@ async def create_alert(request: web_request.Request) -> web.Response:
|
||||||
return web.Response(status=500)
|
return web.Response(status=500)
|
||||||
|
|
||||||
fingerprints = tuple(alert["fingerprint"] for alert in data["alerts"])
|
fingerprints = tuple(alert["fingerprint"] for alert in data["alerts"])
|
||||||
cache.set(event.event_id, fingerprints, expire=config.cache_expire_time)
|
cache.set(
|
||||||
|
event.event_id, fingerprints, expire=config.cache_expire_time, tag="event"
|
||||||
|
)
|
||||||
return web.Response(status=200)
|
return web.Response(status=200)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue