aboutsummaryrefslogtreecommitdiff
path: root/statsd
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2017-04-16 22:49:17 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2017-04-16 22:49:17 +0200
commit4895eff27938fa72e5a638ff173920e823ebb115 (patch)
tree6e8424f95f6b3c4cefd6ef4d1891a76059ce8276 /statsd
parent33f81a3a57a047326160f371f3269dfb47c59cba (diff)
downloadcmix-4895eff27938fa72e5a638ff173920e823ebb115.tar.gz
cmix-4895eff27938fa72e5a638ff173920e823ebb115.tar.bz2
cmix-4895eff27938fa72e5a638ff173920e823ebb115.zip
Updated documentation and bumped Cmix to Version 1.0
Diffstat (limited to 'statsd')
-rw-r--r--statsd/stats.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/statsd/stats.hpp b/statsd/stats.hpp
index bcf85c5..4e1c18f 100644
--- a/statsd/stats.hpp
+++ b/statsd/stats.hpp
@@ -9,6 +9,13 @@
#include <list>
+/*!
+ * \file
+ */
+
+/*!
+ * \brief The Stats class A daemon that receives statistics on a socket and writes it to CSV.
+ */
class Stats {
boost::asio::io_service& io_service;
Server server;
@@ -27,8 +34,21 @@ class Stats {
void handle_message(std::list<Receiver>::iterator it, cmix_proto::CMixMessage message);
public:
+ /*!
+ * \brief Stats The statsd server to be created.
+ * \param io_service The io_service it will run under.
+ * \param lsettings The listen_settings that it will use.
+ */
Stats(boost::asio::io_service& io_service, ListenSettings lsettings);
+ /*!
+ * \brief run Stars the stats daemon, Does not return unless the io_service ends.
+ */
void run();
+
+ /*!
+ * \brief output Writes the data to file.
+ * \param file The filename to write it to.
+ */
void output(std::string file);
};