Service: {{ service.service }}
Timeout: {{ service.timeout }}d
Secret Token: {{ service.token }}
{% if status_list | length > 0 %}
{{ status_list[0].status }} submitted on {{ status_list[0].timestamp }}
{% else %}
No status for this service submitted
{% endif %}
Curl
curl -X POST \
-H "application/json" \
-d '{ "service_name" : "{{ service.service }}",
"token" : "{{ service.token }}", \
"status" : "OK", "info" : "Free Text Information here" }' \
{{ flask.request.url_root }}
Python
import requests
requests.post("{{ flask.request.url_root }}",
json= { "service_name" : "{{ service.service }}",
"token" : "{{ service.token }}",
"status" : "OK",
"info" : "additional information" })
| Date |
Status |
Info |
{% for status in status_list %}
status.human_date() |
| status.status |
status.info |
{% endfor %}