Skip to content

Commit 79894c7

Browse files
author
Aditya Abhishek
committed
nit
1 parent 968a66a commit 79894c7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/VirtualClient/VirtualClient.Actions/ScriptExecutor/JsonMetricsParser.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public JsonMetricsParser(string results, ILogger logger, EventContext eventConte
3939
/// Parses key metrics from the JSON based output log.
4040
/// </summary>
4141
public override IList<Metric> Parse()
42-
{
42+
{
4343
List<Metric> metrics = new List<Metric>();
4444

4545
try
@@ -66,8 +66,8 @@ public override IList<Metric> Parse()
6666
}
6767
else if (token.Type == JTokenType.Array)
6868
{
69-
/* Format 2: {
70-
"metrics": [
69+
/* Format 2:
70+
[
7171
{
7272
"metricName": "metric1",
7373
"metricValue": "value1",
@@ -78,7 +78,7 @@ public override IList<Metric> Parse()
7878
}
7979
}
8080
]
81-
}*/
81+
*/
8282
foreach (var metricObj in token.Children<JObject>())
8383
{
8484
string metricName = metricObj.Value<string>("metricName");
@@ -129,7 +129,7 @@ public override IList<Metric> Parse()
129129
{
130130
throw new WorkloadResultsException(
131131
$"Invalid JSON metrics content formatting. The metrics content must be in a valid JSON key/value pair format " +
132-
$"(e.g. {{ \"metric1\": 1234, \"metric2\": 987.65, \"metric3\": 32.0023481 }} ) or an array of metric objects.",
132+
$"(e.g. {{ \"metric1\": 1234, \"metric2\": 987.65, \"metric3\": 32.0023481 }} ) or an array of Json objects.",
133133
exc,
134134
ErrorReason.InvalidResults);
135135
}

0 commit comments

Comments
 (0)