Class MetricBuildItem
- java.lang.Object
-
- io.quarkus.builder.item.BuildItem
-
- io.quarkus.builder.item.MultiBuildItem
-
- io.quarkus.smallrye.metrics.deployment.spi.MetricBuildItem
-
@Deprecated public final class MetricBuildItem extends io.quarkus.builder.item.MultiBuildItem
Deprecated.Build item that is picked up by the SmallRye Metrics extension to register metrics required by other extensions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetricBuildItem.BuilderDeprecated.
-
Constructor Summary
Constructors Constructor Description MetricBuildItem(org.eclipse.microprofile.metrics.Metadata metadata, boolean enabled, String configRootName, org.eclipse.microprofile.metrics.Tag... tags)Deprecated.Create a metric build item from the specified metadata and tags.MetricBuildItem(org.eclipse.microprofile.metrics.Metadata metadata, Object implementor, boolean enabled, String configRootName, org.eclipse.microprofile.metrics.MetricRegistry.Type registryType, org.eclipse.microprofile.metrics.Tag... tags)Deprecated.Create a metric build item from the specified metadata, tags, a callable, and scope.MetricBuildItem(org.eclipse.microprofile.metrics.Metadata metadata, Object implementor, boolean enabled, String configRootName, org.eclipse.microprofile.metrics.Tag... tags)Deprecated.Create a metric build item from the specified metadata, tags, and a callable.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetConfigRootName()Deprecated.ObjectgetImplementor()Deprecated.org.eclipse.microprofile.metrics.MetadatagetMetadata()Deprecated.org.eclipse.microprofile.metrics.MetricRegistry.TypegetRegistryType()Deprecated.org.eclipse.microprofile.metrics.Tag[]getTags()Deprecated.booleanisEnabled()Deprecated.
-
-
-
Constructor Detail
-
MetricBuildItem
public MetricBuildItem(org.eclipse.microprofile.metrics.Metadata metadata, boolean enabled, String configRootName, org.eclipse.microprofile.metrics.Tag... tags)Deprecated.Create a metric build item from the specified metadata and tags. Such metric will be picked up by the Metrics extension and registered in the VENDOR registry. This constructor is applicable to all metric types except gauges.- Parameters:
metadata- The metadata that should be applied to the registered metricenabled- Whether this metric is enabledtags- The tags that will be applied to this metricconfigRootName- the name of the root configuration of the extension as defined by the@ConfigRootannotation.
-
MetricBuildItem
public MetricBuildItem(org.eclipse.microprofile.metrics.Metadata metadata, Object implementor, boolean enabled, String configRootName, org.eclipse.microprofile.metrics.Tag... tags)Deprecated.Create a metric build item from the specified metadata, tags, and a callable. Such metric will be picked up by the Metrics extension and registered in the VENDOR registry.- Parameters:
metadata- The metadata that should be applied to the registered metricimplementor- The object that implements the metric. It must be an instance of the appropriate metric class (from theorg.eclipse.microprofile.metricspackage). This is required for gauges and optional for all other metric types.enabled- Whether this metric is enabledtags- The tags that will be applied to this metricconfigRootName- the name of the root configuration of the extension as defined by the@ConfigRootannotation.
-
MetricBuildItem
public MetricBuildItem(org.eclipse.microprofile.metrics.Metadata metadata, Object implementor, boolean enabled, String configRootName, org.eclipse.microprofile.metrics.MetricRegistry.Type registryType, org.eclipse.microprofile.metrics.Tag... tags)Deprecated.Create a metric build item from the specified metadata, tags, a callable, and scope. Such metric will be picked up by the Metrics extension and registered in the registry for the desired scope.- Parameters:
metadata- The metadata that should be applied to the registered metricimplementor- The object that implements the metric. It must be an instance of the appropriate metric class (from theorg.eclipse.microprofile.metricspackage). This is required for gauges and optional for all other metric types.enabled- Whether this metric is enabledtags- The tags that will be applied to this metricconfigRootName- the name of the root configuration of the extension as defined by the@ConfigRootannotation.registryType- Registry where the metric should be placed
-
-
Method Detail
-
getMetadata
public org.eclipse.microprofile.metrics.Metadata getMetadata()
Deprecated.
-
getTags
public org.eclipse.microprofile.metrics.Tag[] getTags()
Deprecated.
-
getImplementor
public Object getImplementor()
Deprecated.
-
isEnabled
public boolean isEnabled()
Deprecated.
-
getConfigRootName
public String getConfigRootName()
Deprecated.
-
getRegistryType
public org.eclipse.microprofile.metrics.MetricRegistry.Type getRegistryType()
Deprecated.
-
-