X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=inline;f=doc%2Fsrc%2Fuser%2Fexample2.im;h=6ede4153e6c3377e876b13e96bb080b361b5b750;hb=refs%2Fchanges%2F53%2F5053%2F1;hp=bc1a9fc1495cea1d0563e792325da03431d8451a;hpb=5a9d7c67d1ec1e4410995eae4b50f929396935f6;p=ric-plt%2Fxapp-frame-cpp.git diff --git a/doc/src/user/example2.im b/doc/src/user/example2.im index bc1a9fc..6ede415 100644 --- a/doc/src/user/example2.im +++ b/doc/src/user/example2.im @@ -34,12 +34,18 @@ used, but the programme is &bold(not) thread safe; to keep this example as simple as possible, the counters are not locked when incremented. +&h2(Metrics Generation) +The example also illustrates how a metrics object instance can be created +and used to send appliction metrics to the collector. +In this example the primary callback function will genereate metrics with +the receipt of each 1000th message. + &space &indent .** pull in the code from the example directory &ex_start .im j=start-example ../../../examples/xapp_t1.cpp &ex_end -&fig( Simple callback application. ) +&fig_cen( Simple callback application. ) &uindent &space