[Feature] Device Birth Extended Properties #3273
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds the support for
extendedProperties
in Birth message sent from the device.Related Issue
None
Description of the solution adopted
This PR adds mapping and resources to store the extendedProperties metric sent by Kura.
Those properties will be sent as an additional metric in the BIRTH message in a well defined JSON format.
Those properties are read and stored as an additional field of the Device entity to allow query easily those values.
Values from the device are not parsed (other than the value itself) nor there is logic on them because they can change from device to device.
Screenshots
Some screenshot of the new values in console.
Any side note on the changes made
Completed a bit the Javadocs of Device-related entities.