Merge pull request #1 from opengoofy/develop

Refactored message notification annotations and naming
pull/438/head
小马哥 2 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;
}
/**
* Get a singleton object by key.
*

@ -31,7 +31,7 @@ public class PrometheusMonitorCondition implements Condition {
@Override
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;
}
}

Loading…
Cancel
Save