com.oath.micro.server.spring.metrics.MetricsPlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of micro-metrics Show documentation
Show all versions of micro-metrics Show documentation
Opinionated rest microservices
package com.oath.micro.server.spring.metrics;
import com.oath.micro.server.Plugin;
import com.oath.micro.server.spring.metrics.health.HealthCheckRunner;
import com.oath.micro.server.spring.metrics.health.HealthResource;
import cyclops.reactive.collections.mutable.SetX;
import java.util.Set;
/**
*
* Collections of Spring configuration classes (Classes annotated with @Configuration)
* that configure various useful pieces of functionality - such as property file loading,
* datasources, scheduling etc
*
* @author johnmcclean
*
*/
public class MetricsPlugin implements Plugin {
@Override
public Set springClasses() {
return SetX.of(CodahaleMetricsConfigurer.class, HealthCheckRunner.class, HealthResource.class);
}
}