зеркало из https://github.com/mozilla/MozDef.git
Add locality details to alert details
This commit is contained in:
Родитель
1a698187f6
Коммит
9eef1d8dd8
|
@ -49,4 +49,11 @@ class AlertGeomodel(AlertTask):
|
|||
severity = 'WARNING'
|
||||
|
||||
summary = ev['summary']
|
||||
return self.createAlertDict(summary, category, tags, [event], severity)
|
||||
alert_dict = self.createAlertDict(summary, category, tags, [event], severity)
|
||||
|
||||
alert_dict['details'] = {
|
||||
'locality_details': ev['details']['locality_details'],
|
||||
'category': ev['details']['category'],
|
||||
}
|
||||
|
||||
return alert_dict
|
||||
|
|
Загрузка…
Ссылка в новой задаче