Skip to Main Content
Cumulocity IoT Feedback Portal
Status Future consideration
Created by Guest
Created on May 10, 2022

Apama measurements should support integer value similar to Cumulocity API

If Cumulocity API allows floats and integers for measurement values then Cumulocity Apama should support integers also.

Float is problematic when Cumulocity user expects integer values but get floats. 0 and 1 can represent false and true. 0.0 and 1.0 is confusing as Boolean representation.

It seems strange that built in real time processing has less options that Cumulocity API when creating measurements.


Cumulocity API allows integer https://cumulocity.com/api/10.11.0/#operation/postMeasurementCollectionResource


"value - The value of the individual measurement. The maximum precision for floating point numbers is 64-bit IEEE 754. For integers it's a 64-bit two's complement integer."

  • Attach files
  • Admin
    Rob Jones
    Reply
    |
    Mar 23, 2023

    Cumulocity IoT 10.17 has new capabilities in EPL to make it easier to cast between different data types.

    E.g.

    float f := 1.0;

    integer i:= <integer> f;

    This may make it easier to achieve what you are referring to?

    1 reply
  • Guest
    Reply
    |
    May 10, 2022

    Related support incident SI-468758