You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/08/26 03:24:02 UTC
[camel] branch master updated: Fixed wrong syntax
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new eed2831 Fixed wrong syntax
eed2831 is described below
commit eed2831c58d729704734e7ce13b91f3645114fba
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Aug 26 05:23:34 2019 +0200
Fixed wrong syntax
---
.../src/main/docs/microprofile-metrics-component.adoc | 2 +-
.../component/microprofile/metrics/MicroProfileMetricsEndpoint.java | 5 +----
.../endpoint/dsl/MicroProfileMetricsEndpointBuilderFactory.java | 2 +-
3 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/components/camel-microprofile-metrics/src/main/docs/microprofile-metrics-component.adoc b/components/camel-microprofile-metrics/src/main/docs/microprofile-metrics-component.adoc
index 93eb1aa..3f4a879 100644
--- a/components/camel-microprofile-metrics/src/main/docs/microprofile-metrics-component.adoc
+++ b/components/camel-microprofile-metrics/src/main/docs/microprofile-metrics-component.adoc
@@ -45,7 +45,7 @@ The MicroProfile Metrics component supports 2 options, which are listed below.
The MicroProfile Metrics endpoint is configured using URI syntax:
----
-microprofile-metrics:metricType:metricsName
+microprofile-metrics:metricType:metricName
----
with the following path and query parameters:
diff --git a/components/camel-microprofile-metrics/src/main/java/org/apache/camel/component/microprofile/metrics/MicroProfileMetricsEndpoint.java b/components/camel-microprofile-metrics/src/main/java/org/apache/camel/component/microprofile/metrics/MicroProfileMetricsEndpoint.java
index bd4a4e5..d68eab7 100644
--- a/components/camel-microprofile-metrics/src/main/java/org/apache/camel/component/microprofile/metrics/MicroProfileMetricsEndpoint.java
+++ b/components/camel-microprofile-metrics/src/main/java/org/apache/camel/component/microprofile/metrics/MicroProfileMetricsEndpoint.java
@@ -16,8 +16,6 @@
*/
package org.apache.camel.component.microprofile.metrics;
-import java.util.List;
-
import org.apache.camel.Component;
import org.apache.camel.Consumer;
import org.apache.camel.Processor;
@@ -29,9 +27,8 @@ import org.apache.camel.spi.UriPath;
import org.apache.camel.support.DefaultEndpoint;
import org.eclipse.microprofile.metrics.MetricRegistry;
import org.eclipse.microprofile.metrics.MetricType;
-import org.eclipse.microprofile.metrics.Tag;
-@UriEndpoint(firstVersion = "3.0.0", scheme = "microprofile-metrics", title = "MicroProfile Metrics", syntax = "microprofile-metrics:metricType:metricsName", producerOnly = true, label = "monitoring")
+@UriEndpoint(firstVersion = "3.0.0", scheme = "microprofile-metrics", title = "MicroProfile Metrics", syntax = "microprofile-metrics:metricType:metricName", producerOnly = true, label = "monitoring")
public class MicroProfileMetricsEndpoint extends DefaultEndpoint {
protected final MetricRegistry metricRegistry;
diff --git a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/MicroProfileMetricsEndpointBuilderFactory.java b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/MicroProfileMetricsEndpointBuilderFactory.java
index d4d59be..681f255 100644
--- a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/MicroProfileMetricsEndpointBuilderFactory.java
+++ b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/MicroProfileMetricsEndpointBuilderFactory.java
@@ -287,7 +287,7 @@ public interface MicroProfileMetricsEndpointBuilderFactory {
* Available as of version: 3.0
* Maven coordinates: org.apache.camel:camel-microprofile-metrics
*
- * Syntax: <code>microprofile-metrics:metricType:metricsName</code>
+ * Syntax: <code>microprofile-metrics:metricType:metricName</code>
*
* Path parameter: metricType (required)
* Metric type