CF monitoring fixes

This commit is contained in:
ViacheslavKlimov 2025-05-12 12:58:33 +03:00
parent 602d60281c
commit fd66c5f177
2 changed files with 2 additions and 5 deletions

View File

@ -19,6 +19,5 @@ public class MonitoredServiceKey {
public static final String GENERAL = "Monitoring";
public static final String EDQS = "*EDQS*";
public static final String CF = "*CF*";
}

View File

@ -117,11 +117,9 @@ public abstract class BaseHealthChecker<C extends MonitoringConfig, T extends Mo
String cfTestValue = testValue + "-cf";
String actualCfValue = latest.get(TEST_CF_TELEMETRY_KEY);
if (actualCfValue == null) {
throw new ServiceFailureException(MonitoredServiceKey.CF, "No CF value arrived");
throw new ServiceFailureException(info, "No calculated field value arrived");
} else if (!cfTestValue.equals(actualCfValue)) {
throw new ServiceFailureException(MonitoredServiceKey.CF, "Was expecting CF value " + cfTestValue + " but got " + actualCfValue);
} else {
reporter.serviceIsOk(MonitoredServiceKey.CF);
throw new ServiceFailureException(info, "Was expecting calculated field value " + cfTestValue + " but got " + actualCfValue);
}
}
reporter.reportLatency(Latencies.wsUpdate(getKey()), stopWatch.getTime());