@UriEndpoint(firstVersion="3.0.0",
scheme="microprofile-metrics",
title="MicroProfile Metrics",
syntax="microprofile-metrics:metricType:metricName",
producerOnly=true,
category=MONITORING)
public class MicroProfileMetricsEndpoint
extends org.apache.camel.support.DefaultEndpoint
| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.microprofile.metrics.MetricRegistry |
metricRegistry |
| Constructor and Description |
|---|
MicroProfileMetricsEndpoint(String uri,
org.apache.camel.Component component,
org.eclipse.microprofile.metrics.MetricRegistry metricRegistry,
org.eclipse.microprofile.metrics.MetricType metricType,
String metricsName) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
String |
getAction() |
Long |
getCounterIncrement() |
String |
getDescription() |
String |
getDisplayName()
Sets a display name within the metric metadata
|
Boolean |
getGaugeDecrement() |
Boolean |
getGaugeIncrement() |
Number |
getGaugeValue() |
Long |
getMark() |
String |
getMetricName() |
org.eclipse.microprofile.metrics.MetricRegistry |
getMetricRegistry() |
org.eclipse.microprofile.metrics.MetricType |
getMetricType() |
String |
getMetricUnit() |
String |
getTags() |
Long |
getValue() |
void |
setAction(String action)
The action to use when using the Timer metric type
|
void |
setCounterIncrement(Long counterIncrement)
The amount to increment to use when using the Counter metric type
|
void |
setDescription(String description)
Sets a description within the metric metadata
|
void |
setDisplayName(String displayName) |
void |
setGaugeDecrement(Boolean gaugeDecrement)
Decrements a gauge value when using the ConcurrentGauge metric type
|
void |
setGaugeIncrement(Boolean gaugeIncrement)
Increments a gauge value when using the ConcurrentGauge metric type
|
void |
setGaugeValue(Number gaugeValue)
Sets the gauge value when using the Gauge metric type
|
void |
setMark(Long mark)
The mark value to set when using the Meter metric type
|
void |
setMetricUnit(String metricUnit)
Sets a metric unit within the metric metadata
|
void |
setTags(String tags) |
void |
setValue(Long value)
The value to set when using the Histogram metric type
|
configureConsumer, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBasicPropertyBinding, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isSingleton, isSynchronous, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringbuild, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitprotected final org.eclipse.microprofile.metrics.MetricRegistry metricRegistry
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionpublic org.eclipse.microprofile.metrics.MetricRegistry getMetricRegistry()
public org.eclipse.microprofile.metrics.MetricType getMetricType()
public String getMetricName()
public String getTags()
public void setTags(String tags)
public String getAction()
public void setAction(String action)
public Long getMark()
public void setMark(Long mark)
public Long getValue()
public void setValue(Long value)
public Long getCounterIncrement()
public void setCounterIncrement(Long counterIncrement)
public Boolean getGaugeIncrement()
public void setGaugeIncrement(Boolean gaugeIncrement)
public Boolean getGaugeDecrement()
public void setGaugeDecrement(Boolean gaugeDecrement)
public Number getGaugeValue()
public void setGaugeValue(Number gaugeValue)
public String getDescription()
public void setDescription(String description)
public String getDisplayName()
public void setDisplayName(String displayName)
public String getMetricUnit()
public void setMetricUnit(String metricUnit)
Apache Camel