use of com.thinkbiganalytics.metadata.sla.api.ServiceLevelAgreementMetric in project kylo by Teradata.
the class ServiceLevelAgreementMetricTransformer method discoverSlaMetrics.
public List<ServiceLevelAgreementRule> discoverSlaMetrics() {
List<ServiceLevelAgreementRule> rules = new ArrayList<>();
Set<Class<?>> metrics = ReflectionPolicyAnnotationDiscoverer.getTypesAnnotatedWith(ServiceLevelAgreementMetric.class);
for (Class c : metrics) {
List<FieldRuleProperty> properties = getUiProperties(c);
ServiceLevelAgreementMetric policy = (ServiceLevelAgreementMetric) c.getAnnotation(ServiceLevelAgreementMetric.class);
rules.add(buildUiModel(policy, c, properties));
}
return rules;
}
Aggregations