Skip to content

Commit 94cccae

Browse files
author
sezalchug
committed
capital variable
1 parent 21e4bcd commit 94cccae

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Service/HealthCheck/HealthCheckHelper.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private void UpdateDataSourceHealthCheckResults(ref ComprehensiveHealthCheckRepo
143143
{
144144
string query = Utilities.GetDatSourceQuery(runtimeConfig.DataSource.DatabaseType);
145145
(int, string?) response = ExecuteDatasourceQueryCheck(query, runtimeConfig.DataSource.ConnectionString);
146-
bool IsResponseTimeWithinThreshold = response.Item1 >= 0 && response.Item1 < runtimeConfig.DataSource.DatasourceThresholdMs;
146+
bool isResponseTimeWithinThreshold = response.Item1 >= 0 && response.Item1 < runtimeConfig.DataSource.DatasourceThresholdMs;
147147

148148
// Add DataSource Health Check Results
149149
ComprehensiveHealthCheckReport.Checks.Add(new HealthCheckResultEntry
@@ -154,9 +154,9 @@ private void UpdateDataSourceHealthCheckResults(ref ComprehensiveHealthCheckRepo
154154
ResponseTimeMs = response.Item1,
155155
ThresholdMs = runtimeConfig?.DataSource.DatasourceThresholdMs
156156
},
157-
Exception = !IsResponseTimeWithinThreshold ? TIME_EXCEEDED_ERROR_MESSAGE : response.Item2,
157+
Exception = !isResponseTimeWithinThreshold ? TIME_EXCEEDED_ERROR_MESSAGE : response.Item2,
158158
Tags = [HealthCheckConstants.DATASOURCE],
159-
Status = IsResponseTimeWithinThreshold ? HealthStatus.Healthy : HealthStatus.Unhealthy
159+
Status = isResponseTimeWithinThreshold ? HealthStatus.Healthy : HealthStatus.Unhealthy
160160
});
161161
}
162162
}
@@ -212,7 +212,7 @@ private void PopulateEntityHealth(ComprehensiveHealthCheckReport ComprehensiveHe
212212
ComprehensiveHealthCheckReport.Checks ??= new List<HealthCheckResultEntry>();
213213
string entityPath = entityValue.Rest.Path != null ? entityValue.Rest.Path.TrimStart('/') : entityKeyName;
214214
(int, string?) response = ExecuteRestEntityQuery(runtimeConfig.RestPath, entityPath, entityValue.EntityFirst);
215-
bool IsResponseTimeWithinThreshold = response.Item1 >= 0 && response.Item1 < entityValue.EntityThresholdMs;
215+
bool isResponseTimeWithinThreshold = response.Item1 >= 0 && response.Item1 < entityValue.EntityThresholdMs;
216216

217217
// Add Entity Health Check Results
218218
ComprehensiveHealthCheckReport.Checks.Add(new HealthCheckResultEntry
@@ -224,8 +224,8 @@ private void PopulateEntityHealth(ComprehensiveHealthCheckReport ComprehensiveHe
224224
ThresholdMs = entityValue.EntityThresholdMs
225225
},
226226
Tags = [HealthCheckConstants.REST, HealthCheckConstants.ENDPOINT],
227-
Exception = response.Item2 ?? (!IsResponseTimeWithinThreshold ? TIME_EXCEEDED_ERROR_MESSAGE : null),
228-
Status = IsResponseTimeWithinThreshold ? HealthStatus.Healthy : HealthStatus.Unhealthy
227+
Exception = response.Item2 ?? (!isResponseTimeWithinThreshold ? TIME_EXCEEDED_ERROR_MESSAGE : null),
228+
Status = isResponseTimeWithinThreshold ? HealthStatus.Healthy : HealthStatus.Unhealthy
229229
});
230230
}
231231

@@ -234,7 +234,7 @@ private void PopulateEntityHealth(ComprehensiveHealthCheckReport ComprehensiveHe
234234
ComprehensiveHealthCheckReport.Checks ??= new List<HealthCheckResultEntry>();
235235

236236
(int, string?) response = ExecuteGraphQLEntityQuery(runtimeConfig.GraphQLPath, entityValue, entityKeyName);
237-
bool IsResponseTimeWithinThreshold = response.Item1 >= 0 && response.Item1 < entityValue.EntityThresholdMs;
237+
bool isResponseTimeWithinThreshold = response.Item1 >= 0 && response.Item1 < entityValue.EntityThresholdMs;
238238

239239
ComprehensiveHealthCheckReport.Checks.Add(new HealthCheckResultEntry
240240
{
@@ -245,8 +245,8 @@ private void PopulateEntityHealth(ComprehensiveHealthCheckReport ComprehensiveHe
245245
ThresholdMs = entityValue.EntityThresholdMs
246246
},
247247
Tags = [HealthCheckConstants.GRAPHQL, HealthCheckConstants.ENDPOINT],
248-
Exception = response.Item2 ?? (!IsResponseTimeWithinThreshold ? TIME_EXCEEDED_ERROR_MESSAGE : null),
249-
Status = IsResponseTimeWithinThreshold ? HealthStatus.Healthy : HealthStatus.Unhealthy
248+
Exception = response.Item2 ?? (!isResponseTimeWithinThreshold ? TIME_EXCEEDED_ERROR_MESSAGE : null),
249+
Status = isResponseTimeWithinThreshold ? HealthStatus.Healthy : HealthStatus.Unhealthy
250250
});
251251
}
252252
}

0 commit comments

Comments
 (0)