{% extends layout %}{% import 'ui/kit.html' as kit %}{% import 'ui/broker/_fmt.html' as fmt %} {% block title %}amebo - application{% endblock %} {% block content %}{% include 'ui/broker/_css.html' %} {%- if o is none %}
Applications/{{ app_name }}

Application not found

No application is registered under that name.

{%- else %} {%- set kill_label = 'Deactivate application' if o.active else 'Reactivate application' %} {%- set kill_desc = 'Blocks its publishes and pauses all webhook deliveries to it. Queued gists resume on reactivation.' if o.active else 'Publishing resumes and queued webhook deliveries start draining again.' %}
Applications/{{ o.name }}

{{ o.name }} {{ kit.active_pill(o.active) }} {{ o.health }}

{{ o.endpoint }} · {{ o.role }}{% if o.description %} · {{ o.description }}{% endif %}

{%- if o.failed_g > 0 %}{% endif %}
{{ fmt.flash(message, tone) }}
{{ kit.stat('app-kpi-actions', o.nact, 'actions owned') }} {{ kit.stat('app-kpi-subs', o.nsub, 'subscriptions') }} {{ kit.stat('app-kpi-events', o.nevents, 'events published') }} {{ kit.stat('app-kpi-evh', o.ev_h, 'events / hour') }} {{ kit.stat('app-kpi-delivered', o.ndeliv, 'delivered', 'ok') }} {{ kit.stat('app-kpi-rate', rate, 'delivery success') }} {{ kit.stat('app-kpi-avg', (o.avg_ms ~ ' ms') if o.attempts else '-', 'avg latency') }} {{ kit.stat('app-kpi-backlog', o.backlog, 'backlog', 'bad' if o.failed_g > 0 else '') }}
{{ kit.chart_panel('Publish activity', "events / min by this app's actions", 'ch-app-pub') }} {{ kit.chart_panel('Webhook consumption', 'attempts to this app / min', 'ch-app-cons') }} {{ kit.chart_panel('Consumption latency', 'attempt round-trip, ms', 'ch-app-lat') }}

Delivery routes

{% with message='' %}{% include 'ui/broker/_app_routes.html' %}{% endwith %}

Recent deliveries

{%- if not deliveries %}
No webhook deliveries to this application yet.
{%- else %} {% for d in deliveries %} {% endfor %}
whenactionstatuslatencyresponse
{%- endif %}
{% with message='' %}{% include 'ui/broker/_app_security.html' %}{% endwith %}

Recent activity

{%- if not audit_rows %}

No admin activity recorded for this application.

{%- else %} {% for a in audit_rows %}{% endfor %}
whenactiondetail
{{ a.ts|ago }}{{ a.action }}{{ a.actor }}{% if a.detail %} · {{ a.detail }}{% endif %}
{%- endif %}

Actions owned

Event contracts this application publishes. Select to remove (superadmin only).

{% with message='' %}{% include 'ui/broker/_appacts_list.html' %}{% endwith %}

Danger zone

{{ kill_label }}
{{ kill_desc }}
{%- endif %} {% endblock %}