diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-08-14 15:39:33 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-08-14 15:39:33 +0100 |
| commit | f3555ed48dcd8a12598888399f6f7bb6a670467d (patch) | |
| tree | c6353df8b2b10be5c145423897121aaf61762318 /src/lib/analytics.h | |
| parent | e32f443c7ad4a9e163e76648623de45bec2f4f84 (diff) | |
Basics of job analytics storage.
Diffstat (limited to 'src/lib/analytics.h')
| -rw-r--r-- | src/lib/analytics.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/analytics.h b/src/lib/analytics.h index fcb349e54..36519ea80 100644 --- a/src/lib/analytics.h +++ b/src/lib/analytics.h @@ -35,6 +35,7 @@ public: Event (cxml::ConstNodePtr node); void set (std::string k, std::string v); + std::string get (std::string k) const; void as_xml (xmlpp::Element* parent) const; std::string dump () const; @@ -61,8 +62,9 @@ public: private: int successful_dcp_encodes () const; - /** Mutex to protect _events */ + /** Mutex to protect _id and _events */ mutable boost::mutex _mutex; + std::string _id; std::list<Event> _events; static Analytics* _instance; static int const _current_version; |
