Hello @RensGroen , Thanks for posting this question over this forum.
Below is the response from Microsoft's Time Series Insights Product Team. We hope this response helps with your initial query.
The previous API version is separate and orthogonal to the ingestion flattening rules. The preview API version will be retired at the end of Oct, and thus the syntax of
$event['sensors_sensor'].String
or$event.sensors_sensor.String
but NOT$event.[sensors_sensor].String
is accepted.But the API and the ingestion are two different trains/processes. Any environment made during Preview can (must) use the new API syntax. At some point, the Preview flattening rules will be retired, but there is no timeline currently. You'll have ample time to prepare.
If we do create a new TSI environment with the GA flattening algorithm we might be able to select the composite TS ID of
iothub-connection-device-id
andsensors.sensor
as shown in this example here rather than having to duplicate the time stamp.In fact, maybe the IoT Hub device ID does not need to be part of the TS ID at all, only the sensor name? It depends on how they want to query and analyze their tags.
We might be able to remove "unit" from the payload and instead store that data as metadata--an instance field that would be a one-time set-up for each tag, but then the message over the wire could be reduced.
Please let us know if you need further help in this matter.
Thank you,
Satish.