Azure / azure-iot-explorer

Cross-platform UI for interacting with devices attached to Azure IoT Hub. This tool is meant for learning and testing, not for production environment.
MIT License
224 stars 73 forks source link

[Feature request] display "properties": { "system": {} } in Telemetry monitoring. #539

Closed tahirai-outlook closed 2 years ago

tahirai-outlook commented 2 years ago

Telemetry monitoring displays properties IoTHubMessage_SetProperty https://docs.microsoft.com/ja-jp/azure/iot-hub/iot-c-sdk-ref/iothub-message-h/iothubmessage-setproperty = az iot hub monitor-events --properties app

but doesn't display properties - system like IoTHubMessage_SetContentEncodingSystemProperty https://docs.microsoft.com/ja-jp/azure/iot-hub/iot-c-sdk-ref/iothub-message-h/iothubmessage-setcontentencodingsystemproperty IoTHubMessage_SetContentTypeSystemProperty https://docs.microsoft.com/ja-jp/azure/iot-hub/iot-c-sdk-ref/iothub-message-h/iothubmessage-setcontenttypesystemproperty = az iot hub monitor-events --properties sys

"show system properties" check box works like az iot hub monitor-events --properties annon

could you display like below? az iot hub monitor-events --properties all

az command; az

iot explorer: iotexplorer

YingXue commented 2 years ago

Hi @tahirai-outlook I'd like to get some clarification of what the feature request is with you.

Explorer and CLI are using different tech. We use Azure Event Hub's official SDK, and show the raw data as is on the UI without any transformation. We did so to be transparent, because other than CLI, others can also route their event hub messages to other places, so the less customization we do, we believe it's better for our users.

After a careful investigation, we decided to close this issue, as it is a design choice that we carefully made. Please let us know if you have any other questions, and below is the raw data we receive from Event hub's SDK as an exmaple: { [1] body: { [1] deviceId: 'myFirstDevice', [1] windSpeed: 11.812903773536846, [1] temperature: 22.623103938757097, [1] humidity: 66.02566832678929 [1] }, [1] enqueuedTime: 'Tue Aug 30 2022 11:24:18 GMT-0700 (Pacific Daylight Time)', [1] properties: { temperatureAlert: 'false' }, [1] systemProperties: { [1] 'iothub-connection-device-id': 'testPnp', [1] 'iothub-connection-auth-method': '{"scope":"device","type":"sas","issuer":"iothub","acceptingIpFilterRule":null}', [1] 'iothub-connection-auth-generation-id': '637946490699050368', [1] 'iothub-enqueuedtime': 1661883858324, [1] 'iothub-message-source': 'Telemetry', [1] 'x-opt-sequence-number': 9723, [1] 'x-opt-offset': '77311901584', [1] 'x-opt-enqueued-time': 1661883858370 [1] } [1] }