增加设备唯一标记上报参数

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2022-03-01 17:06:08 +08:00
parent fca18aedf3
commit e857f96694

View File

@@ -65,10 +65,13 @@ public class ApmCrashReportProvider implements ITestCrashReportProvider {
HashMap<String, String> dimension = new HashMap<>();
//维度值
dimension.put("Devices_SN", MoGoAiCloudClientConfig.getInstance().getSn());
dimension.put("Devices_DeviceId", DeviceIdUtils.getDeviceId(context));
dimension.put("Devices_ID", DeviceIdUtils.getWidevineID(context));
dimension.put("Devices_ID_MD5", DeviceIdUtils.getWidevineIDWithMd5(context));
HashMap<String, Double> metric = new HashMap<>();
//指标值
metric.put("Devices_ID_metric", (double) 100);
//metric.put("Devices_ID_metric", (double) 100);
ApmInsightAgent.monitorEvent("Devices_ID_EVENT", dimension, metric);
}