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/config/app_cfg.py | ||
---|---|---|
75 | 75 |
|
76 | 76 |
base_config = VigiboardConfig('VigiBoard') |
77 | 77 |
base_config.package = vigiboard |
78 |
base_config.mimetype_lookup = { |
|
79 |
'.csv': 'text/csv', |
|
80 |
} |
|
78 | 81 |
|
79 | 82 |
################################## |
80 | 83 |
# Settings specific to Vigiboard # |
... | ... | |
134 | 137 |
'status', |
135 | 138 |
# 'test', |
136 | 139 |
) |
140 |
|
|
141 |
base_config['csv_columns'] = ( |
|
142 |
'id', |
|
143 |
'state', |
|
144 |
'initial_state', |
|
145 |
'peak_state', |
|
146 |
'date', |
|
147 |
'duration', |
|
148 |
'priority', |
|
149 |
'occurrences', |
|
150 |
'hostname', |
|
151 |
'servicename', |
|
152 |
'output', |
|
153 |
'ack', |
|
154 |
'trouble_ticket_id', |
|
155 |
'trouble_ticket_link', |
|
156 |
) |
Also available in: Unified diff