-
Notifications
You must be signed in to change notification settings - Fork 1
/
event_details.html
105 lines (96 loc) · 2.26 KB
/
event_details.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<html>
<head>
<title>Hub - Subscription Details - {{topic_url|escape}}</title>
<link rel="stylesheet" href="/base.css" type="text/css">
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="/favicon.ico">
</head>
<body>
<h1>Subscription Details - {{topic_url|escape}}</h1>
{% if error %}
<div>{{error|escape}}</div>
{% else %}
<table cellspacing="0", cellpadding="3" border="0">
<tr>
<td>Callback URL:</td>
<td>{{callback_url|escape}}</td>
</tr>
<tr>
<td>Created time (UTC):</td>
<td>{{created_time|date:"Y-m-d\TH:i:s\Z"}}</td>
</tr>
<tr>
<td>Last modified time (UTC):</td>
<td>{{last_modified|date:"Y-m-d\TH:i:s\Z"}}</td>
</tr>
<tr>
<td>Expiration time (UTC):</td>
<td>{{expiration_time|date:"Y-m-d\TH:i:s\Z"}}</td>
</tr>
<tr>
<td>State:</td>
<td>{{subscription_state}}</td>
</tr>
<tr>
<td>Confirmation failures:</td>
<td>{{confirm_failures}}</td>
</tr>
<tr>
<td>Delivery to domain:</td>
<td>
{% if delivery_blocked %}
<span style="color: red">BLOCKED</span>
{% else %}
OK
{% endif %}
</td>
</tr>
<tr>
<td>Delivery short-term:</td>
<td>{{delivery_errors|floatformat:"-2"}}% errors</td>
</tr>
</table>
<h2>Error rate statistics</h2>
{% for result in delivery_url_error %}
{% include "stats_table.html" %}
{% endfor %}
{% for result in delivery_domain_error %}
{% include "stats_table.html" %}
{% endfor %}
<h2>Latency statistics</h2>
{% for result in delivery_url_latency %}
{% include "stats_table.html" %}
{% endfor %}
{% for result in delivery_domain_latency %}
{% include "stats_table.html" %}
{% endfor %}
{% for event in failed_events %}
<hr size="1">
<h2>Failure {{forloop.counter}}</h2>
<p>
<table cellspacing="0", cellpadding="3" border="0">
<tr>
<td>Next/Last attempt time (UTC):</td>
<td>{{event.last_modified|date:"Y-m-d\TH:i:s\Z"}}</td>
</tr>
<tr>
<td>Totally failed:</td>
<td>{{event.totally_failed}}</td>
</tr>
<tr>
<td>Retry attempts:</td>
<td>{{event.retry_attempts}}</td>
</tr>
<tr>
<td>Content type:</td>
<td>{{event.content_type|escape}}</td>
</tr>
</table>
<p>Payload, possibly truncated:</p>
<pre>
{{event.payload_trunc|escape}}
</pre>
</p>
{% endfor %}
{% endif %}
</body>
</html>