-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a output writer for open-falcon agent. #670
base: master
Are you sure you want to change the base?
Conversation
✅ Build jmxtrans 177 completed (commit 6abb40e9c0 by @hsqlu) |
|
||
String json = writer.toString(); | ||
|
||
assertThatJson(json).isArray().ofLength(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, check the content of the JSON: expected fields and their values...
Test with different result value types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I‘ve added some more test assertions
@gquintana I've added some more test cases, please take a review. Thx |
@gehel Should this writer be placed in its own Maven module? |
@gquintana: Maven modules are used mainly to manage dependencies. So that if someone wants a version of jmxtrans that is < 20Mb, it is possible to do. Since this OutputWriter does not add any dependency that isn't already in output-core, I'm fine with having it there. |
I had created a pr #440 but didn't done it. As it was coded on master branch so I made this pr sepeartely.