create_service_plots_page¶
- servicemon.analysis.plot_pages.create_service_plots_page(stat_queries, services, start_time, end_time=None, delta=None, htmlroot='htmlroot')[source]¶
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
).The created file will be stored in the directory
[htmlroot]/stat_pages
and will be calledYYYY-MM-DD.html
where YYYY-MM-DD is thestart_time
.- 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 default=None
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.
If None, then
delta
will be used to determine the end of the time interval. Ifdelta
is also not present, then the interval extends to the present time. Bothend_time
anddelta
cannot be present in the same call.- deltatimedelta default=None
Specifies the duration of the time interval. E.g.,
delta=timedelta(days=7)
gives an interval duration of 1 week.If None, then
end_time
will be used to determine the end of the time interval. Ifend_time
is also not present, then the interval extends to the present time. Bothend_time
anddelta
cannot be present in the same call.- htmlrootstr default=’htmlroot’
The directory in which to output the
stat_pages/YYYY-MM-DD.html
result file.
- Returns
- None