<div dir="ltr">Hi everyone,<div><br></div><div><div style="font-size:12.8000001907349px">This year I am working on the Hawkular Android application as part of the Google Summer of Code 2015 program.</div></div><div><br></div><div>I’ve spent the last week on the application development and writing a script which will allow me to populate a Hawkular instance with sample data.</div><div><br></div><div>The application itself [1] at this point can use a custom server URL. After pressing a button you will see an OAuth dialog which will allow you to login using your Hawkular credentials. This step will automatically redirect you to the resource types screen. AeroGear did a great job with the authorization process — seems like all necessary headers are set without any additional cost from my side. Regarding the fun part — the application got a fancy theme in red and orange colors based on the official logo. The icon is there as well. You can take a look at some screenshots [2].</div><div><br></div><div>With the help from various Hawkular modules source code and useful links from Jiri Kremser I’ve created a gist with HTTPie [3] commands [4]. My goal was to populate a server from the ground up — from tenants to metric data. Unfortunately I’m having some issues with it.</div><div><br></div><div>⋅ First. I am able to create a tenant but if I try to create an environment on it — the response gives me 403 Forbidden. At the same time creating an environment for a tenant from &quot;/inventory/tenant&quot; is flawless. Maybe it is somehow related to metrics-inventory communication. Inventory has a single tenant, metrics can have multiple. I see no ability to set an active tenant for the inventory using the API. </div><div>⋅ Second. Seems like I’m adding data to metrics the wrong way. It is created without any issues, but I cannot see it from the query.</div><div><br></div><div>This week I would like work on those areas implementing rest of Inventory screens for the application and fixing and expanding the script to get something to display at the application :-) If someone has a real-world example of multiple resources, metrics and metrics-related data — it will be a great help.</div><div><br></div><div>Have a nice week!</div><div>Artur.</div><div><br></div><div>[1]: <a href="https://github.com/hawkular/android-client">https://github.com/hawkular/android-client</a></div><div>[2]: <a href="https://github.com/hawkular/android-client/pull/5">https://github.com/hawkular/android-client/pull/5</a></div><div>[3]: <a href="http://httpie.org/">http://httpie.org/</a></div><div>[4]: <a href="https://gist.github.com/ming13/e7ebab69028adaa7dea4">https://gist.github.com/ming13/e7ebab69028adaa7dea4</a></div></div>