Implement NumericThreshold for Trigger

Implemented NumericThreshold for Trigger that allows to set
expected threshold value for collection of sensors and monitors
if this value is crossed. Implemented detection of direction
when threshold value is crossed. Added initial interface that
is used to commit an action when threshold value is crossed.
Moved Sensor Cache from Report Factory to Telemetry class, now
Sensor Cache is shared between Report Factory and Trigger Factory.
Moved fetching sensor from Dbus to seperate header to have single
implementation for factories.
Disabled tests that uses boost coroutine because of false positive
that is catched by address sanitizer.

Tested:
 - Passed unit tests
 - Built in yocto envrionment with success
 - Telemetry service started successfully in OpenBMC

Change-Id: I1ff7ab96174a27576786f0b9a71554fe1eeff436
Signed-off-by: Wludzik, Jozef <jozef.wludzik@intel.com>
diff --git a/src/telemetry.hpp b/src/telemetry.hpp
index 20749e4..8361936 100644
--- a/src/telemetry.hpp
+++ b/src/telemetry.hpp
@@ -17,17 +17,20 @@
   public:
     Telemetry(std::shared_ptr<sdbusplus::asio::connection> bus) :
         objServer(std::make_shared<sdbusplus::asio::object_server>(bus)),
-        reportManager(std::make_unique<ReportFactory>(bus, objServer),
-                      std::make_unique<PersistentJsonStorage>(
-                          interfaces::JsonStorage::DirectoryPath(
-                              "/var/lib/telemetry/Reports")),
-                      objServer),
-        triggerManager(std::make_unique<TriggerFactory>(bus, objServer),
-                       objServer)
+        reportManager(
+            std::make_unique<ReportFactory>(bus, objServer, sensorCache),
+            std::make_unique<PersistentJsonStorage>(
+                interfaces::JsonStorage::DirectoryPath(
+                    "/var/lib/telemetry/Reports")),
+            objServer),
+        triggerManager(
+            std::make_unique<TriggerFactory>(bus, objServer, sensorCache),
+            objServer)
     {}
 
   private:
     std::shared_ptr<sdbusplus::asio::object_server> objServer;
+    mutable SensorCache sensorCache;
     ReportManager reportManager;
     TriggerManager triggerManager;
 };