This repository has been archived by the owner on Jan 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCommandLineOptions.cs
79 lines (57 loc) · 2.06 KB
/
CommandLineOptions.cs
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
using System.Collections.Generic;
using System.Text.Json.Serialization;
public class CommandLineOptions
{
[JsonPropertyName("instances")]
public List<SQLServerInstance> Instances { get; set; } = new List<SQLServerInstance>();
[JsonPropertyName("port")]
public int Port { get; set; }
[JsonPropertyName("instanceTotalTimeout")]
public int InstanceTotalTimeout { get; set; }
[JsonPropertyName("waitStats")]
public WaitStats WaitStats { get; set; } = new WaitStats();
[JsonPropertyName("performanceCounters")]
public PerformanceCounters PerformanceCounters { get; set; } = new PerformanceCounters();
[JsonPropertyName("customCounters")]
public CustomCounters[] CustomCounters { get; set; } = new CustomCounters[0];
}
public class PerformanceCounters
{
[JsonPropertyName("templateFiles")]
public string[] TemplateFiles { get; set; } = new string[0];
}
public class SQLServerInstance
{
[JsonPropertyName("connectionString")]
public string ConnectionString { get; set; } = string.Empty;
}
public class WaitStats
{
[JsonPropertyName("templateFiles")]
public string[] TemplateFiles { get; set; } = new string[0];
}
public class CustomCounters
{
[JsonPropertyName("customCounter")]
public CustomCounterConfiguration CustomCounter { get; set; } = new CustomCounterConfiguration();
}
public class CustomCounterConfiguration
{
[JsonPropertyName("tsql")]
public string TSQL { get; set; } = string.Empty;
[JsonPropertyName("attributes")]
public string[] Attributes { get; set; } = new string[0];
[JsonPropertyName("values")]
public CustomCounterValue[] Values { get; set; } = new CustomCounterValue[0];
}
public class CustomCounterValue
{
[JsonPropertyName("name")]
public string Name { get; set; } = string.Empty;
[JsonPropertyName("type")]
public string CounterType { get; set; } = string.Empty;
[JsonPropertyName("help_text")]
public string HelpText { get; set; } = string.Empty;
[JsonPropertyName("value")]
public string Value { get; set; } = string.Empty;
}