diff --git a/search_gov_crawler/requirements.txt b/search_gov_crawler/requirements.txt index a4c4f75..32df7f6 100644 --- a/search_gov_crawler/requirements.txt +++ b/search_gov_crawler/requirements.txt @@ -10,3 +10,5 @@ scrapy-playwright==0.0.41 scrapyd==1.5.0 scrapyd-client==2.0.0 scrapydweb @ git+https://github.com/GSA/searchgov-scrapydweb +spidermon [monitoring] == 1.22.0 + diff --git a/search_gov_crawler/search_gov_spiders/actions/reports/email/bases/report/base.jinja b/search_gov_crawler/search_gov_spiders/actions/reports/email/bases/report/base.jinja new file mode 100644 index 0000000..656c94b --- /dev/null +++ b/search_gov_crawler/search_gov_spiders/actions/reports/email/bases/report/base.jinja @@ -0,0 +1,27 @@ + +
+ + + + +
+
+ {% block page_content %}{% endblock %}
+
+
+ |
+
+ {{ report_title or 'Report Title' }}+ |
+ {% if data.job and show_job_button %}
+ + {{ render_dash_link() }} + | + {% endif %} +
+ |
+
+ {% if result.all_monitors_passed %}
+
+ All passed!
+ {% else %}
+
+ {{ result.monitors_failed_results|length }} failed!
+ {% endif %}
+ |
+
+ {% if result.status != 'OK' %} + {{ result.monitor.method_name }} + {% else %} + {{ result.monitor.method_name }} + {% endif %} + | ++ {% if result.status != 'OK' %} + {{ result.status }} + {% endif %} + | ++ + | +
+ {{ result.monitor.name }}+ |
+ + {{ result.status }} + | +
+ {% if result.monitor.method_description %}
+ {{ result.monitor.method_description }}
+ {% endif %}
+ {% if result.reason %}
+ {{ result.reason }}
+ {% endif %}
+ {{ result.error|indent }}+ |
+
{{ data.stats|pprint }}+ {% else %} +