X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=README.md;h=7a0cccc04ecf4a162c8a6b73d0c9c194181f3370;hb=f22b458846a20a4a9fcafb49e3195ab44a16840e;hp=3f91461bd96c556ca676f53e1c19acfb67b50286;hpb=2ca021a2a78f26d29805d4290bc4185e39d59eab;p=ric-plt%2Fxapp-frame.git diff --git a/README.md b/README.md index 3f91461..7a0cccc 100755 --- a/README.md +++ b/README.md @@ -169,6 +169,24 @@ Congratulations! You've just built your first **xapp** application. Resource.InjectQueryRoute("/ric/v1/user", handler, "GET", "foo", "bar", "id", "mykey") ``` +* Metrics: registering couple of counters + ``` + metrics := []xapp.CounterOpts{ + {Name: "RICIndicationsRx", Help: "The total number of RIC inidcation events received"}, + {Name: "RICExampleMessageRx", Help: "The total number of RIC example messages received"}, + } + xapp.Metric.RegisterCounterGroup(metrics, "MyXApp") + + // Use curl-command to get metrics + curl http://localhost:8080/ric/v1/metrics + ``` + +## Running unit tests + Unit tests of xApp-framework can be run as following: + ``` + make test + ``` + ## Documentation ## Community