Class MetricAppBean
- java.lang.Object
-
- org.eclipse.microprofile.metrics.test.MetricAppBean
-
@ApplicationScoped public class MetricAppBean extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringNO_TAG_COUNTERstatic StringNO_TAG_GAUGEstatic StringNO_TAG_HISTOGRAMstatic StringNO_TAG_TIMERstatic StringSHARED_METRIC_NAMEstatic StringTAGGED_COUNTERstatic StringTAGGED_GAUGEstatic StringTAGGED_HISTOGRAMstatic StringTAGGED_TIMER
-
Constructor Summary
Constructors Constructor Description MetricAppBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcountMe()voidcountMeA()longcountMeB()voidcountMeMetricNameScopeA()voidcreatePromMetrics()We create a few metrics with names that are outside the characters that OpenMetrics allows which is [a-zA-Z0-9_]voidgaugeMe()longgaugeMeA()longgaugeMeB()longgaugeMeMetricNameScopeC()longgaugeMeTagged()longgaugeMeTaggedOne()longgaugeMeTaggedTwo()voidhistogramMe()voidtimeMe()voidtimeMeA()voidtimeMeMetricNameScopeB()
-
-
-
Field Detail
-
NO_TAG_COUNTER
public static final String NO_TAG_COUNTER
- See Also:
- Constant Field Values
-
TAGGED_COUNTER
public static final String TAGGED_COUNTER
- See Also:
- Constant Field Values
-
NO_TAG_HISTOGRAM
public static final String NO_TAG_HISTOGRAM
- See Also:
- Constant Field Values
-
TAGGED_HISTOGRAM
public static final String TAGGED_HISTOGRAM
- See Also:
- Constant Field Values
-
NO_TAG_TIMER
public static final String NO_TAG_TIMER
- See Also:
- Constant Field Values
-
TAGGED_TIMER
public static final String TAGGED_TIMER
- See Also:
- Constant Field Values
-
NO_TAG_GAUGE
public static final String NO_TAG_GAUGE
- See Also:
- Constant Field Values
-
TAGGED_GAUGE
public static final String TAGGED_GAUGE
- See Also:
- Constant Field Values
-
SHARED_METRIC_NAME
public static final String SHARED_METRIC_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
countMeMetricNameScopeA
@Counted(name="sharedMetricName", absolute=true, scope="customScopeA") public void countMeMetricNameScopeA()
-
timeMeMetricNameScopeB
@Timed(name="sharedMetricName", absolute=true, scope="customScopeB") public void timeMeMetricNameScopeB()
-
gaugeMeMetricNameScopeC
public long gaugeMeMetricNameScopeC()
-
gaugeMeTagged
public long gaugeMeTagged()
-
gaugeMeTaggedOne
public long gaugeMeTaggedOne()
-
gaugeMeTaggedTwo
public long gaugeMeTaggedTwo()
-
countMe
public void countMe()
-
countMeA
@Counted(name="metricTest.test1.countMeA", absolute=true, description="count-me-a-description") public void countMeA()
-
countMeB
@Counted(name="metricTest.test1.countMeB", absolute=true, unit="jellybean") public long countMeB()
-
gaugeMe
public void gaugeMe()
-
gaugeMeA
public long gaugeMeA()
-
gaugeMeB
public long gaugeMeB()
-
histogramMe
public void histogramMe()
-
timeMe
public void timeMe()
-
timeMeA
@Timed public void timeMeA()
-
createPromMetrics
public void createPromMetrics()
We create a few metrics with names that are outside the characters that OpenMetrics allows which is [a-zA-Z0-9_]
-
-