Servicemon Analysis API

Analysis support

These classes are helpers for querying and plotting collected data.

servicemon.analysis.stat_queries Module

Classes

StatQueries([tap_url, table])

A helper class for querying a TAP service which has servicemon data.

servicemon.analysis.basic_plotting Module

Functions

create_daily_duration_line_plot(sources, …)

Returns

create_daily_rate_line_plot(sources, services)

Returns

create_data_frame(data)

Create a Bokeh ColumnDataSource from an Astropy Table containing results from a navostats query.

create_hover()

Returns

create_plot_dur_v_start_time(source, locations)

Create a Bokeh plot (Figure) of do_query_dur versus start_time.

create_plot_durations_v_nrows(source[, …])

Create a Bokeh plot (Figure) of do_query_dur and stream_to_file_dur versus num_rows.

create_plot_durations_v_size(source[, …])

Create a Bokeh plot (Figure) of do_query_dur and stream_to_file_dur versus download size.

create_plot_location_shapes(source)

Experimental function to plot the different locations from which the performance queries were made as different shapes.

create_service_plots(stat_queries, services)

Create a Bokeh plot (Figure) of do_query_dur and stream_to_file_dur versus num_rows.

generate_service_plots(stat_queries, …)

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.

generate_summary_plots(stat_queries, …)

Parameters

get_locations(df)

Get the list of all locations present in the data source.

servicemon.analysis.plot_pages Module

Functions

components(models[, wrap_script, …])

Return HTML components to embed a Bokeh plot.

create_service_plots_page(stat_queries, …)

Create an HTML page containing bokeh plots for a time interval’s worth of servicemon data for each of the service name/type pairs (services).

create_weekly_plots([date_to_include])

Helper function to create an HTML page containing bokeh plots for one week’s worth of servicemon data for all the services in the TAP DB.

generate_service_plots(stat_queries, …)

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.

generate_summary_plots(stat_queries, …)

Parameters

sm_create_weekly_plots([input_args])

with_delta(t, delta)

Return the datetime and time string for a time that is delta different than t.