{% extends "_layout_events_search.html" %} {% block sectionabout %}

{{ _('This module displays various statistics of IDEA events calculated for given network and optional time interval and with emphasis on said event timelines. These statistics are calculated directly from IDEA event database, so depending on the size of the selected network, the interval and number of related IDEA events these visualisations may take some time, even on the order of minutes. Please, be patient. Events are included into the result based on their detection time.') | safe }}

{% endblock sectionabout %} {% block sectionsearchresult %}

{{ _('Result summary') }}

{%- if permission_can('admin') and 'timeline_cfg' in statistics %} {%- endif %}
{{ _('Number of events') }}: {{ babel_format_decimal(items_count) }}
{{ _('Time interval') }}: {{ babel_format_datetime(statistics['timeline_cfg']['dt_from']) }} - {{ babel_format_datetime(statistics['timeline_cfg']['dt_to']) }}
{{ _('Time interval delta') }}: {{ babel_format_timedelta(statistics['timeline_cfg']['dt_to'] - statistics['timeline_cfg']['dt_from']) }}
{{ get_icon('role-admin') }}{{ _('Timeline steps') }}: {{ babel_format_decimal(statistics['timeline_cfg']['count']) }} x {{ statistics['timeline_cfg']['step'].__str__() }}

{{ macros_site.render_endpoint_link('events.search', query_params, label = _("View these results on event search page"), with_icon = True) }}

{{ _('Total event counts') }}

{{ _('This view shows total numbers of IDEA events related to given network.') | safe }}

{%- set data_series = [ ['cnt_events', _('total events')] ] %} {{ macros_chart.render_chart_timeline_list( statistics, 'search_result_statistics', 'totals', data_series ) }}
{{ macros_chart.render_dashboard_panels( statistics, 'search_result_statistics', 'stats' ) }}
{%- if permission_can('developer') %}
{{ macros_site.render_raw_var('search_result', search_result) }} {{ macros_site.render_raw_var('statistics', statistics) }} {%- endif %} {% endblock sectionsearchresult %}