0

我有一个将数据推送到 IoT 中心的应用程序,该应用程序用作 TSI 的数据源。下面是一个示例消息:

{
    "EnqueuedTimeUtc": "2021-06-17T22:00:47.2170000Z",
    "Properties": {},
    "SystemProperties": {
        "connectionDeviceId": "Device1",
        "connectionAuthMethod": "{\"scope\":\"device\",\"type\":\"sas\",\"issuer\":\"iothub\",\"acceptingIpFilterRule\":null}",
        "connectionDeviceGenerationId": "637425408342887985",
        "contentType": "application/json",
        "contentEncoding": "utf-8",
        "enqueuedTime": "2021-06-17T22:00:47.2170000Z"
    },
    "Body": {
        "topic": {
            "namespace": "spBv1.0",
            "edgeNodeDescriptor": "Routed Group/E2",
            "groupId": "Routed Group",
            "edgeNodeId": "E2",
            "deviceId": "D2",
            "type": "DBIRTH"
        },
        "payload": {
            "timestamp": "2021-06-17T22:00:47.082Z",
            "metrics": [{
                "name": "Ramp1",
                "timestamp": "2021-06-17T22:00:47.082Z",
                "dataType": "Int32",
                "metaData": {},
                "properties": {
                    "Quality": {
                        "type": "Int32",
                        "value": 192
                    },
                    "My Property": {
                        "type": "String",
                        "value": "{\"\":\"\"}"
                    }
                },
                "value": 77
            }],
            "seq": 1
        }
    }
}

我发现文档显示支持我的“指标”数组,如下所示: https ://docs.microsoft.com/en-us/azure/time-series-insights/concepts-json-flattening-escaping-rules

通过这条消息,我可以看到“Ramp1”出现在 TSI 中,其值和时间戳符合预期。但是,每个指标下的“属性”都不会显示。在这个例子中是“质量”和“我的财产”。有没有办法将这些数据与“Ramp1”关联到 TSI 中?

4

0 回答 0