generate_service_plots¶
- servicemon.analysis.basic_plotting.generate_service_plots(stat_queries, services, start_time, end_time)[source]¶
Create a Bokeh plot (Figure) of do_query_dur and stream_to_file_dur versus num_rows for each row, put the plot rows into a bokeh layout with title divs for each row, then return the layout. Also return a list of dicst, one element per row, with “title” and “id” of the row.
- Parameters
- stat_queriesservicemon.analysis.stat_queriesStatQueries
A StatQueries object which will perform the navostats queries.
- servicesList of tuples
Each tuple should be a doubleton indicating a (base_name, service_type) that should be queried and plotted.
- start_timestr
The beginning of a time window bounding the query. Format is ‘%Y-%m-%d %H:%M:%S.%f’. Least significant part can be omitted as the comparisons done are just alphabetic.
- end_timestr
The end of a time window bounding the query. Format is ‘%Y-%m-%d %H:%M:%S.%f’. Least significant part can be omitted as the comparisons done are just alphabetic.
- Returns
- list of lists, list of dicts
list of layout children rows, each of which is a list of plots or divs and list of “id” and “title” dicts for populating a TOC