{%- extends "_layout.html" %} {%- block content %} {%- set ads_limits = get_limit_counter() %}

{{ vial_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 %}

{{ _('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 %}
{{ _('ID') }}: {{ _(item.get_id()) }}
{{ _('Detection time') }}: {{ babel_format_datetime(item.get_detect_time()) }} ({{ macros_site.render_info_timeinterval(item.get_detect_time(), current_datetime_utc) }})
{{ _('Creation time') }}: {{ babel_format_datetime(tmpval) }} ({{ macros_site.render_info_timeinterval(tmpval, current_datetime_utc) }})
{{ _('Creation delay') }}: {{ babel_format_timedelta(tmpval - item.get_detect_time()) }}
{{ _('Event time') }}: {{ babel_format_datetime(tmpval_a) }} ({{ macros_site.render_info_timeinterval(tmpval_a, current_datetime_utc) }})
{{ _('Cease time') }}: {{ babel_format_datetime(tmpval_b) }} ({{ macros_site.render_info_timeinterval(tmpval_b, current_datetime_utc) }})
{{ _('Event duration') }}: {{ babel_format_timedelta(tmpval_b - tmpval_a) }} ({{ (tmpval_b - tmpval_a) }})
{{ _('Aggregation window start time') }}: {{ babel_format_datetime(tmpval_a) }} ({{ macros_site.render_info_timeinterval(tmpval_a, current_datetime_utc) }})
{{ _('Aggregation window end time') }}: {{ babel_format_datetime(tmpval_b) }} ({{ macros_site.render_info_timeinterval(tmpval_b, current_datetime_utc) }})
{{ _('Aggregation window size') }}: {{ babel_format_timedelta(tmpval_b - tmpval_a) }} ({{ (tmpval_b - tmpval_a) }})
{{ _('Storage time') }}: {{ babel_format_datetime(item.get_storage_time()) }} ({{ macros_site.render_info_timeinterval(item.get_storage_time(), current_datetime_utc) }})
{{ _('Storage delay') }}: {{ babel_format_timedelta(item.get_storage_time() - item.get_detect_time()) }}
{{ _('Categories') }}: {{ macros_site.render_widget_csag_category(item.get_categories(), align_right = True, separate_dropdown = True) }}
{{ _('Event severity') }}: {%- if item.get_severity() %} {{ macros_site.render_widget_csag_severity([item.get_severity()], align_right = True) }} {%- else %} {{ _('-- unassigned --') }} {%- endif %}
{{ get_icon('role-admin') }} {{ _('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 %} {{ _('-- unclassified --') }} {%- endif %}
{{ _('Abuse groups') }}: {{ macros_site.render_widget_csag_abuse(item.get_abuses(), align_right = True, separate_dropdown = True) }}
{{ _('Source countries') }}: {%- for subitem in item.get_countries_src() %} {{ subitem | upper }} {{ get_country_flag(subitem) }}{% if not loop.last %} | {% endif %} {%- endfor %}
{{ _('Source autonomous systems (ASNs)') }}: {%- for subitem in item.get_asns_src() %} {{ subitem | upper }} {% if not loop.last %} | {% endif %} {%- endfor %}
{%- for node_type in [['Source', _('Sources')], ['Target', _('Targets')]] %} {%- set tmpval = item.get_jpath_values(node_type[0]) %} {%- if tmpval %}

{{ node_type[1] }}

    {%- for subitem in tmpval %}
  • {%- if 'IP4' in subitem %} {%- endif %} {%- if 'IP6' in subitem %} {%- endif %} {%- if 'Port' in subitem %} {%- endif %} {%- if 'Proto' in subitem %} {%- endif %} {%- if 'Type' in subitem %} {%- endif %}
    {{ _('IP4') }}: {%- for itemaddr in subitem['IP4'] %} {%- if loop.index < search_widget_item_limit -%}
    {{ macros_site.render_widget_csag_address( [itemaddr], separate_dropdown = True ) }} {%- if ads_limits.count_and_check('{}.{}'.format(node_type[0], 'IP4')) %}
    {%- else %}
    {{ get_icon('action-reload') }}
    {%- endif %}
    {%- elif loop.index0 == search_widget_item_limit %} ({{ _('%(count)s more', count = loop.length - loop.index0) }}) {%- endif %} {%- endfor %}
    {{ _('IP6') }}: {%- for itemaddr in subitem['IP6'] %} {%- if loop.index < search_widget_item_limit -%}
    {{ macros_site.render_widget_csag_address( [itemaddr], separate_dropdown = True ) }} {%- if ads_limits.count_and_check('{}.{}'.format(node_type[0], 'IP6')) %}
    {%- else %}
    {{ get_icon('action-reload') }}
    {%- endif %}
    {%- elif loop.index0 == search_widget_item_limit %} ({{ _('%(count)s more', count = loop.length - loop.index0) }}) {%- endif %} {%- endfor %}
    {{ _('Port') }}:
    {{ macros_site.render_widget_csag_port(subitem['Port'], separate_dropdown = True, item_limit = search_widget_item_limit) }}
    {{ _('Proto') }}:
    {{ macros_site.render_widget_csag_protocol(subitem['Proto'], separate_dropdown = True, item_limit = search_widget_item_limit) }}
    {{ _('Type') }}:
    {{ macros_site.render_widget_csag_hosttype(subitem['Type'], separate_dropdown = True) }}
  • {%- endfor %}
{%- endif %} {%- endfor %} {%- set tmpval = item.get_jpath_values('Node') %} {%- if tmpval %}

{{ _('Detectors') }}

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

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

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

{{ json_to_yaml(item.to_json(indent = 4, sort_keys = True)) }}

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