Skip to content

Configurable Measurement Definition #71

@jmoo900

Description

@jmoo900

Is this feature or enhancement request related to a problem?

  • Yes

Feature/Enhancement Description

Would be nice if there was some configurability in terms of how measurements are sent in. Cumulocity charges based on consumption metrics which include the number of Measurements, Alarms and Events are sent in from a device. For instance, lets say we configure 20 tags to be sent to the Cumulocity platform. The way that the agent currently runs, it would create 20 measurements each loop that would be sent in like:

{ "time": xxxxx, "type": "xxxxx", "Temperature": { "T": { "value": ##, "unit": "xxxx" } } }

This may be how we want to send them in especially if the values may be changing independently of other tags that we have configured to send. But what if all 20 measurements are sent in with the same timestamp and are all being sent at the same time.

Feature/Enhancement Alternatives

The option to send data as a single measurement could reduce consumption by 1/20th (as well as device class reduction leading to lower cost). I noticed you are currently using tag groups. Seems like an opportunity to use this grouping in order to format the measurements in this way:

{ "time": xxxxx, "type": "xxxxx", "Tag_Group": { "Temperature": { "value": ##, "unit": "xxxx" }, "Vibration": { "value": ##, "unit": "xxxx" }, "Humidity": { "value": ##, "unit": "xxxx" } } }

In addition to the reduction in the consumption, since the values are all part of the same measurement, the streaming analytics on the Cumulocity side will only trigger a single time instead of triggering 20 times for each measurement that is sent in with the current approach.

Additional Information

No response

Code of Conduct

  • I agree to abide by the Code of Conduct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions