{% extends "base.html" %} {% from "macros.html" import status_of %} {% block title %}Home{% endblock %} {% block content %} {% if not has_project %}

No DUE project here yet

There is no due_project.yaml in this folder. Create one (with a local lake in ./lake), then add your first source.

New source (creates the project on save)
{% endif %} {% for e in errors %}{% if loop.first %}
✖ The project does not load

Fix it in Settings or the source editor.

{% endif %}{% endfor %}

Sources

{% if rows %}{% endif %} + New source
{% if rows %}
{% for r in rows %} {% endfor %}
SourceStreamsLast runStatusFile
{{ r.name }} {{ r.streams if r.streams is not none else "?" }} {% if r.summary %}{{ (r.summary.started_at or "")[:16].replace("T", " ") }}{% else %}never{% endif %} {% if r.status == "ok" %}● ok {% elif r.status == "warn" %}▲ warning {% elif r.status == "fail" %}✖ failed {% else %}-{% endif %} sources/{{ r.file }} Edit
{% else %}
No sources yet. Paste an API URL or a curl command in New source.
{% endif %}

Recent runs

View all →
{% if recent %}
{% for s in recent %} {% set written = s.units | map(attribute="counts") | map(attribute="written", default=0) | map("int") | sum %} {% set notable = s.events | default([]) | selectattr("severity", "in", ["error", "warning"]) | list %} {% endfor %}
RunStartedOutcomeUnitsWrittenNotable
{{ s.run_id[:10] }}… {{ (s.started_at or "")[:19].replace("T", " ") }} {{ status_of(s.exit_code | int) }} {{ s.units | length }} {{ "{:,}".format(written) }} {% if notable %}{{ notable[0].event }}: {{ notable[0].message }}{% if notable | length > 1 %} (+{{ notable | length - 1 }}){% endif %}{% else %}-{% endif %}
{% else %}
No runs yet.
{% endif %} {% endblock %}