Description of problem:
We need to update some of the statistic values to look like integers instead of floats.
Example:
values-type : INTEGER
values-value-datum: 33658241024.0
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
[RHEVM shell (connected)]# show statistic --host-identifier puma32
id : 7816602b-c05c-3db7-a4da-3769f7ad8896
name : memory.total
description : Total memory
host-id : d3560912-f2ad-11e1-8f5f-001a4a169798
type : GAUGE
unit : BYTES
values-type : INTEGER
values-value-datum: 33658241024.0
The RESTAPI returns the values of these statistics correctly, as integers, it is the Python SDK that converts this to float. The CLI then renders the float with the default rendering format in Python.
Comment 3Michael Pasternak
2014-04-17 08:00:03 UTC
(In reply to Juan Hernández from comment #2)
> The RESTAPI returns the values of these statistics correctly, as integers,
> it is the Python SDK that converts this to float. The CLI then renders the
> float with the default rendering format in Python.
the thing is that in rest-api schema datum defined as 'xs:decimal' and python
converts it to 'float' (to get maximum precision),
if fix will be in the python-sdk, it should be for datum only and 'generic' by casting statistics.value-datum to type defined in statistics.values-type