Class MetricBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.smallrye.metrics.deployment.spi.MetricBuildItem
Deprecated.
Build item that is picked up by the SmallRye Metrics extension to register metrics required by other extensions.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMetricBuildItem(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
Modifier and TypeMethodDescriptionDeprecated.Deprecated.org.eclipse.microprofile.metrics.MetadataDeprecated.org.eclipse.microprofile.metrics.MetricRegistry.TypeDeprecated.org.eclipse.microprofile.metrics.Tag[]getTags()Deprecated.booleanDeprecated.
-
Constructor Details
-
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 Details
-
getMetadata
public org.eclipse.microprofile.metrics.Metadata getMetadata()Deprecated. -
getTags
public org.eclipse.microprofile.metrics.Tag[] getTags()Deprecated. -
getImplementor
Deprecated. -
isEnabled
public boolean isEnabled()Deprecated. -
getConfigRootName
Deprecated. -
getRegistryType
public org.eclipse.microprofile.metrics.MetricRegistry.Type getRegistryType()Deprecated.
-