Removed dependency to TriggerManager
introduces Messanger class which allows to send messages directly to
subscribed targets, which allows to break dependencies between classes.
Testes:
- All unit tests are passing
- Links are correctly updated
- Report is correctly updated by Trigger Action
Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
Change-Id: I32d3aaba22f9ec07e611f53fe553bd27e1c04c6d
diff --git a/src/interfaces/report_factory.hpp b/src/interfaces/report_factory.hpp
index f5a1c5b..6a255a4 100644
--- a/src/interfaces/report_factory.hpp
+++ b/src/interfaces/report_factory.hpp
@@ -26,14 +26,15 @@
convertMetricParams(boost::asio::yield_context& yield,
const ReadingParameters& metricParams) const = 0;
- virtual std::unique_ptr<interfaces::Report> make(
- const std::string& id, const std::string& name,
- const ReportingType reportingType,
- const std::vector<ReportAction>& reportActions, Milliseconds period,
- uint64_t appendLimit, const ReportUpdates reportUpdates,
- ReportManager& reportManager, JsonStorage& reportStorage,
- std::vector<LabeledMetricParameters> labeledMetricParams, bool enabled,
- const std::vector<std::string>& triggerIds) const = 0;
+ virtual std::unique_ptr<interfaces::Report>
+ make(const std::string& id, const std::string& name,
+ const ReportingType reportingType,
+ const std::vector<ReportAction>& reportActions,
+ Milliseconds period, uint64_t appendLimit,
+ const ReportUpdates reportUpdates, ReportManager& reportManager,
+ JsonStorage& reportStorage,
+ std::vector<LabeledMetricParameters> labeledMetricParams,
+ bool enabled) const = 0;
};
} // namespace interfaces