@@ -143,7 +143,7 @@ private void UpdateDataSourceHealthCheckResults(ref ComprehensiveHealthCheckRepo
143
143
{
144
144
string query = Utilities . GetDatSourceQuery ( runtimeConfig . DataSource . DatabaseType ) ;
145
145
( 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 ;
147
147
148
148
// Add DataSource Health Check Results
149
149
ComprehensiveHealthCheckReport . Checks . Add ( new HealthCheckResultEntry
@@ -154,9 +154,9 @@ private void UpdateDataSourceHealthCheckResults(ref ComprehensiveHealthCheckRepo
154
154
ResponseTimeMs = response . Item1 ,
155
155
ThresholdMs = runtimeConfig ? . DataSource . DatasourceThresholdMs
156
156
} ,
157
- Exception = ! IsResponseTimeWithinThreshold ? TIME_EXCEEDED_ERROR_MESSAGE : response . Item2 ,
157
+ Exception = ! isResponseTimeWithinThreshold ? TIME_EXCEEDED_ERROR_MESSAGE : response . Item2 ,
158
158
Tags = [ HealthCheckConstants . DATASOURCE ] ,
159
- Status = IsResponseTimeWithinThreshold ? HealthStatus . Healthy : HealthStatus . Unhealthy
159
+ Status = isResponseTimeWithinThreshold ? HealthStatus . Healthy : HealthStatus . Unhealthy
160
160
} ) ;
161
161
}
162
162
}
@@ -212,7 +212,7 @@ private void PopulateEntityHealth(ComprehensiveHealthCheckReport ComprehensiveHe
212
212
ComprehensiveHealthCheckReport . Checks ??= new List < HealthCheckResultEntry > ( ) ;
213
213
string entityPath = entityValue . Rest . Path != null ? entityValue . Rest . Path . TrimStart ( '/' ) : entityKeyName ;
214
214
( 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 ;
216
216
217
217
// Add Entity Health Check Results
218
218
ComprehensiveHealthCheckReport . Checks . Add ( new HealthCheckResultEntry
@@ -224,8 +224,8 @@ private void PopulateEntityHealth(ComprehensiveHealthCheckReport ComprehensiveHe
224
224
ThresholdMs = entityValue . EntityThresholdMs
225
225
} ,
226
226
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
229
229
} ) ;
230
230
}
231
231
@@ -234,7 +234,7 @@ private void PopulateEntityHealth(ComprehensiveHealthCheckReport ComprehensiveHe
234
234
ComprehensiveHealthCheckReport . Checks ??= new List < HealthCheckResultEntry > ( ) ;
235
235
236
236
( 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 ;
238
238
239
239
ComprehensiveHealthCheckReport . Checks . Add ( new HealthCheckResultEntry
240
240
{
@@ -245,8 +245,8 @@ private void PopulateEntityHealth(ComprehensiveHealthCheckReport ComprehensiveHe
245
245
ThresholdMs = entityValue . EntityThresholdMs
246
246
} ,
247
247
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
250
250
} ) ;
251
251
}
252
252
}
0 commit comments