9 lines
478 B
Django/Jinja
9 lines
478 B
Django/Jinja
{
|
|
"title": "{{ scan.title }} - {{ alert.type|title|replace('_', ' ') }}",
|
|
"message": "{{ alert.message }}{% if alert.ip_address %} on {{ alert.ip_address }}{% endif %}{% if alert.port %}:{{ alert.port }}{% endif %}",
|
|
"priority": {% if alert.severity == 'critical' %}5{% elif alert.severity == 'warning' %}3{% else %}1{% endif %},
|
|
"severity": "{{ alert.severity }}",
|
|
"scan_id": {{ scan.id }},
|
|
"alert_id": {{ alert.id }},
|
|
"timestamp": "{{ timestamp.isoformat() }}"
|
|
} |