hawkular / hawkular-android-client

Apache License 2.0
10 stars 26 forks source link

Inventory Fixing part 4 #239

Closed pg301 closed 6 years ago

pg301 commented 6 years ago

@garg-anuj I need your help in debugging. When I try getting data for any type of metric, it shows me that the metric.getValue returns null. Please can you check this.

KeenWarrior commented 6 years ago

@pg301 looking into it

pg301 commented 6 years ago

@garg-anuj I think I debugged the error. I wasn't timestamping my start and end values while making the curl call and that was giving me empty buckets.

pg301 commented 6 years ago

@pilhuhn We need to update our API documentation. http://www.hawkular.org/docs/rest/rest-metrics.html#GET__availability__id__stats mentions that this API return array of data points, but we get this as response https://paste.ubuntu.com/25151988/

pg301 commented 6 years ago

@garg-anuj view value is not been written for some reason. https://github.com/pg301/hawkular-android-client/blob/6e2ee34d7c920a268969749d7dc4743fb18b7fd2/mobile/src/main/java/org/hawkular/client/android/fragment/MetricAvailabilityFragment.java#L279

This value is always null.

KeenWarrior commented 6 years ago

@pg301 progress in it is stuck?