public final class MetricBuildItem
extends io.quarkus.builder.item.MultiBuildItem
| Modifier and Type | Class and Description |
|---|---|
static class |
MetricBuildItem.Builder |
| Constructor and Description |
|---|
MetricBuildItem(org.eclipse.microprofile.metrics.Metadata metadata,
boolean enabled,
String configRootName,
org.eclipse.microprofile.metrics.Tag... tags)
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)
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)
Create a metric build item from the specified metadata, tags, and a callable.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getConfigRootName() |
Object |
getImplementor() |
org.eclipse.microprofile.metrics.Metadata |
getMetadata() |
org.eclipse.microprofile.metrics.MetricRegistry.Type |
getRegistryType() |
org.eclipse.microprofile.metrics.Tag[] |
getTags() |
boolean |
isEnabled() |
public MetricBuildItem(org.eclipse.microprofile.metrics.Metadata metadata,
boolean enabled,
String configRootName,
org.eclipse.microprofile.metrics.Tag... tags)
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 @ConfigRoot
annotation.public MetricBuildItem(org.eclipse.microprofile.metrics.Metadata metadata,
Object implementor,
boolean enabled,
String configRootName,
org.eclipse.microprofile.metrics.Tag... tags)
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 the org.eclipse.microprofile.metrics package).
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 @ConfigRoot
annotation.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)
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 the org.eclipse.microprofile.metrics package).
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 @ConfigRoot
annotation.registryType - Registry where the metric should be placedpublic org.eclipse.microprofile.metrics.Metadata getMetadata()
public org.eclipse.microprofile.metrics.Tag[] getTags()
public Object getImplementor()
public boolean isEnabled()
public String getConfigRootName()
public org.eclipse.microprofile.metrics.MetricRegistry.Type getRegistryType()
Copyright © 2020 JBoss by Red Hat. All rights reserved.