Class GlobalMetricsConfiguration
- java.lang.Object
-
- org.infinispan.configuration.global.GlobalMetricsConfiguration
-
- All Implemented Interfaces:
BaseConfigurationInfo
,ConfigurationInfo
public class GlobalMetricsConfiguration extends Object implements ConfigurationInfo
Configuration for microprofile metrics. SeeGlobalMetricsConfigurationBuilder
.
-
-
Field Summary
Fields Modifier and Type Field Description static org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>
GAUGES
static org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>
HISTOGRAMS
static org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>
NAMES_AS_TAGS
static org.infinispan.commons.configuration.attributes.AttributeDefinition<String>
PREFIX
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.infinispan.commons.configuration.attributes.AttributeSet
attributes()
boolean
enabled()
Metrics are enabled if at least one of the metric types is enabled.boolean
equals(Object o)
boolean
gauges()
Are gauges enabled?org.infinispan.commons.configuration.elements.ElementDefinition<GlobalMetricsConfiguration>
getElementDefinition()
int
hashCode()
boolean
histograms()
Are histograms enabled?boolean
namesAsTags()
Put the cache manager and cache name in tags rather then include them in the metric name.String
prefix()
The global prefix to add to all metric names.String
toString()
-
Methods inherited from interface org.infinispan.commons.configuration.ConfigurationInfo
subElements
-
-
-
-
Field Detail
-
GAUGES
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> GAUGES
-
HISTOGRAMS
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> HISTOGRAMS
-
PREFIX
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<String> PREFIX
-
NAMES_AS_TAGS
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> NAMES_AS_TAGS
-
-
Method Detail
-
getElementDefinition
public org.infinispan.commons.configuration.elements.ElementDefinition<GlobalMetricsConfiguration> getElementDefinition()
- Specified by:
getElementDefinition
in interfaceBaseConfigurationInfo
- Returns:
- the
ElementDefinition
of the configuration.
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()
- Specified by:
attributes
in interfaceBaseConfigurationInfo
- Returns:
- the
AttributeSet
declared by the configuration.
-
enabled
public boolean enabled()
Metrics are enabled if at least one of the metric types is enabled. Seegauges()
,histograms()
.
-
gauges
public boolean gauges()
Are gauges enabled?
-
histograms
public boolean histograms()
Are histograms enabled?
-
prefix
public String prefix()
The global prefix to add to all metric names.
-
namesAsTags
public boolean namesAsTags()
Put the cache manager and cache name in tags rather then include them in the metric name.
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
toString
public String toString()
-
-