There is a MicroProfile specification that you can read if you would like to assert the payload.
Microprofile Metrics Project https://github.com/eclipse/microprofile-metrics/ Microprofile Metrics Specification https://github.com/eclipse/microprofile-metrics/releases/download/1.1.1/metrics_spec-1.1.1.html Also, you can check the Technology Compatibility Kit (TCK), which does a lot of tests to assert the payload. https://github.com/apache/tomee/tree/master/tck/microprofile-tck/metrics To execute the TCK go to the folder I pasted* tck/microprofile-tck-metrics *and execute: *mvn clean install* If it builds successfully it means the payload is correct. The TCK should be reliable to see if we broke something today :) On Thu, Nov 22, 2018 at 2:20 PM dev <d...@ferdi.id> wrote: > Hi Ivan,What i meant was how do I know what the correct output is.I did > use Postman, that was how i got that long JSON. My problem now, how can I > know the supposed output of the feature I'm working on? In the test, the > output has to be asserted, so, I'm going to need that for assertion > needs. Is there a JSR to read related to this annotation? I mean, i know > there is, that's the spec itself, but I've never read JSR either, so.Von > meinem Samsung Galaxy Smartphone gesendet. > -------- Ursprüngliche Nachricht --------Von: Ivan Junckes Filho < > ivanjunc...@gmail.com> Datum: 23.11.18 00:06 (GMT+08:00) An: > dev@tomee.apache.org Betreff: Re: Just Joined - Introduction Hi Ferdi, > nice to see you are already working on it.If you use a tool like *curl < > https://curl.haxx.se/>* you can execute: curl -X > OPTIONShttp://localhost:8080/mp-metrics-metered/metrics/application/<metric-name>Replace > <metric-name> with the name you set for @Metered.For GET would be: curl -X > GET > http://localhost:8080/mp-metrics-metered/metrics/application/<metric-name>*curl* > is just a tool, you could use *Postman <https://www.getpostman.com/>*if > you like too.The link I added to the ticket is a "Getting Started with > MicroProfileMetrics" tutorial / blog post, just to help you understand how > it works.So, not specifically related to the task itself. It was more to > give you anoverview of the specification itself.Feel free to share a > branch, or a Working In Progress PR if you would likewith more > questions.Hope it helps!