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 String
NO_TAG_COUNTER
static String
NO_TAG_GAUGE
static String
NO_TAG_HISTOGRAM
static String
NO_TAG_TIMER
static String
SHARED_METRIC_NAME
static String
TAGGED_COUNTER
static String
TAGGED_GAUGE
static String
TAGGED_HISTOGRAM
static String
TAGGED_TIMER
-
Constructor Summary
Constructors Constructor Description MetricAppBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
countMe()
void
countMeA()
long
countMeB()
void
countMeMetricNameScopeA()
void
createPromMetrics()
We create a few metrics with names that are outside the characters that OpenMetrics allows which is [a-zA-Z0-9_]void
gaugeMe()
long
gaugeMeA()
long
gaugeMeB()
long
gaugeMeMetricNameScopeC()
long
gaugeMeTagged()
long
gaugeMeTaggedOne()
long
gaugeMeTaggedTwo()
void
histogramMe()
void
timeMe()
void
timeMeA()
void
timeMeMetricNameScopeB()
-
-
-
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_]
-
-