Class MetricEntity
java.lang.Object
com.linkedin.venice.stats.metrics.MetricEntity
Metric entity class to define a metric with all its properties
-
Constructor Summary
ConstructorsConstructorDescriptionMetricEntity(String metricName, MetricType metricType, MetricUnit unit, String description, Set<VeniceMetricsDimensions> dimensionsList) -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricEntitycreateWithNoDimensions(String metricName, MetricType metricType, MetricUnit unit, String description) Factory method for metrics without dimensions.static MetricEntitycreateWithNoDimensions(String metricName, MetricType metricType, MetricUnit unit, String description, String customMetricPrefix) Factory method for metrics without dimensions that need a custom metric prefix, e.g.getUnit()
-
Constructor Details
-
MetricEntity
public MetricEntity(@Nonnull String metricName, @Nonnull MetricType metricType, @Nonnull MetricUnit unit, @Nonnull String description, @Nonnull Set<VeniceMetricsDimensions> dimensionsList)
-
-
Method Details
-
getMetricName
-
getMetricType
-
getUnit
-
getDescription
-
getDimensionsList
-
getCustomMetricPrefix
-
createWithNoDimensions
public static MetricEntity createWithNoDimensions(@Nonnull String metricName, @Nonnull MetricType metricType, @Nonnull MetricUnit unit, @Nonnull String description) Factory method for metrics without dimensions. These metrics should only be used withMetricEntityStateBase. -
createWithNoDimensions
public static MetricEntity createWithNoDimensions(@Nonnull String metricName, @Nonnull MetricType metricType, @Nonnull MetricUnit unit, @Nonnull String description, @Nonnull String customMetricPrefix) Factory method for metrics without dimensions that need a custom metric prefix, e.g.VeniceOpenTelemetryMetricsRepository.CommonMetricsEntity. These metrics should only be used withMetricEntityStateBase.
-