{%- extends "_layout.html" %} {%- block content %}

{{ hawat_current_view.get_view_title() }}


{% if item['Description'] %}{{ item['Description'] }} {{ item.get_id() }}{% else %}{{ item.get_id() }}{% endif %}

{{ macros_page.render_menu_actions(item) }}
{%- if item['Note'] %}

{{ item['Note'] }}

{%- endif %}

{{ gettext('Event severity') }}: {{ macros_site.render_event_label_severity(item, True) }}  |  {{ gettext('Event detected') }}: {{ babel_format_datetime(item.get_detect_time()) }} ({{ gettext('%(delta)s ago', delta = babel_format_timedelta(current_datetime_utc - item.get_detect_time())) }})  |  {{ gettext('Event stored') }}: {{ babel_format_datetime(item.get_storage_time()) }} ({{ gettext('%(delta)s ago', delta = babel_format_timedelta(current_datetime_utc - item.get_storage_time())) }})

{{ gettext('General properties') }}

{%- set tmpval = item.get_jpath_value('CreateTime') %} {%- if tmpval %} {%- endif %} {%- set tmpval_a = item.get_jpath_value('EventTime') %} {%- if tmpval_a %} {%- endif %} {%- set tmpval_b = item.get_jpath_value('CeaseTime') %} {%- if tmpval_b %} {%- endif %} {%- if tmpval_a and tmpval_b %} {%- endif %} {%- set tmpval_a = item.get_jpath_value('WinStartTime') %} {%- if tmpval_a %} {%- endif %} {%- set tmpval_b = item.get_jpath_value('WinEndTime') %} {%- if tmpval_b %} {%- endif %} {%- if tmpval_a and tmpval_b %} {%- endif %} {%- if permission_can('power') %} {%- endif %} {%- if item.get_countries_src() %} {%- endif %} {%- if item.get_asns_src() %} {%- endif %}
{{ gettext('ID') }}: {{ gettext(item.get_id()) }}
{{ gettext('Detection time') }}: {{ babel_format_datetime(item.get_detect_time()) }} ({{ gettext('%(delta)s ago', delta = babel_format_timedelta(current_datetime_utc - item.get_detect_time())) }})
{{ gettext('Creation time') }}: {{ babel_format_datetime(tmpval) }} ({{ gettext('%(delta)s ago', delta = babel_format_timedelta(current_datetime_utc - tmpval)) }})
{{ gettext('Creation delay') }}: {{ babel_format_timedelta(tmpval - item.get_detect_time()) }}
{{ gettext('Event time') }}: {{ babel_format_datetime(tmpval_a) }} ({{ gettext('%(delta)s ago', delta = babel_format_timedelta(current_datetime_utc - tmpval_a)) }})
{{ gettext('Cease time') }}: {{ babel_format_datetime(tmpval_b) }} ({{ gettext('%(delta)s ago', delta = babel_format_timedelta(current_datetime_utc - tmpval_b)) }})
{{ gettext('Event duration') }}: {{ babel_format_timedelta(tmpval_b - tmpval_a) }} ({{ (tmpval_b - tmpval_a) }})
{{ gettext('Aggregation window start time') }}: {{ babel_format_datetime(tmpval_a) }} ({{ gettext('%(delta)s ago', delta = babel_format_timedelta(current_datetime_utc - tmpval_a)) }})
{{ gettext('Aggregation window end time') }}: {{ babel_format_datetime(tmpval_b) }} ({{ gettext('%(delta)s ago', delta = babel_format_timedelta(current_datetime_utc - tmpval_b)) }})
{{ gettext('Aggregation window size') }}: {{ babel_format_timedelta(tmpval_b - tmpval_a) }} ({{ (tmpval_b - tmpval_a) }})
{{ gettext('Storage time') }}: {{ babel_format_datetime(item.get_storage_time()) }} ({{ gettext('%(delta)s ago', delta = babel_format_timedelta(current_datetime_utc - item.get_storage_time())) }})
{{ gettext('Storage delay') }}: {{ babel_format_timedelta(item.get_storage_time() - item.get_detect_time()) }}
{{ gettext('Categories') }}: {{ macros_site.render_widget_csag_category(item.get_categories(), align_right = True, separate_dropdown = True) }}
{{ gettext('Event severity') }}: {%- if item.get_severity() %} {{ macros_site.render_widget_csag_severity([item.get_severity()], align_right = True) }} {%- else %} {{ gettext('-- unassigned --') }} {%- endif %}
{{ get_icon('role-admin') }} {{ gettext('Event class') }}: {%- if item.get_class() %} {{ item.get_class() }} {{ macros_site.render_widget_csag_class([item.get_class()], align_right = True, separate_dropdown = True, without_label = True) }} {%- else %} {{ gettext('-- unclassified --') }} {%- endif %}
{{ gettext('Abuse groups') }}: {{ macros_site.render_widget_csag_abuse(item.get_abuses(), align_right = True, separate_dropdown = True) }}
{{ gettext('Source countries') }}: {%- for subitem in item.get_countries_src() %} {{ subitem | upper }} {{ get_country_flag(subitem) }}{% if not loop.last %} | {% endif %} {%- endfor %}
{{ gettext('Source autonomous systems (ASNs)') }}: {%- for subitem in item.get_asns_src() %} {{ subitem | upper }} {% if not loop.last %} | {% endif %} {%- endfor %}
{%- for node_type in [['Source', gettext('Sources')], ['Target', gettext('Targets')]] %} {%- set tmpval = item.get_jpath_values(node_type[0]) %} {%- if tmpval %}

