LogDoctor/docs/html/classDbQuery.html

1155 lines
54 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LogDoctor: DbQuery Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectlogo"><img alt="Logo" src="dox_logo.png"/></td>
<td id="projectalign">
<div id="projectname">LogDoctor<span id="projectnumber">&#160;2.00</span>
</div>
<div id="projectbrief">Parse Apache2/Nginx/IIS logs and create statistics</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="classDbQuery-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">DbQuery Class Reference</div></div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab2a129e8bb094401ad344ecbc1d15a57"><td class="memItemLeft" align="right" valign="top"><a id="ab2a129e8bb094401ad344ecbc1d15a57" name="ab2a129e8bb094401ad344ecbc1d15a57"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setDialogLevel</b> (const int new_level)</td></tr>
<tr class="memdesc:ab2a129e8bb094401ad344ecbc1d15a57"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the Dialogs level. <br /></td></tr>
<tr class="separator:ab2a129e8bb094401ad344ecbc1d15a57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e7cf5357869bc2c19053cb63afd6b67"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDbQuery.html#a1e7cf5357869bc2c19053cb63afd6b67">setDbPath</a> (const std::string &amp;path)</td></tr>
<tr class="memdesc:a1e7cf5357869bc2c19053cb63afd6b67"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the path for the logs Collection database. <a href="classDbQuery.html#a1e7cf5357869bc2c19053cb63afd6b67">More...</a><br /></td></tr>
<tr class="separator:a1e7cf5357869bc2c19053cb63afd6b67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a666a5e656764c18907affcd169988212"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDbQuery.html#a666a5e656764c18907affcd169988212">refreshDates</a> (<a class="el" href="classResult.html">Result</a>&lt; stats_dates_t &gt; &amp;result)</td></tr>
<tr class="memdesc:a666a5e656764c18907affcd169988212"><td class="mdescLeft">&#160;</td><td class="mdescRight">Refreshes the dates which are available in the database. <a href="classDbQuery.html#a666a5e656764c18907affcd169988212">More...</a><br /></td></tr>
<tr class="separator:a666a5e656764c18907affcd169988212"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d86a91f0880d9d7ca27b6b9720257fd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDbQuery.html#a6d86a91f0880d9d7ca27b6b9720257fd">updateWarnings</a> (const QString &amp;web_server, const std::vector&lt; std::tuple&lt; int, int &gt; &gt; &amp;updates) const</td></tr>
<tr class="memdesc:a6d86a91f0880d9d7ca27b6b9720257fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates the database applying the changes made in the Warnings statistics table. <a href="classDbQuery.html#a6d86a91f0880d9d7ca27b6b9720257fd">More...</a><br /></td></tr>
<tr class="separator:a6d86a91f0880d9d7ca27b6b9720257fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52c3bb9ccbdb09f31dfd47ee3b890002"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDbQuery.html#a52c3bb9ccbdb09f31dfd47ee3b890002">getWarnCounts</a> (<a class="el" href="classResult.html">Result</a>&lt; stats_warn_items_t &gt; &amp;result, const QString &amp;web_server, const QString &amp;year_, const QString &amp;month_, const QString &amp;day_, const QString &amp;hour_) const</td></tr>
<tr class="memdesc:a52c3bb9ccbdb09f31dfd47ee3b890002"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the data needed for the Warnings statistics. <a href="classDbQuery.html#a52c3bb9ccbdb09f31dfd47ee3b890002">More...</a><br /></td></tr>
<tr class="separator:a52c3bb9ccbdb09f31dfd47ee3b890002"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26f6f3955299ca45019c3e57c71ea4bd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDbQuery.html#a26f6f3955299ca45019c3e57c71ea4bd">getSpeedData</a> (<a class="el" href="classResult.html">Result</a>&lt; stats_speed_items_t &gt; &amp;result, const QString &amp;web_server, const QString &amp;year_, const QString &amp;month_, const QString &amp;day_, const QString &amp;protocol_f, const QString &amp;method_f, const QString &amp;uri_f, const QString &amp;query_f, const QString &amp;response_f) const</td></tr>
<tr class="memdesc:a26f6f3955299ca45019c3e57c71ea4bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the data needed for the Speed statistics. <a href="classDbQuery.html#a26f6f3955299ca45019c3e57c71ea4bd">More...</a><br /></td></tr>
<tr class="separator:a26f6f3955299ca45019c3e57c71ea4bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b1853fa07fece11d1fae523b977fa30"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDbQuery.html#a9b1853fa07fece11d1fae523b977fa30">getItemsCount</a> (<a class="el" href="classResult.html">Result</a>&lt; stats_count_items_t &gt; &amp;result, const QString &amp;web_server, const QString &amp;year, const QString &amp;month, const QString &amp;day, const QString &amp;log_field) const</td></tr>
<tr class="memdesc:a9b1853fa07fece11d1fae523b977fa30"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the data needed for the Counts statistics. <a href="classDbQuery.html#a9b1853fa07fece11d1fae523b977fa30">More...</a><br /></td></tr>
<tr class="separator:a9b1853fa07fece11d1fae523b977fa30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a937de286c843f08d7a0c7973d7353722"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDbQuery.html#a937de286c843f08d7a0c7973d7353722">getDaytimeCounts</a> (<a class="el" href="classResult.html">Result</a>&lt; stats_day_items_t &gt; &amp;result, const QString &amp;web_server, const QString &amp;from_year_, const QString &amp;from_month_, const QString &amp;from_day_, const QString &amp;to_year_, const QString &amp;to_month_, const QString &amp;to_day_, const QString &amp;log_field_, const QString &amp;field_filter) const</td></tr>
<tr class="memdesc:a937de286c843f08d7a0c7973d7353722"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the data needed for the Daytime statistics. <a href="classDbQuery.html#a937de286c843f08d7a0c7973d7353722">More...</a><br /></td></tr>
<tr class="separator:a937de286c843f08d7a0c7973d7353722"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d8d337ef7a70599c3b6fd5710b41f95"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDbQuery.html#a2d8d337ef7a70599c3b6fd5710b41f95">getRelationalCountsDay</a> (<a class="el" href="classResult.html">Result</a>&lt; stats_relat_items_t &gt; &amp;result, const QString &amp;web_server, const QString &amp;year_, const QString &amp;month_, const QString &amp;day_, const QString &amp;log_field_1_, const QString &amp;field_filter_1, const QString &amp;log_field_2_, const QString &amp;field_filter_2) const</td></tr>
<tr class="memdesc:a2d8d337ef7a70599c3b6fd5710b41f95"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the data needed for the Relationsl statistics. <a href="classDbQuery.html#a2d8d337ef7a70599c3b6fd5710b41f95">More...</a><br /></td></tr>
<tr class="separator:a2d8d337ef7a70599c3b6fd5710b41f95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab05e51544f15c63f86b184502e091e0d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDbQuery.html#ab05e51544f15c63f86b184502e091e0d">getRelationalCountsPeriod</a> (<a class="el" href="classResult.html">Result</a>&lt; stats_relat_items_t &gt; &amp;result, const QString &amp;web_server, const QString &amp;from_year_, const QString &amp;from_month_, const QString &amp;from_day_, const QString &amp;to_year_, const QString &amp;to_month_, const QString &amp;to_day_, const QString &amp;log_field_1_, const QString &amp;field_filter_1, const QString &amp;log_field_2_, const QString &amp;field_filter_2) const</td></tr>
<tr class="memdesc:ab05e51544f15c63f86b184502e091e0d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the data needed for the Relational statistics. <a href="classDbQuery.html#ab05e51544f15c63f86b184502e091e0d">More...</a><br /></td></tr>
<tr class="separator:ab05e51544f15c63f86b184502e091e0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79b1307456e0c2081d9e6b5c70dbb737"><td class="memItemLeft" align="right" valign="top">const bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDbQuery.html#a79b1307456e0c2081d9e6b5c70dbb737">getGlobalCounts</a> (const QString &amp;web_server, const std::map&lt; int, std::map&lt; int, std::vector&lt; int &gt; &gt; &gt; &amp;dates, std::vector&lt; std::unordered_map&lt; QString, unsigned &gt; &gt; &amp;recurs, std::tuple&lt; QString, int &gt; &amp;traf_date, std::unordered_map&lt; int, double &gt; &amp;traf_day, std::unordered_map&lt; int, double &gt; &amp;traf_hour, std::vector&lt; long long &gt; &amp;perf_time, std::vector&lt; long long &gt; &amp;perf_sent, std::vector&lt; long long &gt; &amp;perf_receiv, long &amp;req_count) const</td></tr>
<tr class="memdesc:a79b1307456e0c2081d9e6b5c70dbb737"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the data needed for the Global statistics. <a href="classDbQuery.html#a79b1307456e0c2081d9e6b5c70dbb737">More...</a><br /></td></tr>
<tr class="separator:a79b1307456e0c2081d9e6b5c70dbb737"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-methods" name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:aa3611bbef762a8b6123f54b33dfb1249"><td class="memItemLeft" align="right" valign="top">const QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDbQuery.html#aa3611bbef762a8b6123f54b33dfb1249">getDbField</a> (const QString &amp;tr_fld) const</td></tr>
<tr class="memdesc:aa3611bbef762a8b6123f54b33dfb1249"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the database field corresponding to the relative log field. <a href="classDbQuery.html#aa3611bbef762a8b6123f54b33dfb1249">More...</a><br /></td></tr>
<tr class="separator:aa3611bbef762a8b6123f54b33dfb1249"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a441234aeca3523055ab2f603001f947b"><td class="memItemLeft" align="right" valign="top">const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDbQuery.html#a441234aeca3523055ab2f603001f947b">getMinuteGap</a> (const int minute, const int gap=10) const</td></tr>
<tr class="memdesc:a441234aeca3523055ab2f603001f947b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the minute gap for the given minute with the given gap. <a href="classDbQuery.html#a441234aeca3523055ab2f603001f947b">More...</a><br /></td></tr>
<tr class="separator:a441234aeca3523055ab2f603001f947b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d8c2969bf46cd3fad5106ab58ed8018"><td class="memItemLeft" align="right" valign="top">const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDbQuery.html#a6d8c2969bf46cd3fad5106ab58ed8018">getMonthDays</a> (const int year, const int month) const</td></tr>
<tr class="memdesc:a6d8c2969bf46cd3fad5106ab58ed8018"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of days for a given month. <a href="classDbQuery.html#a6d8c2969bf46cd3fad5106ab58ed8018">More...</a><br /></td></tr>
<tr class="separator:a6d8c2969bf46cd3fad5106ab58ed8018"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b8e5f79fcd3dd3bee9e7208b00305fa"><td class="memItemLeft" align="right" valign="top">const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDbQuery.html#a7b8e5f79fcd3dd3bee9e7208b00305fa">getMonthNumber</a> (const QString &amp;month_str) const</td></tr>
<tr class="memdesc:a7b8e5f79fcd3dd3bee9e7208b00305fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the month number in the year. <a href="classDbQuery.html#a7b8e5f79fcd3dd3bee9e7208b00305fa">More...</a><br /></td></tr>
<tr class="separator:a7b8e5f79fcd3dd3bee9e7208b00305fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64f8fbc658236e9b45e6bc61e3c8359e"><td class="memItemLeft" align="right" valign="top">const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDbQuery.html#a64f8fbc658236e9b45e6bc61e3c8359e">countDays</a> (const int from_year, const int from_month, const int from_day, const int to_year, const int to_month, const int to_day) const</td></tr>
<tr class="memdesc:a64f8fbc658236e9b45e6bc61e3c8359e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of days in a given period. <a href="classDbQuery.html#a64f8fbc658236e9b45e6bc61e3c8359e">More...</a><br /></td></tr>
<tr class="separator:a64f8fbc658236e9b45e6bc61e3c8359e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7a5359e630a35beee0b6dd183815218"><td class="memItemLeft" align="right" valign="top">const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDbQuery.html#ac7a5359e630a35beee0b6dd183815218">countMonths</a> (const int &amp;from_year, const int &amp;from_month, const int &amp;to_year, const int &amp;to_month) const</td></tr>
<tr class="memdesc:ac7a5359e630a35beee0b6dd183815218"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of months in a given period. <a href="classDbQuery.html#ac7a5359e630a35beee0b6dd183815218">More...</a><br /></td></tr>
<tr class="separator:ac7a5359e630a35beee0b6dd183815218"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a64f8fbc658236e9b45e6bc61e3c8359e" name="a64f8fbc658236e9b45e6bc61e3c8359e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64f8fbc658236e9b45e6bc61e3c8359e">&#9670;&#160;</a></span>countDays()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const int DbQuery::countDays </td>
<td>(</td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>from_year</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>from_month</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>from_day</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>to_year</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>to_month</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>to_day</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the number of days in a given period. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">from_year</td><td>The initial year </td></tr>
<tr><td class="paramname">from_month</td><td>The initial month </td></tr>
<tr><td class="paramname">from_day</td><td>The initial day </td></tr>
<tr><td class="paramname">to_year</td><td>The final Year </td></tr>
<tr><td class="paramname">to_month</td><td>The final month </td></tr>
<tr><td class="paramname">to_day</td><td>The final day </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The number of days </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classDateTimeException.html" title="DateTimeException.">DateTimeException</a></td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ac7a5359e630a35beee0b6dd183815218" name="ac7a5359e630a35beee0b6dd183815218"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7a5359e630a35beee0b6dd183815218">&#9670;&#160;</a></span>countMonths()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const int DbQuery::countMonths </td>
<td>(</td>
<td class="paramtype">const int &amp;&#160;</td>
<td class="paramname"><em>from_year</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int &amp;&#160;</td>
<td class="paramname"><em>from_month</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int &amp;&#160;</td>
<td class="paramname"><em>to_year</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int &amp;&#160;</td>
<td class="paramname"><em>to_month</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the number of months in a given period. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">from_year</td><td>The initial year </td></tr>
<tr><td class="paramname">from_month</td><td>The initial month </td></tr>
<tr><td class="paramname">to_year</td><td>The final Year </td></tr>
<tr><td class="paramname">to_month</td><td>The final month </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The number of months in the period </dd></dl>
</div>
</div>
<a id="a937de286c843f08d7a0c7973d7353722" name="a937de286c843f08d7a0c7973d7353722"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a937de286c843f08d7a0c7973d7353722">&#9670;&#160;</a></span>getDaytimeCounts()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void DbQuery::getDaytimeCounts </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classResult.html">Result</a>&lt; stats_day_items_t &gt; &amp;&#160;</td>
<td class="paramname"><em>result</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>web_server</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>from_year_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>from_month_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>from_day_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>to_year_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>to_month_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>to_day_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>log_field_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>field_filter</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieves the data needed for the Daytime statistics. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">result</td><td>Tuple which will hold the result of the operation and the data </td></tr>
<tr><td class="paramname">web_server</td><td>The ID of the Web Server to use </td></tr>
<tr><td class="paramname">from_year_</td><td>The initial year </td></tr>
<tr><td class="paramname">from_month_</td><td>The initial month </td></tr>
<tr><td class="paramname">from_day_</td><td>The initial day </td></tr>
<tr><td class="paramname">to_year_</td><td>The final year </td></tr>
<tr><td class="paramname">to_month_</td><td>The final month </td></tr>
<tr><td class="paramname">to_day_</td><td>The final day </td></tr>
<tr><td class="paramname">log_field_</td><td>The log field to filter </td></tr>
<tr><td class="paramname">field_filter</td><td>The filter to apply </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="aa3611bbef762a8b6123f54b33dfb1249" name="aa3611bbef762a8b6123f54b33dfb1249"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3611bbef762a8b6123f54b33dfb1249">&#9670;&#160;</a></span>getDbField()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const QString DbQuery::getDbField </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>tr_fld</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the database field corresponding to the relative log field. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">tr_fld</td><td>The log field, hendles translated text </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The database field </dd></dl>
</div>
</div>
<a id="a79b1307456e0c2081d9e6b5c70dbb737" name="a79b1307456e0c2081d9e6b5c70dbb737"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a79b1307456e0c2081d9e6b5c70dbb737">&#9670;&#160;</a></span>getGlobalCounts()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const bool DbQuery::getGlobalCounts </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>web_server</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::map&lt; int, std::map&lt; int, std::vector&lt; int &gt; &gt; &gt; &amp;&#160;</td>
<td class="paramname"><em>dates</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::vector&lt; std::unordered_map&lt; QString, unsigned &gt; &gt; &amp;&#160;</td>
<td class="paramname"><em>recurs</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::tuple&lt; QString, int &gt; &amp;&#160;</td>
<td class="paramname"><em>traf_date</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::unordered_map&lt; int, double &gt; &amp;&#160;</td>
<td class="paramname"><em>traf_day</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::unordered_map&lt; int, double &gt; &amp;&#160;</td>
<td class="paramname"><em>traf_hour</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::vector&lt; long long &gt; &amp;&#160;</td>
<td class="paramname"><em>perf_time</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::vector&lt; long long &gt; &amp;&#160;</td>
<td class="paramname"><em>perf_sent</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::vector&lt; long long &gt; &amp;&#160;</td>
<td class="paramname"><em>perf_receiv</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">long &amp;&#160;</td>
<td class="paramname"><em>req_count</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieves the data needed for the Global statistics. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">web_server</td><td>The ID of the Web Server to use </td></tr>
<tr><td class="paramname">dates</td><td>The dates to query </td></tr>
<tr><td class="paramname">recurs</td><td>Will hold the recurrencies of the items </td></tr>
<tr><td class="paramname">traf_date</td><td>Will hold the most trafficked date and the count </td></tr>
<tr><td class="paramname">traf_day</td><td>Will hold the most trafficked day of the week and the count </td></tr>
<tr><td class="paramname">traf_hour</td><td>Will hold the most trafficked hour of the day and the count </td></tr>
<tr><td class="paramname">perf_time</td><td>Will hold the overallo time taken </td></tr>
<tr><td class="paramname">perf_sent</td><td>Will hold the overall Bytes sent </td></tr>
<tr><td class="paramname">perf_receiv</td><td>Will hold the overall Bytes received </td></tr>
<tr><td class="paramname">req_count</td><td>Will hold the number of requests examined by the query </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Whether the operation has been successful or not </dd></dl>
</div>
</div>
<a id="a9b1853fa07fece11d1fae523b977fa30" name="a9b1853fa07fece11d1fae523b977fa30"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b1853fa07fece11d1fae523b977fa30">&#9670;&#160;</a></span>getItemsCount()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void DbQuery::getItemsCount </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classResult.html">Result</a>&lt; stats_count_items_t &gt; &amp;&#160;</td>
<td class="paramname"><em>result</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>web_server</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>year</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>month</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>day</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>log_field</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieves the data needed for the Counts statistics. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">result</td><td>Tuple which will hold the result of the operation and the data </td></tr>
<tr><td class="paramname">web_server</td><td>The ID of the Web Server to use </td></tr>
<tr><td class="paramname">year</td><td>The year </td></tr>
<tr><td class="paramname">month</td><td>The month </td></tr>
<tr><td class="paramname">day</td><td>The day </td></tr>
<tr><td class="paramname">log_field</td><td>The log field </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a441234aeca3523055ab2f603001f947b" name="a441234aeca3523055ab2f603001f947b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a441234aeca3523055ab2f603001f947b">&#9670;&#160;</a></span>getMinuteGap()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const int DbQuery::getMinuteGap </td>
<td>(</td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>minute</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>gap</em> = <code>10</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the minute gap for the given minute with the given gap. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">minute</td><td>The minute of the hour </td></tr>
<tr><td class="paramname">gap</td><td>The gap used to split the hour </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The gap index </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classDateTimeException.html" title="DateTimeException.">DateTimeException</a></td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a6d8c2969bf46cd3fad5106ab58ed8018" name="a6d8c2969bf46cd3fad5106ab58ed8018"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d8c2969bf46cd3fad5106ab58ed8018">&#9670;&#160;</a></span>getMonthDays()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const int DbQuery::getMonthDays </td>
<td>(</td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>year</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int&#160;</td>
<td class="paramname"><em>month</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the number of days for a given month. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">year</td><td>The year, used to handle leap years </td></tr>
<tr><td class="paramname">month</td><td>The month </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The number of days </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classDateTimeException.html" title="DateTimeException.">DateTimeException</a></td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a7b8e5f79fcd3dd3bee9e7208b00305fa" name="a7b8e5f79fcd3dd3bee9e7208b00305fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b8e5f79fcd3dd3bee9e7208b00305fa">&#9670;&#160;</a></span>getMonthNumber()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const int DbQuery::getMonthNumber </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>month_str</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the month number in the year. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">month_str</td><td>The month </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The month number </dd></dl>
</div>
</div>
<a id="a2d8d337ef7a70599c3b6fd5710b41f95" name="a2d8d337ef7a70599c3b6fd5710b41f95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d8d337ef7a70599c3b6fd5710b41f95">&#9670;&#160;</a></span>getRelationalCountsDay()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void DbQuery::getRelationalCountsDay </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classResult.html">Result</a>&lt; stats_relat_items_t &gt; &amp;&#160;</td>
<td class="paramname"><em>result</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>web_server</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>year_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>month_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>day_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>log_field_1_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>field_filter_1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>log_field_2_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>field_filter_2</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieves the data needed for the Relationsl statistics. </p>
<p >Used when querying a single day </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">result</td><td>Tuple which will hold the result of the operation and the data </td></tr>
<tr><td class="paramname">web_server</td><td>The ID of the Web Server to use </td></tr>
<tr><td class="paramname">year_</td><td>The year </td></tr>
<tr><td class="paramname">month_</td><td>The month </td></tr>
<tr><td class="paramname">day_</td><td>The day </td></tr>
<tr><td class="paramname">log_field_1_</td><td>The first log field to filter </td></tr>
<tr><td class="paramname">field_filter_1</td><td>The filter to apply to the first field </td></tr>
<tr><td class="paramname">log_field_2_</td><td>The second log field to filter </td></tr>
<tr><td class="paramname">field_filter_2</td><td>The filter to apply to the second fiend </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classDbQuery.html#ab05e51544f15c63f86b184502e091e0d" title="Retrieves the data needed for the Relational statistics.">getRelationalCountsPeriod()</a> </dd></dl>
</div>
</div>
<a id="ab05e51544f15c63f86b184502e091e0d" name="ab05e51544f15c63f86b184502e091e0d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab05e51544f15c63f86b184502e091e0d">&#9670;&#160;</a></span>getRelationalCountsPeriod()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void DbQuery::getRelationalCountsPeriod </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classResult.html">Result</a>&lt; stats_relat_items_t &gt; &amp;&#160;</td>
<td class="paramname"><em>result</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>web_server</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>from_year_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>from_month_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>from_day_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>to_year_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>to_month_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>to_day_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>log_field_1_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>field_filter_1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>log_field_2_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>field_filter_2</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieves the data needed for the Relational statistics. </p>
<p >Used when querying a period of time </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">result</td><td>Tuple which will hold the result of the operation and the data </td></tr>
<tr><td class="paramname">web_server</td><td>The ID of the Web Server to use </td></tr>
<tr><td class="paramname">from_year_</td><td>The initial year </td></tr>
<tr><td class="paramname">from_month_</td><td>The initial month </td></tr>
<tr><td class="paramname">from_day_</td><td>The initial day </td></tr>
<tr><td class="paramname">to_year_</td><td>The final year </td></tr>
<tr><td class="paramname">to_month_</td><td>The final month </td></tr>
<tr><td class="paramname">to_day_</td><td>The final day </td></tr>
<tr><td class="paramname">log_field_1_</td><td>The first log field to filter </td></tr>
<tr><td class="paramname">field_filter_1</td><td>The filter to apply to the first field </td></tr>
<tr><td class="paramname">log_field_2_</td><td>The second log field to filter </td></tr>
<tr><td class="paramname">field_filter_2</td><td>The filter to apply to the second fiend </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classDbQuery.html#a2d8d337ef7a70599c3b6fd5710b41f95" title="Retrieves the data needed for the Relationsl statistics.">getRelationalCountsDay()</a> </dd></dl>
</div>
</div>
<a id="a26f6f3955299ca45019c3e57c71ea4bd" name="a26f6f3955299ca45019c3e57c71ea4bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26f6f3955299ca45019c3e57c71ea4bd">&#9670;&#160;</a></span>getSpeedData()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void DbQuery::getSpeedData </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classResult.html">Result</a>&lt; stats_speed_items_t &gt; &amp;&#160;</td>
<td class="paramname"><em>result</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>web_server</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>year_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>month_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>day_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>protocol_f</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>method_f</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>uri_f</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>query_f</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>response_f</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieves the data needed for the Speed statistics. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">result</td><td>Tuple which will hold the result of the operation and the data </td></tr>
<tr><td class="paramname">web_server</td><td>The ID of the Web Server to use </td></tr>
<tr><td class="paramname">year_</td><td>The year </td></tr>
<tr><td class="paramname">month_</td><td>The month </td></tr>
<tr><td class="paramname">day_</td><td>The day </td></tr>
<tr><td class="paramname">protocol_f</td><td>The filter for the Protocol field </td></tr>
<tr><td class="paramname">method_f</td><td>The filter for the Method field </td></tr>
<tr><td class="paramname">uri_f</td><td>The filter for the URI field </td></tr>
<tr><td class="paramname">query_f</td><td>The filter for the Query field </td></tr>
<tr><td class="paramname">response_f</td><td>The filter for the Response field </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a52c3bb9ccbdb09f31dfd47ee3b890002" name="a52c3bb9ccbdb09f31dfd47ee3b890002"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a52c3bb9ccbdb09f31dfd47ee3b890002">&#9670;&#160;</a></span>getWarnCounts()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void DbQuery::getWarnCounts </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classResult.html">Result</a>&lt; stats_warn_items_t &gt; &amp;&#160;</td>
<td class="paramname"><em>result</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>web_server</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>year_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>month_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>day_</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>hour_</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieves the data needed for the Warnings statistics. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">result</td><td>Tuple which will hold the result of the operation and the data </td></tr>
<tr><td class="paramname">web_server</td><td>The ID of the Web Server to use </td></tr>
<tr><td class="paramname">year_</td><td>The year </td></tr>
<tr><td class="paramname">month_</td><td>The month </td></tr>
<tr><td class="paramname">day_</td><td>The day </td></tr>
<tr><td class="paramname">hour_</td><td>The hour </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a666a5e656764c18907affcd169988212" name="a666a5e656764c18907affcd169988212"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a666a5e656764c18907affcd169988212">&#9670;&#160;</a></span>refreshDates()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void DbQuery::refreshDates </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classResult.html">Result</a>&lt; stats_dates_t &gt; &amp;&#160;</td>
<td class="paramname"><em>result</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Refreshes the dates which are available in the database. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">result</td><td>Tuple which will hold the result of the operation and the data </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a1e7cf5357869bc2c19053cb63afd6b67" name="a1e7cf5357869bc2c19053cb63afd6b67"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e7cf5357869bc2c19053cb63afd6b67">&#9670;&#160;</a></span>setDbPath()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void DbQuery::setDbPath </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>path</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the path for the logs Collection database. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classCrapview.html#ac4f0e1215a892983b1c75f268bb1d60d" title="Sets the new path for the logs Collection database.">Crapview::setDbPath()</a> </dd></dl>
</div>
</div>
<a id="a6d86a91f0880d9d7ca27b6b9720257fd" name="a6d86a91f0880d9d7ca27b6b9720257fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d86a91f0880d9d7ca27b6b9720257fd">&#9670;&#160;</a></span>updateWarnings()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void DbQuery::updateWarnings </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>web_server</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::vector&lt; std::tuple&lt; int, int &gt; &gt; &amp;&#160;</td>
<td class="paramname"><em>updates</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Updates the database applying the changes made in the Warnings statistics table. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">web_server</td><td>The ID of the Web Server to use </td></tr>
<tr><td class="paramname">updates</td><td>The list of rowids to update and the corresponding warning values </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>logdoctor/modules/crapview/modules/query.h</li>
<li>logdoctor/modules/crapview/modules/query.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>