{% extends 'timeseer.html' %} {% from 'macros.html' import alerter, bootstrap_icon, info_popover, menu_back, progress_bar_flow, visualize_series, schedule_popover %} {% from 'flows.html' import help_text_icon, help_text_side_panel with context %} {% from 'resources.html' import resource_breadcrumb %} {% macro block_card_header(block, title, interactive_link) %}
{{ bootstrap_icon('code-slash') }}
{% if missing_dependencies[block.db_id]|count > 0 %} {{ info_popover('Missing a dependency on a block with type: ' + missing_dependencies[block.db_id]|join(', '), 'exclamation-triangle', 'text-warning', placement='top') }} {% endif %} {{ title }}
{% if interactive_link is not none %} Edit interactively {% endif %}
{% endmacro %} {% macro block_card(block, title, interactive_link=None) %}
{{ block_card_header(block, title, interactive_link) }}
{{ caller() }}
{% endmacro %} {% block styles %} {% endblock %} {% block menu %} {% if flow_evaluation_groups|count == 0 %} {{ menu_back(url_for('.list_flows', sourcename=source_name)) }} {% else %} {{ menu_back(url_for('.display_flow', flowname=flow.name, sourcename=source_name)) }} {% endif %} {% endblock %} {% block breadcrumb %} {% if flow_evaluation_groups|count == 0 %} {{ resource_breadcrumb([ ('Flows', url_for('flows.list_flows', sourcename=source_name)), flow.name, 'Edit', ]) }} {% else %} {{ resource_breadcrumb([ ('Flows', url_for('flows.list_flows', sourcename=source_name)), (flow.name, url_for('.display_flow', flowname=flow.name, sourcename=source_name)), 'Edit', ]) }} {% endif %} {% endblock %} {% block main %}

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

{% if flow.origin.value == 'ui' and data_set is none %}

{% if flow.time_range.relative_date %} {{ flow.time_range.relative_date }} {% elif flow.time_range.has_no_time_range() is true %} - {% else %} From {{ flow.time_range.start_date|ts_datetime }} to {{ flow.time_range.end_date|ts_datetime }} {% endif %}

{% else %}

{% if flow.time_range.relative_date %} {{ flow.time_range.relative_date }} {% elif flow.time_range.has_no_time_range() is true %} - {% else %} From {{ flow.time_range.start_date|ts_datetime }} to {{ flow.time_range.end_date|ts_datetime }} {% endif %}

{% endif %}
{{ help_text_side_panel(flow, allow_edit=True) }}
{% if flow.origin.value in ['ui', 'control loop'] %}
{% endif %}
{% if flow.origin.value in ['ui', 'control loop'] %} {% endif %}
{{ alerter() }} {% if flow.origin.value in ['default', 'ui', 'control loop'] %}
{% if flow.origin.value in ['ui', 'control loop'] %}
Time series
0 %} data-selector-type="series-set" data-selector-name="arrow" data-selector-series-sets='{{ selected_series_sets|sort|tojson|safe }}' {% elif series_set_template is not none %} data-selector-type="series-set-template" data-selector-name="{{ series_set_template.name }}" {% else %} data-selector-type="data-set" data-selector-name="{{ data_set.name }}" {% endif %} data-series-sets='{{ series_sets|sort(attribute="name")|tojson|safe }}' data-series-set-templates='{{ series_set_templates|sort(attribute="name")|tojson|safe }}' data-data-sets='{{ data_sets|sort(attribute="name")|tojson|safe }}'>
{% endif %}
KPI set
Select the KPI set to use when displaying analysis results.

Flow settings

{% if flow.schedule is not none %} {% set selected_interval = flow.schedule.interval.value %} {% set selected_frequency = flow.schedule.frequency %} {% set initial_date = flow.schedule.initial_date %} {% endif %}

Schedule flow

Choose when and how often the flow runs.

{% if flow.schedule is not none %}
{% endif %}
{% if flow.schedule is not none %} {% endif %}
{% endif %} {% if flow.origin.value in ['ui', 'control loop'] %} {% for block in blocks %} {% if block.type.name == 'UNIVARIATE_ANALYSIS' %} {% if "control_loop_univariate_checks" in block.configuration.moduleTypes %} {% set module_types = control_loop_univariate_module_types %} {% else %} {% set module_types = univariate_module_types %} {% endif %} {% call block_card(block, "Univariate analysis") %}
{% endcall %} {% elif block.type.name == 'COMPARISON' %} {% call block_card(block, "Comparison") %}
{% endcall %} {% elif block.type.name == 'MULTIVARIATE_ANALYSIS' %} {% if "control_loop_multivariate_checks" in block.configuration.moduleTypes %} {% set module_types = control_loop_multivariate_module_types %} {% else %} {% set module_types = multivariate_module_types %} {% endif %} {% call block_card(block, "Multivariate analysis") %}
{% endcall %} {% elif block.type.name == 'FILTER' %} {% call block_card(block, "Filter", interactive_link=url_for('filters.edit_interactive', blockid=block.db_id, sourcename=source_name)) %}
{% endcall %} {% elif block.type.name == 'EXPORT' %} {% call block_card(block, "Export") %}
{% endcall %} {% elif block.type.name == 'FLIGHT_EXPOSE' %} {% call block_card(block, "Expose using Apache Arrow Flight") %}
{% endcall %} {% elif block.type.name == 'DATA_SERVICE_EXPOSE' %} {% call block_card(block, "Expose as a data service") %}
{% endcall %} {% elif block.type.name == 'INTERPOLATE' %} {% call block_card(block, "Interpolate", interactive_link=url_for('interpolate.edit_interactive', blockid=block.db_id, sourcename=source_name)) %}
{% endcall %} {% elif block.type.name == 'SCALING' %} {% call block_card(block, "Scaling") %}
{% endcall %} {% elif block.type.name == 'FIX_TIMESTAMP_ISSUES' %} {% call block_card(block, "Fix timestamp issues") %}
{% endcall %} {% elif block.type.name == 'DATA_SERVICE_CONTRIBUTE' %} {% call block_card(block, "Contribute to a data service") %}
{% endcall %} {% endif %} {% if not loop.last %}
{{ bootstrap_icon('caret-down-fill') }}
{% endif %} {% if loop.last %}
{% endif %} {% endfor %}
{% elif flow.origin.value == 'resource' %}
Evaluate the flow to display results.
{% endif %} {% endblock %} {% block scripts_bottom %} {% endblock %}