{% extends 'timeseer.html' %} {% from 'macros.html' import alerter, bootstrap_icon, menu_back, progress_bar_flow, visualize_series, schedule_popover %} {% from 'flows.html' import help_text_icon, help_text_side_panel %} {% from 'resources.html' import resource_breadcrumb %} {% macro block_card_header(block_evaluation, results_url=none) %}
{{ block_evaluation.name }}
{% if results_url is not none %}
{% if source_name is not none %} {% endif %}
{% endif %}
{% endmacro %} {% block styles %} {% endblock %} {% block menu %} {{ menu_back(url_for('.list_flows', sourcename=source_name)) }} {% endblock %} {% block breadcrumb %} {{ resource_breadcrumb([ ("Flows", url_for('flows.list_flows', sourcename=source_name)), flow_evaluation.group.flow.name, ]) }} {% endblock %} {% block main %}

Evaluations for {{ flow_evaluation.group.flow.name }}

{% if flow_evaluation_groups|count > 0 %}
{% endif %}
{% for group in flow_evaluation_groups %} {% endfor %}
{% if flow_evaluation_groups|count > 0 %} {% endif %} Evaluation date
{% if flow_evaluation is not none and group.db_id != flow_evaluation.group.db_id %} {{ group.date|ts_datetime }} {% else %} {{ group.date|ts_datetime }} {% endif %}

{{ flow_evaluation.group.flow.name }} {% if flow_evaluation.group.flow.schedule is not none %} {{ schedule_popover(flow_evaluation.group.flow.schedule) }} {% endif %} {{ help_text_icon(flow_evaluation.group.flow) }}

{{ help_text_side_panel(flow_evaluation.group.flow, allow_edit=False) }}
{% if flow_evaluation.group.flow.origin.value in ['ui', 'default', 'control loop'] %} {% endif %}
Date range
{% if flow_evaluation.group.time_range.has_no_time_range() is true %} - {% else %} {{ flow_evaluation.group.time_range.start_date|ts_datetime }} {{ bootstrap_icon('arrow-right-short', 'text-dark') }} {{ flow_evaluation.group.time_range.end_date|ts_datetime }} {% endif %}
{% if other_flow_evaluations|count > 1 %}
Series sets
{% else %}
Series set
{% endif %}
{{ progress_bar_flow( analysis_state, url_for('flows.get_flow_analysis_state',flowevaluationid=flow_evaluation.db_id), url_for('flows.cancel_flow_evaluation', flowevaluationid=flow_evaluation.db_id), flow_evaluation ) }}
{{ alerter() }}
Time series
{% if selected_series_sets|count > 0 %} {% for series_set in selected_series_sets %}

{{ series_set.name }} {{ bootstrap_icon('box-arrow-up-right') }}

{% endfor %} {% elif data_set is not none %}

{{ data_set.name }} {{ bootstrap_icon('box-arrow-up-right') }}

{% else %} {{ series_set_template.name }} {{ bootstrap_icon('box-arrow-up-right') }} {% endif %}
{% for block in block_evaluations %} {% if block.type.name == 'UNIVARIATE_ANALYSIS' %}
{{ block_card_header(block, url_for('flow_univariate.display_dashboard') ) }}
{% if block_configurations[block.db_id].module_types|count > 0 %}

Module types:

    {% for module_type in block_configurations[block.db_id].module_types|sort %}
  • {{ module_type|replace('_', ' ')|capitalize }}
  • {% endfor %}
{% endif %} {% if block_configurations[block.db_id].modules|count > 0 %}

Modules:

    {% for module_name in block_configurations[block.db_id].modules|sort %}
  • {{ module_name|replace('_', ' ')|capitalize }}
  • {% endfor %}
{% endif %}
{% elif block.type.name == 'COMPARISON' %}
{{ block_card_header(block, url_for('flow_comparison.show_comparison')) }}
Reference time range: from {{ block_configurations[block.db_id].reference_time_range.start_date|ts_datetime }} to {{ block_configurations[block.db_id].reference_time_range.end_date|ts_datetime }}
{% elif block.type.name == 'MULTIVARIATE_ANALYSIS' %}
{{ block_card_header(block, url_for('flow_multivariate.show_statistics')) }}
{% if block_configurations[block.db_id].module_types|count > 0 %}

