~lifeless/python-oops-tools/bug-881400

« back to all changes in this revision

Viewing changes to src/oopstools/oops/templates/summary.txt

  • Committer: Robert Collins
  • Date: 2011-10-13 20:18:51 UTC
  • Revision ID: robertc@robertcollins.net-20111013201851-ym8jmdhoeol3p83s
Export of cruft-deleted tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#if summary.count > 0
 
2
=== Statistics ===
 
3
 
 
4
 * Log starts: ${summary.start}
 
5
 * Analyzed period: ${summary.period} days
 
6
 * Total OOPSes: ${summary.count}
 
7
 #if summary.period > 1
 
8
 * Average exceptions per day: ${summary.count/summary.period}
 
9
 #end
 
10
 
 
11
 #for section in summary.sections[3:]
 
12
 * ${section.error_count} ${section.title}
 
13
 #end
 
14
 
 
15
=== Top 10 Durations ===
 
16
 
 
17
 #for duration, oopsids, pageid in summary.get_section_by_id('durations').top_errors
 
18
 ${"%s" % summary.get_section_by_id('durations').field_format % duration} ${"%-14s" % oopsids[0]} ${pageid}
 
19
 #end
 
20
 
 
21
=== Top 10 Statement Counts ===
 
22
 
 
23
 #for count, oopsids, pageid in summary.get_section_by_id('statement-counts').top_errors
 
24
 ${"%s" % summary.get_section_by_id('statement-counts').field_format % count} ${oopsids[0]} ${pageid}
 
25
 #end
 
26
 
 
27
=== Time Out Counts by Page ID ===
 
28
 
 
29
 Hard / Soft Page ID
 
30
 #for data in summary.get_section_by_id('time-out-counts-by-page-id').time_out_counts
 
31
 ${data['hard_timeouts_count']} / ${data['soft_timeouts_count']} ${data['pageid']}
 
32
 #end
 
33
 
 
34
#for section in summary.sections[3:]
 
35
=== ${section.title} ===
 
36
 
 
37
#for group in section.groups
 
38
${group.count} ${group.etype}: ${group.evalue}
 
39
#if group.bug
 
40
 Bug: https://launchpad.net/bugs/${group.bug}
 
41
#end if
 
42
 ${group.formatted_http_method_count()} Robots: ${group.bot_count} Local: ${group.local_referrer_count}
 
43
#for data in group.top_urls
 
44
  ${data['count']} ${data['escaped_url']} (${data['pageid']})
 
45
   ${'%s' % ', '.join(data['errors'][:5])}
 
46
#end top_urls
 
47
#if group.url_count > 5
 
48
 [${group.url_count - 5} more]
 
49
#end if
 
50
 
 
51
#end group
 
52
#end section
 
53
#end summary
 
54
#if summary.count == 0
 
55
No OOPS found
 
56
#end if