# Use box annotations to indicate missing jobs

XMLWordPrintable

#### Details

• Type: Story
• Status: Done
• Resolution: Done
• Fix Version/s: None
• Component/s: None
• Labels:
None
• Story Points:
2.5
• Team:
SQuaRE

#### Activity

Hide
Angelo Fausti added a comment -

Box annotations provide a nice way to visualize failing jobs, the start and end times to draw the box annotations are obtained from the job status.

Show
Angelo Fausti added a comment - Box annotations provide a nice way to visualize failing jobs, the start and end times to draw the box annotations are obtained from the job status.
Hide
Angelo Fausti added a comment - - edited

Minimal working example:

 from bokeh.io import curdoc from datetime import datetime import time from bokeh.models import BoxAnnotation from bokeh.plotting import figure   plot = figure(width=700, height=250,x_axis_type='datetime')   start = time.mktime(datetime(2016,9,1,0,0,0,0).timetuple())*1000 end = time.mktime(datetime(2016,9,10,21,0,0,0).timetuple())*1000   plot.line(x=[start,end], y=[1,1])   box = BoxAnnotation(left=start, right=end, fill_alpha=0.1, fill_color='red') plot.add_layout(box)     curdoc().add_root(plot) 

Show
Angelo Fausti added a comment - - edited Minimal working example: from bokeh.io import curdoc from datetime import datetime import time from bokeh.models import BoxAnnotation from bokeh.plotting import figure   plot = figure(width= 700 , height= 250 ,x_axis_type= 'datetime' )   start = time.mktime(datetime( 2016 , 9 , 1 , 0 , 0 , 0 , 0 ).timetuple())* 1000 end = time.mktime(datetime( 2016 , 9 , 10 , 21 , 0 , 0 , 0 ).timetuple())* 1000   plot.line(x=[start,end], y=[ 1 , 1 ])   box = BoxAnnotation(left=start, right=end, fill_alpha= 0.1 , fill_color= 'red' ) plot.add_layout(box)     curdoc().add_root(plot)
Hide
Angelo Fausti added a comment -

The result can be verified in my test environment:

it draws a red rectancle each time a job is missing, you can follow that by looking the CI Ids of each measurement. You can think about the visual result in production with lots of data.

Show
Angelo Fausti added a comment - The result can be verified in my test environment: https://angelo-squash-squash.lsst.codes/dashboard it draws a red rectancle each time a job is missing, you can follow that by looking the CI Ids of each measurement. You can think about the visual result in production with lots of data.
Hide
Angelo Fausti added a comment - - edited

Added title and a second line description for the selected metric as part of this ticket:
https://angelo-squash-squash.lsst.codes/dashboard

Show
Angelo Fausti added a comment - - edited Added title and a second line description for the selected metric as part of this ticket: https://angelo-squash-squash.lsst.codes/dashboard

#### People

Assignee:
Angelo Fausti
Reporter:
Angelo Fausti
Watchers:
Angelo Fausti