Module types:

    {% for module_type in block_configurations[block.db_id].module_types|sort %}
  • {{ module_type|replace('_', ' ')|capitalize }}
  • {% endfor %}
{% endif %} {% if block_configurations[block.db_id].modules|count > 0 %}

Modules:

    {% for module_name in block_configurations[block.db_id].modules|sort %}
  • {{ module_name|replace('_', ' ')|capitalize }}
  • {% endfor %}
{% endif %}
{% elif block.type.name == 'FILTER' %}
{{ block_card_header(block) }}
{% if block_configurations[block.db_id].filters|count == 0 %}
No filters defined.
{% endif %} {% for filter in block_configurations[block.db_id].filters %}
{% if filter.type_category.name == 'UNIVARIATE' %}
{% if filter.series.value is defined and filter.series.value == 'ALL' %} {{ filter.frame_type }} in all series {% elif filter.series.value is defined and filter.series.value == 'THIS' %} {{ filter.frame_type }} in the current series {% else %} {{ filter.frame_type }} in {{ visualize_series(filter.series) }} {% endif %}
{{ filter.augmentation_strategy.value }}
{% if filter.filter_selection_only %}
Filter only this series
{% endif %} {% endif %} {% if filter.type_category.name == 'MULTIVARIATE' %}
{{ filter.frame_type }}
{{ filter.augmentation_strategy.value }}
{% endif %}
{% endfor %}
{% elif block.type.name == 'EXPORT' %}
{{ block_card_header(block) }}
{% if block_configurations[block.db_id].exports|count > 0 %} {% else %}
No exports configured.
{% endif %}
{% elif block.type.name == 'FLIGHT_EXPOSE' %}
{{ block_card_header(block) }}
  • Exposed as "{{ name_flight_source(block_configurations[block.db_id], flow_evaluation) }}"
{% elif block.type.name == 'DATA_SERVICE_EXPOSE' %}
{{ block_card_header(block) }}
  • Exposed as "{{ name_data_service(block_configurations[block.db_id], flow_evaluation) }}"
{% elif block.type.name == 'SQL_SYNC' %}
{{ block_card_header(block) }}

Event frame fields mapped to columns in table "{{ block_configurations[block.db_id].sync_table }}":

    {% for k, v in block_configurations[block.db_id].sync_fields.items() %}
  • {{ k }}: {{ v }}
  • {% endfor %}
{% elif block.type.name == 'INTERPOLATE' %}
{{ block_card_header(block) }}
  • Rate: "{{ block_configurations[block.db_id].rate }}"
  • {% if block_configurations[block.db_id].rate == "smart" %}
  • Maximum percentage of interpolation information loss : {{ block_configurations[block.db_id].max_information_loss_percentage|float }}%
  • {% endif %}
  • Default interpolation type: "{{ block_configurations[block.db_id].default_interpolation_type.value }}"
{% elif block.type.name == 'SCALING' %}
{{ block_card_header(block) }}
  • Scale type: {{ block_configurations[block.db_id].scaling_type.value }}
{% elif block.type.name == 'FIX_TIMESTAMP_ISSUES' %}
{{ block_card_header(block) }}
{% if block_configurations[block.db_id].fix_out_of_order_strategy is not none %}

Fix out-of-order timestamps: {{ block_configurations[block.db_id].fix_out_of_order_strategy.value }} data points.

{% endif %} {% if block_configurations[block.db_id].fix_duplicates %}

Keep only the first data point when duplicate timestamps are detected.

{% endif %}
{% elif block.type.name == 'DATA_SERVICE_CONTRIBUTE' %}
{{ block_card_header(block) }}
{% if block_configurations[block.db_id].data_service_name is not none %} Contribute to data service "{{ block_configurations[block.db_id].data_service_name }}":
    {% for block_name in block_configurations[block.db_id].contribution_block_names %}
  • {{ block_name }}
  • {% endfor %}
{% else %}
Not contributing to any data service.
{% endif %}
{% endif %} {% if not loop.last %}
{{ bootstrap_icon('caret-down-fill') }}
{% endif %} {% endfor %}
{% endblock %} {% block scripts_bottom %} {% endblock %}