X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fmessaging%2Fmessenger.cpp;h=ede76d371e771496b35ed9b98915956b72a0b88a;hb=ef3620529c936a8790d6970c57198b4caee09c0d;hp=67d5e2d40f0c9f7193c0b1185999f9148821a405;hpb=6ef23e1d7f7f47ccab5be6ff1b68e5cfdda80ad2;p=ric-plt%2Fxapp-frame-cpp.git diff --git a/src/messaging/messenger.cpp b/src/messaging/messenger.cpp index 67d5e2d..ede76d3 100644 --- a/src/messaging/messenger.cpp +++ b/src/messaging/messenger.cpp @@ -44,6 +44,7 @@ #include "message.hpp" #include "messenger.hpp" #include "alarm.hpp" +#include "metrics.hpp" namespace xapp { @@ -200,6 +201,28 @@ std::unique_ptr xapp::Messenger::Alloc_alarm( ) { } +// ------------------ metrics support -------------------------------------------------- +std::unique_ptr xapp::Messenger::Alloc_metrics( ) { + std::shared_ptr m; + + m = Alloc_msg( 4096 ); + return std::unique_ptr( new xapp::Metrics( m ) ); +} + +std::unique_ptr xapp::Messenger::Alloc_metrics( std::string source ) { + std::shared_ptr m; + + m = Alloc_msg( 4096 ); + return std::unique_ptr( new xapp::Metrics( m, source ) ); +} + +std::unique_ptr xapp::Messenger::Alloc_metrics( std::string reporter, std::string source ) { + std::shared_ptr m; + + m = Alloc_msg( 4096 ); + return std::unique_ptr( new xapp::Metrics( m, reporter, source ) ); +} + // ------------------- listening support ----------------------------------------------- /*