{{ node_type[1] }}

    {%- for subitem in tmpval %}
  • {%- if 'IP4' in subitem %}
    {{ gettext('IP4') }}: {{ macros_site.render_widget_csag_address(subitem['IP4'], separate_dropdown = True, item_limit = search_widget_item_limit) }}
    {%- endif %} {%- if 'IP6' in subitem %}
    {{ gettext('IP6') }}: {{ macros_site.render_widget_csag_address(subitem['IP6'], separate_dropdown = True, item_limit = search_widget_item_limit) }}
    {%- endif %} {%- if 'Port' in subitem %}
    {{ gettext('Port') }}: {{ macros_site.render_widget_csag_port(subitem['Port'], separate_dropdown = True, item_limit = search_widget_item_limit) }}
    {%- endif %} {%- if 'Proto' in subitem %}
    {{ gettext('Proto') }}: {{ macros_site.render_widget_csag_protocol(subitem['Proto'], separate_dropdown = True, item_limit = search_widget_item_limit) }}
    {%- endif %} {%- if 'Type' in subitem %}
    {{ gettext('Type') }}: {{ macros_site.render_widget_csag_hosttype(subitem['Type'], separate_dropdown = True) }}
    {%- endif %}
  • {%- endfor %}
{%- endif %} {%- endfor %} {%- set tmpval = item.get_jpath_values('Node') %} {%- if tmpval %}

{{ gettext('Detectors') }}

    {%- for subitem in tmpval | reverse %}
  • {%- if not loop.first %}{%- endif %} {%- if 'Name' in subitem %} {{ gettext('Name') }}: {% if loop.first %}{{ macros_site.render_widget_csag_detector([subitem['Name']], separate_dropdown = True) }}{% else %}{{ subitem['Name'] }}{%- endif %} {%- endif %} {%- if 'SW' in subitem %} {{ gettext('SW') }}: {{ subitem['SW'] | join(', ') }} {%- endif %} {%- if 'Type' in subitem %} {{ gettext('Type') }}: {{ macros_site.render_widget_csag_detectortype(subitem['Type'], separate_dropdown = True) }} {%- endif %} {%- if not loop.first %}{%- endif %}
  • {%- endfor %}
{%- endif %} {%- if permission_can('power') %} {%- set tmpval = item.get_jpath_values('_CESNET.InspectionErrors') %} {%- if tmpval %}

{{ gettext('Inspection errors') }} {{ get_icon('role-admin') }}

    {%- for subitem in tmpval %}
  • {{ get_icon('alert-warning') }} {{ subitem }}
  • {%- endfor %}
{%- endif %} {%- endif %}

{{ item.to_json(indent = 4, sort_keys = True) }}
{%- endblock content %}