forked from Azure/azure-sdk-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBenchmarkResult.cs
More file actions
55 lines (45 loc) · 1.54 KB
/
BenchmarkResult.cs
File metadata and controls
55 lines (45 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
namespace Azure.Sdk.Tools.Cli.Benchmarks.Models;
/// <summary>
/// Result of running a benchmark scenario.
/// </summary>
public class BenchmarkResult
{
/// <summary>
/// Gets the name of the scenario that was executed.
/// </summary>
public required string ScenarioName { get; init; }
/// <summary>
/// Gets whether the benchmark passed.
/// </summary>
public bool Passed { get; init; }
/// <summary>
/// Gets the error message if the benchmark failed.
/// </summary>
public string? Error { get; init; }
/// <summary>
/// Gets the duration of the benchmark execution.
/// </summary>
public TimeSpan Duration { get; init; }
/// <summary>
/// Gets the git diff of changes made during the benchmark.
/// </summary>
public string? GitDiff { get; init; }
/// <summary>
/// Gets the tool calls made during execution.
/// </summary>
public IReadOnlyList<ToolCallRecord> ToolCalls { get; init; } = [];
/// <summary>
/// Gets the path to the workspace where the benchmark was executed.
/// </summary>
public string? WorkspacePath { get; init; }
/// <summary>
/// Gets whether the workspace was cleaned up after execution.
/// </summary>
public bool WorkspaceCleanedUp { get; init; }
/// <summary>
/// Gets the validation summary (null if no validators defined).
/// </summary>
public ValidationSummary? Validation { get; init; }
}