Include transitions to error state
This commit is contained in:
parent
f804a3b3c7
commit
6eb284c7e7
@ -81,10 +81,18 @@ def make_report(yesterday=None, start_hour=0, hours=24, percentile=90,
|
|||||||
for raw in raws:
|
for raw in raws:
|
||||||
if not start:
|
if not start:
|
||||||
start = raw.when
|
start = raw.when
|
||||||
|
|
||||||
if 'error' in raw.routing_key:
|
if 'error' in raw.routing_key:
|
||||||
err = raw
|
err = raw
|
||||||
failure_type = 'http'
|
failure_type = 'http'
|
||||||
|
|
||||||
|
if raw.old_state != 'error' and raw.state == 'error':
|
||||||
|
failure_type = 'state'
|
||||||
|
|
||||||
|
if raw.old_state == 'error' and \
|
||||||
|
(not raw.state in ['deleted', 'error']):
|
||||||
|
failure_type = None
|
||||||
|
|
||||||
for cmd in cmds:
|
for cmd in cmds:
|
||||||
if cmd in raw.event:
|
if cmd in raw.event:
|
||||||
operation = cmd
|
operation = cmd
|
||||||
@ -140,7 +148,7 @@ def make_report(yesterday=None, start_hour=0, hours=24, percentile=90,
|
|||||||
'cells': cells}
|
'cells': cells}
|
||||||
report.append(details)
|
report.append(details)
|
||||||
|
|
||||||
failure_types = ["4xx", "5xx", "> 60"]
|
failure_types = ["4xx", "5xx", "> 60", "state"]
|
||||||
cols = ["Operation", "Image", "Min*", "Max*", "Avg*",
|
cols = ["Operation", "Image", "Min*", "Max*", "Avg*",
|
||||||
"Requests"]
|
"Requests"]
|
||||||
for failure_type in failure_types:
|
for failure_type in failure_types:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user