Interface ModuleMetricEntityInterface
- All Known Implementing Classes:
BasicClientStats.BasicClientMetricEntity,BasicConsumerStats.BasicConsumerMetricEntity,ClientMetricEntity,ClusterMetricEntity,ControllerMetricEntity,FastClientMetricEntity,RetryManagerMetricEntity,RouterMetricEntity,RoutingMetricEntity
public interface ModuleMetricEntityInterface
Every venice Module that defines its set of
MetricEntity should implement this interface.-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<MetricEntity>getUniqueMetricEntities(Class<? extends ModuleMetricEntityInterface>... enumClasses) Get all the uniqueMetricEntityfrom the provided enum classes based on the metric name.
-
Method Details
-
getMetricEntity
MetricEntity getMetricEntity() -
getUniqueMetricEntities
static Collection<MetricEntity> getUniqueMetricEntities(Class<? extends ModuleMetricEntityInterface>... enumClasses) Get all the uniqueMetricEntityfrom the provided enum classes based on the metric name. This will also check if there are multiple metric entities with the same name across the provided enum classes with different metric types and throw.
-