LOGGER.info("Initializing Discovery client.");
DiscoveryClient discoveryClient = DiscoveryManager.getInstance().getDiscoveryClient();
ConformityEurekaClient conformityEurekaClient = new BasicConformityEurekaClient(discoveryClient);
if (configuration().getBoolOrElse(
"simianarmy.conformity.rule.InstanceIsHealthyInEureka.enabled", false)) {
ruleEngine.addRule(new InstanceIsHealthyInEureka(conformityEurekaClient));
}
if (configuration().getBoolOrElse(
"simianarmy.conformity.rule.InstanceHasHealthCheckUrl.enabled", false)) {
ruleEngine.addRule(new InstanceHasHealthCheckUrl(conformityEurekaClient));
}