[ 
https://issues.apache.org/jira/browse/CAMEL-11596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16101718#comment-16101718
 ] 

 Ramu kakarla commented on CAMEL-11596:
---------------------------------------

Hello,

I have added camel/routes/
{id}

/detail  as per Luca Burgazzoli suggestion
1)[kkakarla@kkakarla /]$ curl -XGET -s http://localhost:8080/camel/routes/
[{"id":"bar","uptime":"13 
minutes","uptimeMillis":801360,"status":"Started"},{"id":"foo","uptime":"13 
minutes","uptimeMillis":801359,"status":"Started"},{"id":"undertow","uptime":"13
 minutes","uptimeMillis":801363,"status":"Started"}]

2)[kkakarla@kkakarla /]$ curl -XGET -s 
http://localhost:8080/camel/routes/foo/info
{"id":"foo","uptime":"13 
minutes","uptimeMillis":807866,"status":"Started","details":{"deltaProcessingTime":1,"exchangesInflight":0,"exchangesTotal":162,"externalRedeliveries":0,"failuresHandled":0,"firstExchangeCompletedExchangeId":"ID--1501077986781-0-1","firstExchangeCompletedTimestamp":1501077989469,"lastExchangeCompletedExchangeId":"ID-kkakarla-pnq-csb-1501077986781-0-324","lastExchangeCompletedTimestamp":1501078794481,"lastProcessingTime":1,"maxProcessingTime":3,"meanProcessingTime":0,"minProcessingTime":0,"redeliveries":0,"totalProcessingTime":42,"hasRouteController":true}}

3)[kkakarla@kkakarla /]$ curl -XGET -s 
http://localhost:8080/camel/routes/foo/detail
{"id":"foo","uptime":"13 
minutes","uptimeMillis":815282,"status":"Started","details":{"deltaProcessingTime":-1,"exchangesInflight":0,"exchangesTotal":163,"externalRedeliveries":0,"failuresHandled":0,"firstExchangeCompletedExchangeId":"ID-kkakarla-pnq-csb-1501077986781-0-1","firstExchangeCompletedTimestamp":1501077989469,"lastExchangeCompletedExchangeId":"ID-kkakarla-pnq-csb-1501077986781-0-326","lastExchangeCompletedTimestamp":1501078799480,"lastProcessingTime":0,"maxProcessingTime":3,"meanProcessingTime":0,"minProcessingTime":0,"redeliveries":0,"totalProcessingTime":42,"hasRouteController":true}}
4)[kkakarla@kkakarla /]$ curl -XGET -s http://localhost:8080/camel/routes/foo
{"id":"foo","uptime":"13 
minutes","uptimeMillis":819307,"status":"Started"}[kkakarla@kkakarla /]$ 




> camel-spring-boot - actuator endpoint routes - Get single route only
> --------------------------------------------------------------------
>
>                 Key: CAMEL-11596
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11596
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-spring-boot
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.20.0
>
>
> See the readme of this example
> https://github.com/apache/camel/tree/master/examples/camel-example-spring-boot-routecontroller
> To get info about a route you need to
> {code}
> curl -XGET -s http://localhost:8080/camel/routes/id/info
> {code}
> That returns many information about the route, but if you just want to big 
> summary like
> {code}
> curl -XGET -s http://localhost:8080/camel/routes
> {code}
> But for a specific route like bar
> {code}
> curl -XGET -s http://localhost:8080/camel/routes/bar
> {code}
> Then that is not possible. It may be nice to then just return
> {code}
> {"id":"bar","uptime":"3.405 seconds","uptimeMillis":3405,"status":"Started"}
> {code}
> eg only that route.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to