Add device type to telemetry (#186)
This commit is contained in:
Родитель
c273f34979
Коммит
c4ce77c9a7
|
@ -59,7 +59,7 @@ export class IoTHubMessageExplorer extends BaseExplorer {
|
|||
this._outputChannel.show();
|
||||
const deviceLabel = deviceItem ? `[${deviceItem.deviceId}]` : "all devices";
|
||||
this.outputLine(Constants.IoTHubMonitorLabel, `Start monitoring D2C message for ${deviceLabel} ...`);
|
||||
TelemetryClient.sendEvent(Constants.IoTHubAIStartMonitorEvent);
|
||||
TelemetryClient.sendEvent(Constants.IoTHubAIStartMonitorEvent, { deviceType: deviceItem ? deviceItem.contextValue : "" });
|
||||
this.startMonitor(Constants.IoTHubMonitorLabel, consumerGroup, deviceItem);
|
||||
} catch (e) {
|
||||
this.outputLine(Constants.IoTHubMonitorLabel, e);
|
||||
|
|
|
@ -289,7 +289,7 @@ export class Utility {
|
|||
return deviceItem;
|
||||
} else {
|
||||
if (eventName) {
|
||||
TelemetryClient.sendEvent(eventName, { entry: "contextMenu" });
|
||||
TelemetryClient.sendEvent(eventName, { entry: "contextMenu", deviceType: deviceItem.contextValue });
|
||||
}
|
||||
return deviceItem;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче