Revision a2fa6a5b
Export CSV alertes de VigiBoard (#954).
Permet l'export des alertes (événements corrélés) affichés à l'écran au
format CSV. L'export tient compte des critères de recherche
éventuellement appliqués.
Refs: #954.
Change-Id: I3c6639dbef9ca53043d45d8a683f5c77619af23a
Reviewed-on: https://vigilo-dev.si.c-s.fr/review/1017
Tested-by: Build system <qa@vigilo-dev.si.c-s.fr>
Reviewed-by: Thomas BURGUIERE <thomas.burguiere@c-s.fr>
vigiboard/controllers/plugins/hostname.py | ||
---|---|---|
47 | 47 |
if search.get('host'): |
48 | 48 |
host = sql_escape_like(search['host']) |
49 | 49 |
query.add_filter(query.items.c.hostname.ilike(host)) |
50 |
|
|
51 |
def get_data(self, event): |
|
52 |
return { |
|
53 |
'hostname': event.hostname, |
|
54 |
} |
Also available in: Unified diff