Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-7581

Use box annotations to indicate missing jobs

    XMLWordPrintable

Details

    • Story
    • Status: Done
    • Resolution: Done
    • None
    • None
    • None

    Attachments

      Issue Links

        Activity

          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.

          afausti 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.
          afausti 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)
          

          afausti 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)

          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.

          afausti 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.
          afausti 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

          afausti 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

            afausti Angelo Fausti
            afausti Angelo Fausti
            Angelo Fausti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Jenkins

                No builds found.