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/details.py | ||
---|---|---|
164 | 164 |
maps = user_maps, |
165 | 165 |
idcause = event.idcause, |
166 | 166 |
) |
167 |
|
|
168 |
def get_data(self, event): |
|
169 |
state = StateName.value_to_statename(event[0].cause.current_state) |
|
170 |
peak_state = StateName.value_to_statename(event[0].cause.peak_state) |
|
171 |
init_state = StateName.value_to_statename(event[0].cause.initial_state) |
|
172 |
return { |
|
173 |
'state': state, |
|
174 |
'peak_state': peak_state, |
|
175 |
'initial_state': init_state, |
|
176 |
'id': event[0].idcorrevent, |
|
177 |
} |
Also available in: Unified diff