23 using System.Collections.Generic;
26 namespace Ntp.Analyzer.Config.Table
34 ValueType = valueType;
35 LowerText = name.ToLower();
47 public static IEnumerable<Keyword> Keywords =
new List<Keyword>
85 new Keyword(
"PostgreSQL",
Symbol.KeywordDatabaseProviderPostgre),
114 new Keyword(
"PeerSummaryPage",
Symbol.KeywordPeerSummaryPage, typeof(
string)),
115 new Keyword(
"Include",
Symbol.KeywordInclude, typeof(
string)),
121 new Keyword(
"Address",
Symbol.KeywordAddress, typeof(
string)),
123 new Keyword(
"EnableSsl",
Symbol.KeywordEnableSsl, typeof(
bool)),
125 new Keyword(
"InitialRun",
Symbol.KeywordInitialRun, typeof(
bool)),
126 new Keyword(
"FixedRun",
Symbol.KeywordFixedRun, typeof(
bool)),
127 new Keyword(
"Frequency",
Symbol.KeywordFrequency, typeof(
int)),
131 new Keyword(
"ShowTimestamp",
Symbol.KeywordShowTimestamp, typeof(
bool)),
132 new Keyword(
"ShowSeverity",
Symbol.KeywordShowSeverity, typeof(
bool)),
133 new Keyword(
"TimeFormat",
Symbol.KeywordTimeFormat, typeof(
string)),
135 new Keyword(
"HostAddress",
Symbol.KeywordHostAddress, typeof(
string)),
136 new Keyword(
"FilePath",
Symbol.KeywordFilePath, typeof(
string)),
137 new Keyword(
"WebPath",
Symbol.KeywordWebPath, typeof(
string)),
138 new Keyword(
"Recipient",
Symbol.KeywordRecipient, typeof(
string)),
139 new Keyword(
"Subject",
Symbol.KeywordSubject, typeof(
string)),
142 new Keyword(
"PageTitle",
Symbol.KeywordPageTitle, typeof(
string)),
143 new Keyword(
"PoolMember",
Symbol.KeywordPoolMember, typeof(
bool)),
144 new Keyword(
"QueryDirect",
Symbol.KeywordQueryDirect, typeof(
bool)),
145 new Keyword(
"ServerID",
Symbol.KeywordServerId, typeof(
int)),
146 new Keyword(
"ContentTitle",
Symbol.KeywordContentTitle, typeof(
string)),
148 new Keyword(
"PeerPages",
Symbol.KeywordPeerPage, typeof(
string)),
149 new Keyword(
"GraphPage",
Symbol.KeywordGraphPage, typeof(
string)),
153 new Keyword(
"Timespan",
Symbol.KeywordTimespan, typeof(
int)),
154 new Keyword(
"FilterFactor",
Symbol.KeywordFilterFactor, typeof(
double)),
157 new Keyword(
"GFrequency",
Symbol.KeywordGraphFrequency, typeof(
double)),
158 new Keyword(
"Stability",
Symbol.KeywordGraphStability, typeof(
double)),
159 new Keyword(
"Balance",
Symbol.KeywordGraphBalance, typeof(
double)),
160 new Keyword(
"Delay",
Symbol.KeywordGraphDelay, typeof(
double)),
161 new Keyword(
"Received",
Symbol.KeywordGraphReceived, typeof(
double)),
162 new Keyword(
"Ignored",
Symbol.KeywordGraphIgnored, typeof(
double)),
163 new Keyword(
"Dropped",
Symbol.KeywordGraphDropped, typeof(
double)),
164 new Keyword(
"Sent",
Symbol.KeywordGraphSent, typeof(
double)),
165 new Keyword(
"NotSent",
Symbol.KeywordGraphNotSent, typeof(
double)),
166 new Keyword(
"AvgReceived",
Symbol.KeywordGraphAvgReceived, typeof(
double)),
167 new Keyword(
"AvgIgnored",
Symbol.KeywordGraphAvgIgnored, typeof(
double)),
168 new Keyword(
"AvgDropped",
Symbol.KeywordGraphAvgDropped, typeof(
double)),
169 new Keyword(
"AvgSent",
Symbol.KeywordGraphAvgSent, typeof(
double)),
170 new Keyword(
"AvgNotSent",
Symbol.KeywordGraphAvgNotSent, typeof(
double)),
171 new Keyword(
"PlotInterval",
Symbol.KeywordGraphPlotInterval, typeof(
double)),
172 new Keyword(
"PacketRate",
Symbol.KeywordGraphPacketRate, typeof(
double)),
174 new Keyword(
"LinkIndex",
Symbol.KeywordLinkIndex, typeof(
int)),
176 new Keyword(
"Directory",
Symbol.KeywordDirectory, typeof(
string)),
177 new Keyword(
"Caption",
Symbol.KeywordCaption, typeof(
string)),
179 new Keyword(
"Heartbeat",
Symbol.KeywordHeartbeat, typeof(
int)),
181 new Keyword(
"ExecUser",
Symbol.KeywordExecUser, typeof(
string)),
184 new Keyword(
"Dropdown",
Symbol.KeywordDropdown, typeof(
string)),
185 new Keyword(
"ConnectionString",
Symbol.KeywordConString, typeof(
string)),
186 new Keyword(
"CertificateFile",
Symbol.KeywordCertFile, typeof(
string)),
187 new Keyword(
"CertificatePassword",
Symbol.KeywordCertPass, typeof(
string)),
188 new Keyword(
"ConnectionTimeout",
Symbol.KeywordConnectionTimeout, typeof(
int)),
190 new Keyword(
"DatabaseName",
Symbol.KeywordDatabaseName, typeof(
string)),
191 new Keyword(
"DatabaseUser",
Symbol.KeywordDatabaseUser, typeof(
string)),
192 new Keyword(
"DatabasePass",
Symbol.KeywordDatabasePass, typeof(
string)),
193 new Keyword(
"SmtpHost",
Symbol.KeywordSmtpHost, typeof(
string)),
194 new Keyword(
"SmtpPort",
Symbol.KeywordSmtpPort, typeof(
int)),
195 new Keyword(
"SmtpUser",
Symbol.KeywordSmtpUser, typeof(
string)),
196 new Keyword(
"SmtpPass",
Symbol.KeywordSmtpPass, typeof(
string))
199 public string Name {
get; }
201 public Type ValueType {
get; }
203 public string LowerText {
get; }
218 return Keywords.FirstOrDefault(k => k.Symbol == symbol);
223 return LowerText.GetHashCode();
override int GetHashCode()
static Keyword Find(Symbol symbol)
Keyword(string name, Symbol symbol, Type valueType=null)
override bool Equals(object obj)