如何将来自多个具有不同时间戳属性的 Azure 物联网设备的数据导入同一个 Azure 时序洞察环境?

How to bring data from multiple Azure IoT devices with different timestamp properties into same Azure Time Series Insights environment?

我有多个 Azure IoT 设备向单个 IoT 中心发送遥测消息。 每个设备都有自己的时间戳 属性 名称。我怎样才能让所有这些设备的数据进入同一个 TSI 环境?

我尝试为同一个 IoT 中心创建多个事件源,但时间戳不同 属性。这使得一次只有一个事件源的时间戳作为 $ts 但是我如何查询特定设备的相应时间序列数据?

Timeseries Insights 要求传入消息具有相同的架构。

您可以做的是,确保在将传入消息提取到 Timeseries Insights 之前将它们转换为规范数据格式。

我的想法是您有一个 Azure Functions,它侦听标准 IoT 中心端点,并处理进入 IoT 中心的所有消息。然后该函数确保将消息转换为通用模型,并将它们放在 EventHub 上。

EventHub 就是 Timeseries Insights 的事件源。