Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable Measurement Definition #71

Open
2 tasks done
jmoo900 opened this issue Jun 11, 2024 · 0 comments
Open
2 tasks done

Configurable Measurement Definition #71

jmoo900 opened this issue Jun 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jmoo900
Copy link

jmoo900 commented Jun 11, 2024

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.
@jmoo900 jmoo900 added the enhancement New feature or request label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant