Merge pull request #1 from opengoofy/develop

Refactored message notification annotations and naming
pull/438/head
小马哥 3 years ago committed by GitHub
commit 62c9c5ad83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -43,6 +43,7 @@ public final class Singleton {
return result == null ? null : (T) result; return result == null ? null : (T) result;
} }
/** /**
* Get a singleton object by key. * Get a singleton object by key.
* *

@ -31,7 +31,7 @@ public class PrometheusMonitorCondition implements Condition {
@Override @Override
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) { public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
String collectType = context.getEnvironment().getProperty(BootstrapCoreProperties.PREFIX + "collect-type", ""); String collectType = context.getEnvironment().getProperty(BootstrapCoreProperties.PREFIX + ".collect-type", "");
return StringUtil.isNotEmpty(collectType) && collectType.contains(MonitorTypeEnum.PROMETHEUS.name().toLowerCase()) ? true : false; return StringUtil.isNotEmpty(collectType) && collectType.contains(MonitorTypeEnum.PROMETHEUS.name().toLowerCase()) ? true : false;
} }
} }

Loading…
Cancel
Save