You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$"Invalid JSON metrics content formatting. The metric value for '{keyValuePair.Name}' is not a valid numeric data type. Provided metric value is '{keyValuePair.Value}'",
63
+
ErrorReason.InvalidResults);
64
+
}
55
65
}
56
-
else
66
+
}
67
+
elseif(token.Type==JTokenType.Array)
68
+
{
69
+
/* Format 2: {
70
+
"metrics": [
71
+
{
72
+
"metricName": "metric1",
73
+
"metricValue": "value1",
74
+
"metricUnit": "unit1",
75
+
"metricMetadata": {
76
+
"metadata1": "m1",
77
+
"metadata2": "m2"
78
+
}
79
+
}
80
+
]
81
+
}*/
82
+
foreach(varmetricObjintoken.Children<JObject>())
57
83
{
58
-
thrownewWorkloadResultsException(
59
-
$"Invalid JSON metrics content formatting. The metric value for '{keyValuePair.Name}' is not a valid numeric data type.",
$"Invalid JSON metrics content formatting. 'metricValue' for '{metricName}' is not a valid numeric data type. Provided metric value is '{metricValueToken}'",
0 commit comments