Files
rippled/classbeast_1_1insight_1_1StatsDCollector.html
2025-08-27 02:38:02 -07:00

616 lines
37 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.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: beast::insight::StatsDCollector 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="projectalign">
<div id="projectname">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacebeast.html">beast</a></li><li class="navelem"><a class="el" href="namespacebeast_1_1insight.html">insight</a></li><li class="navelem"><a class="el" href="classbeast_1_1insight_1_1StatsDCollector.html">StatsDCollector</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classbeast_1_1insight_1_1StatsDCollector-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">beast::insight::StatsDCollector Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div></div>
</div><!--header-->
<div class="contents">
<p>A <a class="el" href="classbeast_1_1insight_1_1Collector.html" title="Interface for a manager that allows collection of metrics.">Collector</a> that reports metrics to a StatsD server.
<a href="classbeast_1_1insight_1_1StatsDCollector.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="StatsDCollector_8h_source.html">StatsDCollector.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for beast::insight::StatsDCollector:</div>
<div class="dyncontent">
<div class="center"><img src="classbeast_1_1insight_1_1StatsDCollector__inherit__graph.png" border="0" usemap="#abeast_1_1insight_1_1StatsDCollector_inherit__map" alt="Inheritance graph"/></div>
<map name="abeast_1_1insight_1_1StatsDCollector_inherit__map" id="abeast_1_1insight_1_1StatsDCollector_inherit__map">
<area shape="rect" title="A Collector that reports metrics to a StatsD server." alt="" coords="5,79,224,104"/>
<area shape="rect" href="classbeast_1_1insight_1_1detail_1_1StatsDCollectorImp.html" title=" " alt="" coords="37,152,193,192"/>
<area shape="poly" title=" " alt="" coords="117,118,117,152,112,152,112,118"/>
<area shape="rect" href="classbeast_1_1insight_1_1Collector.html" title="Interface for a manager that allows collection of metrics." alt="" coords="27,5,203,31"/>
<area shape="poly" title=" " alt="" coords="117,44,117,79,112,79,112,44"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for beast::insight::StatsDCollector:</div>
<div class="dyncontent">
<div class="center"><img src="classbeast_1_1insight_1_1StatsDCollector__coll__graph.png" border="0" usemap="#abeast_1_1insight_1_1StatsDCollector_coll__map" alt="Collaboration graph"/></div>
<map name="abeast_1_1insight_1_1StatsDCollector_coll__map" id="abeast_1_1insight_1_1StatsDCollector_coll__map">
<area shape="rect" title="A Collector that reports metrics to a StatsD server." alt="" coords="5,79,224,104"/>
<area shape="rect" href="classbeast_1_1insight_1_1Collector.html" title="Interface for a manager that allows collection of metrics." alt="" coords="27,5,203,31"/>
<area shape="poly" title=" " alt="" coords="117,44,117,79,112,79,112,44"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ad1677ecd39a09b6a8bb8f2e073266bc4" id="r_ad1677ecd39a09b6a8bb8f2e073266bc4"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1insight_1_1Collector.html#ad1677ecd39a09b6a8bb8f2e073266bc4">ptr</a> = <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classbeast_1_1insight_1_1Collector.html">Collector</a> &gt;</td></tr>
<tr class="separator:ad1677ecd39a09b6a8bb8f2e073266bc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><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:a16b7a385221640f3015e135657f59cac" id="r_a16b7a385221640f3015e135657f59cac"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1insight_1_1StatsDCollector.html#a16b7a385221640f3015e135657f59cac">StatsDCollector</a> ()=default</td></tr>
<tr class="separator:a16b7a385221640f3015e135657f59cac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr class="memitem:ac2a1996ad32debefc043e26119c98900" id="r_ac2a1996ad32debefc043e26119c98900"><td class="memTemplParams" colspan="2">template&lt;class Handler &gt; </td></tr>
<tr class="memitem:ac2a1996ad32debefc043e26119c98900"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1insight_1_1Hook.html">Hook</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbeast_1_1insight_1_1Collector.html#ac2a1996ad32debefc043e26119c98900">make_hook</a> (Handler handler)</td></tr>
<tr class="memdesc:ac2a1996ad32debefc043e26119c98900"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a hook. <br /></td></tr>
<tr class="separator:ac2a1996ad32debefc043e26119c98900"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a239103f9cf150e8630b9d7c831468009" id="r_a239103f9cf150e8630b9d7c831468009"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classbeast_1_1insight_1_1Hook.html">Hook</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1insight_1_1Collector.html#a239103f9cf150e8630b9d7c831468009">make_hook</a> (<a class="el" href="classbeast_1_1insight_1_1HookImpl.html#a25001be76f7d21d47edb476b3265954f">HookImpl::HandlerType</a> const &amp;handler)=0</td></tr>
<tr class="separator:a239103f9cf150e8630b9d7c831468009"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr class="memitem:a6951e9d64e11bc6b15fd0bf0961c9dbd" id="r_a6951e9d64e11bc6b15fd0bf0961c9dbd"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classbeast_1_1insight_1_1Counter.html">Counter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1insight_1_1Collector.html#a6951e9d64e11bc6b15fd0bf0961c9dbd">make_counter</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;name)=0</td></tr>
<tr class="memdesc:a6951e9d64e11bc6b15fd0bf0961c9dbd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a counter with the specified name. <br /></td></tr>
<tr class="separator:a6951e9d64e11bc6b15fd0bf0961c9dbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19213e64e7f90b0c1779bca22f040d3a" id="r_a19213e64e7f90b0c1779bca22f040d3a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1insight_1_1Counter.html">Counter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1insight_1_1Collector.html#a19213e64e7f90b0c1779bca22f040d3a">make_counter</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;prefix, <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;name)</td></tr>
<tr class="separator:a19213e64e7f90b0c1779bca22f040d3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr class="memitem:a7541aa8988e56c189d121872a4b22359" id="r_a7541aa8988e56c189d121872a4b22359"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classbeast_1_1insight_1_1Event.html">Event</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1insight_1_1Collector.html#a7541aa8988e56c189d121872a4b22359">make_event</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;name)=0</td></tr>
<tr class="memdesc:a7541aa8988e56c189d121872a4b22359"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an event with the specified name. <br /></td></tr>
<tr class="separator:a7541aa8988e56c189d121872a4b22359"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2d5a76f4dddb14515481ba20d0966b3" id="r_aa2d5a76f4dddb14515481ba20d0966b3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1insight_1_1Event.html">Event</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1insight_1_1Collector.html#aa2d5a76f4dddb14515481ba20d0966b3">make_event</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;prefix, <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;name)</td></tr>
<tr class="separator:aa2d5a76f4dddb14515481ba20d0966b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr class="memitem:a0ffd5a18c590fe913d3b87ed82184abf" id="r_a0ffd5a18c590fe913d3b87ed82184abf"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classbeast_1_1insight_1_1Gauge.html">Gauge</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1insight_1_1Collector.html#a0ffd5a18c590fe913d3b87ed82184abf">make_gauge</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;name)=0</td></tr>
<tr class="memdesc:a0ffd5a18c590fe913d3b87ed82184abf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a gauge with the specified name. <br /></td></tr>
<tr class="separator:a0ffd5a18c590fe913d3b87ed82184abf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a283b7d542d808873b504c89d8ac53429" id="r_a283b7d542d808873b504c89d8ac53429"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1insight_1_1Gauge.html">Gauge</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1insight_1_1Collector.html#a283b7d542d808873b504c89d8ac53429">make_gauge</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;prefix, <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;name)</td></tr>
<tr class="separator:a283b7d542d808873b504c89d8ac53429"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr class="memitem:afbe6f66222283a318e138535ffd6fff2" id="r_afbe6f66222283a318e138535ffd6fff2"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classbeast_1_1insight_1_1Meter.html">Meter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1insight_1_1Collector.html#afbe6f66222283a318e138535ffd6fff2">make_meter</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;name)=0</td></tr>
<tr class="memdesc:afbe6f66222283a318e138535ffd6fff2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a meter with the specified name. <br /></td></tr>
<tr class="separator:afbe6f66222283a318e138535ffd6fff2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1797bf51c933cb9b839a3a2a3841e1db" id="r_a1797bf51c933cb9b839a3a2a3841e1db"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1insight_1_1Meter.html">Meter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1insight_1_1Collector.html#a1797bf51c933cb9b839a3a2a3841e1db">make_meter</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;prefix, <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;name)</td></tr>
<tr class="separator:a1797bf51c933cb9b839a3a2a3841e1db"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a25e5cf3f07c0553a5962ded9cc4d5c25" id="r_a25e5cf3f07c0553a5962ded9cc4d5c25"><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classbeast_1_1insight_1_1StatsDCollector.html">StatsDCollector</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1insight_1_1StatsDCollector.html#a25e5cf3f07c0553a5962ded9cc4d5c25">New</a> (<a class="el" href="classbeast_1_1IP_1_1Endpoint.html">IP::Endpoint</a> const &amp;address, <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;prefix, <a class="el" href="classbeast_1_1Journal.html">Journal</a> journal)</td></tr>
<tr class="memdesc:a25e5cf3f07c0553a5962ded9cc4d5c25"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a StatsD collector. <br /></td></tr>
<tr class="separator:a25e5cf3f07c0553a5962ded9cc4d5c25"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A <a class="el" href="classbeast_1_1insight_1_1Collector.html" title="Interface for a manager that allows collection of metrics.">Collector</a> that reports metrics to a StatsD server. </p>
<p>Reference: <a href="https://github.com/b/statsd_spec">https://github.com/b/statsd_spec</a> </p>
<p class="definition">Definition at line <a class="el" href="StatsDCollector_8h_source.html#l00034">34</a> of file <a class="el" href="StatsDCollector_8h_source.html">StatsDCollector.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="ad1677ecd39a09b6a8bb8f2e073266bc4" name="ad1677ecd39a09b6a8bb8f2e073266bc4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad1677ecd39a09b6a8bb8f2e073266bc4">&#9670;&#160;</a></span>ptr</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="classbeast_1_1insight_1_1Collector.html#ad1677ecd39a09b6a8bb8f2e073266bc4">beast::insight::Collector::ptr</a> = <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt;<a class="el" href="classbeast_1_1insight_1_1Collector.html">Collector</a>&gt;</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="Collector_8h_source.html#l00047">47</a> of file <a class="el" href="Collector_8h_source.html">Collector.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a16b7a385221640f3015e135657f59cac" name="a16b7a385221640f3015e135657f59cac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a16b7a385221640f3015e135657f59cac">&#9670;&#160;</a></span>StatsDCollector()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">beast::insight::StatsDCollector::StatsDCollector </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span><span class="mlabel">default</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a25e5cf3f07c0553a5962ded9cc4d5c25" name="a25e5cf3f07c0553a5962ded9cc4d5c25"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a25e5cf3f07c0553a5962ded9cc4d5c25">&#9670;&#160;</a></span>New()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classbeast_1_1insight_1_1StatsDCollector.html">StatsDCollector</a> &gt; beast::insight::StatsDCollector::New </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classbeast_1_1IP_1_1Endpoint.html">IP::Endpoint</a> const &amp;&#160;</td>
<td class="paramname"><em>address</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>prefix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classbeast_1_1Journal.html">Journal</a>&#160;</td>
<td class="paramname"><em>journal</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a StatsD collector. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">address</td><td>The <a class="el" href="namespacebeast_1_1IP.html">IP</a> address and port of the StatsD server. </td></tr>
<tr><td class="paramname">prefix</td><td>A string pre-pended before each metric name. </td></tr>
<tr><td class="paramname">journal</td><td>Destination for logging output. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="StatsDCollector_8cpp_source.html#l00779">779</a> of file <a class="el" href="StatsDCollector_8cpp_source.html">StatsDCollector.cpp</a>.</p>
</div>
</div>
<a id="ac2a1996ad32debefc043e26119c98900" name="ac2a1996ad32debefc043e26119c98900"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac2a1996ad32debefc043e26119c98900">&#9670;&#160;</a></span>make_hook() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Handler &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classbeast_1_1insight_1_1Hook.html">Hook</a> beast::insight::Collector::make_hook </td>
<td>(</td>
<td class="paramtype">Handler&#160;</td>
<td class="paramname"><em>handler</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a hook. </p>
<p>A hook is called at each collection interval, on an implementation defined thread. This is a convenience facility for gathering metrics in the polling style. The typical usage is to update all the metrics of interest in the handler.</p>
<p>Handler will be called with this signature: void handler (void)</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classbeast_1_1insight_1_1Hook.html" title="A reference to a handler for performing polled collection.">Hook</a> </dd></dl>
<p class="definition">Definition at line <a class="el" href="Collector_8h_source.html#l00066">66</a> of file <a class="el" href="Collector_8h_source.html">Collector.h</a>.</p>
</div>
</div>
<a id="a239103f9cf150e8630b9d7c831468009" name="a239103f9cf150e8630b9d7c831468009"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a239103f9cf150e8630b9d7c831468009">&#9670;&#160;</a></span>make_hook() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classbeast_1_1insight_1_1Hook.html">Hook</a> beast::insight::Collector::make_hook </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classbeast_1_1insight_1_1HookImpl.html#a25001be76f7d21d47edb476b3265954f">HookImpl::HandlerType</a> const &amp;&#160;</td>
<td class="paramname"><em>handler</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Implemented in <a class="el" href="classbeast_1_1insight_1_1detail_1_1NullCollectorImp.html#a5068965d13582ea0e4300dc683ffb3de">beast::insight::detail::NullCollectorImp</a>, <a class="el" href="classbeast_1_1insight_1_1detail_1_1GroupImp.html#a29d480e3027440802ff5a3345219a0ad">beast::insight::detail::GroupImp</a>, and <a class="el" href="classbeast_1_1insight_1_1detail_1_1StatsDCollectorImp.html#a94b74641bdcdbc69ed355d4de39a0c73">beast::insight::detail::StatsDCollectorImp</a>.</p>
</div>
</div>
<a id="a6951e9d64e11bc6b15fd0bf0961c9dbd" name="a6951e9d64e11bc6b15fd0bf0961c9dbd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6951e9d64e11bc6b15fd0bf0961c9dbd">&#9670;&#160;</a></span>make_counter() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classbeast_1_1insight_1_1Counter.html">Counter</a> beast::insight::Collector::make_counter </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a counter with the specified name. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classbeast_1_1insight_1_1Counter.html" title="A metric for measuring an integral value.">Counter</a> </dd></dl>
<p>Implemented in <a class="el" href="classbeast_1_1insight_1_1detail_1_1NullCollectorImp.html#ada9717400461e69fe4ca263de1adf1c2">beast::insight::detail::NullCollectorImp</a>, <a class="el" href="classbeast_1_1insight_1_1detail_1_1GroupImp.html#aaaddd9911cebcac680a3b0d385b8c14f">beast::insight::detail::GroupImp</a>, and <a class="el" href="classbeast_1_1insight_1_1detail_1_1StatsDCollectorImp.html#a38550964efacf464a83522e183c79639">beast::insight::detail::StatsDCollectorImp</a>.</p>
</div>
</div>
<a id="a19213e64e7f90b0c1779bca22f040d3a" name="a19213e64e7f90b0c1779bca22f040d3a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19213e64e7f90b0c1779bca22f040d3a">&#9670;&#160;</a></span>make_counter() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classbeast_1_1insight_1_1Counter.html">Counter</a> beast::insight::Collector::make_counter </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>prefix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>name</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="Collector_8h_source.html#l00083">83</a> of file <a class="el" href="Collector_8h_source.html">Collector.h</a>.</p>
</div>
</div>
<a id="a7541aa8988e56c189d121872a4b22359" name="a7541aa8988e56c189d121872a4b22359"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7541aa8988e56c189d121872a4b22359">&#9670;&#160;</a></span>make_event() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classbeast_1_1insight_1_1Event.html">Event</a> beast::insight::Collector::make_event </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create an event with the specified name. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classbeast_1_1insight_1_1Event.html" title="A metric for reporting event timing.">Event</a> </dd></dl>
<p>Implemented in <a class="el" href="classbeast_1_1insight_1_1detail_1_1NullCollectorImp.html#a0c14993887513d84f7e7ca763b6d4d8c">beast::insight::detail::NullCollectorImp</a>, <a class="el" href="classbeast_1_1insight_1_1detail_1_1GroupImp.html#ac6a4742f3ab0e6aaa6cb8333bcf2b8ad">beast::insight::detail::GroupImp</a>, and <a class="el" href="classbeast_1_1insight_1_1detail_1_1StatsDCollectorImp.html#a73f78e4f574e5df9ba171e7041b3bbec">beast::insight::detail::StatsDCollectorImp</a>.</p>
</div>
</div>
<a id="aa2d5a76f4dddb14515481ba20d0966b3" name="aa2d5a76f4dddb14515481ba20d0966b3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa2d5a76f4dddb14515481ba20d0966b3">&#9670;&#160;</a></span>make_event() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classbeast_1_1insight_1_1Event.html">Event</a> beast::insight::Collector::make_event </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>prefix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>name</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="Collector_8h_source.html#l00099">99</a> of file <a class="el" href="Collector_8h_source.html">Collector.h</a>.</p>
</div>
</div>
<a id="a0ffd5a18c590fe913d3b87ed82184abf" name="a0ffd5a18c590fe913d3b87ed82184abf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ffd5a18c590fe913d3b87ed82184abf">&#9670;&#160;</a></span>make_gauge() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classbeast_1_1insight_1_1Gauge.html">Gauge</a> beast::insight::Collector::make_gauge </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a gauge with the specified name. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classbeast_1_1insight_1_1Gauge.html" title="A metric for measuring an integral value.">Gauge</a> </dd></dl>
<p>Implemented in <a class="el" href="classbeast_1_1insight_1_1detail_1_1NullCollectorImp.html#a6069c1749f7fd20f42774b327b74d11f">beast::insight::detail::NullCollectorImp</a>, <a class="el" href="classbeast_1_1insight_1_1detail_1_1GroupImp.html#a86b79dff685e16fcd8841a6b2251e767">beast::insight::detail::GroupImp</a>, and <a class="el" href="classbeast_1_1insight_1_1detail_1_1StatsDCollectorImp.html#ad7a52269c74ed9ee7dc28e241f3216ed">beast::insight::detail::StatsDCollectorImp</a>.</p>
</div>
</div>
<a id="a283b7d542d808873b504c89d8ac53429" name="a283b7d542d808873b504c89d8ac53429"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a283b7d542d808873b504c89d8ac53429">&#9670;&#160;</a></span>make_gauge() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classbeast_1_1insight_1_1Gauge.html">Gauge</a> beast::insight::Collector::make_gauge </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>prefix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>name</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="Collector_8h_source.html#l00115">115</a> of file <a class="el" href="Collector_8h_source.html">Collector.h</a>.</p>
</div>
</div>
<a id="afbe6f66222283a318e138535ffd6fff2" name="afbe6f66222283a318e138535ffd6fff2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afbe6f66222283a318e138535ffd6fff2">&#9670;&#160;</a></span>make_meter() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classbeast_1_1insight_1_1Meter.html">Meter</a> beast::insight::Collector::make_meter </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a meter with the specified name. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classbeast_1_1insight_1_1Meter.html" title="A metric for measuring an integral value.">Meter</a> </dd></dl>
<p>Implemented in <a class="el" href="classbeast_1_1insight_1_1detail_1_1NullCollectorImp.html#a3ce4e36b1bddae0344f344174c629a43">beast::insight::detail::NullCollectorImp</a>, <a class="el" href="classbeast_1_1insight_1_1detail_1_1GroupImp.html#a24963f6f7597cbf71ab5fb92749f2520">beast::insight::detail::GroupImp</a>, and <a class="el" href="classbeast_1_1insight_1_1detail_1_1StatsDCollectorImp.html#a6646bebbc83f19ab0c34d92ae3484f6c">beast::insight::detail::StatsDCollectorImp</a>.</p>
</div>
</div>
<a id="a1797bf51c933cb9b839a3a2a3841e1db" name="a1797bf51c933cb9b839a3a2a3841e1db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1797bf51c933cb9b839a3a2a3841e1db">&#9670;&#160;</a></span>make_meter() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classbeast_1_1insight_1_1Meter.html">Meter</a> beast::insight::Collector::make_meter </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>prefix</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>name</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="Collector_8h_source.html#l00131">131</a> of file <a class="el" href="Collector_8h_source.html">Collector.h</a>.</p>
</div>
</div>
</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.8
</small></address>
</body>
</html>