Class MicrometerResource


  • @Path("/micrometer")
    public class MicrometerResource
    extends Object
    • Field Detail

      • producerTemplate

        @Inject
        org.apache.camel.ProducerTemplate producerTemplate
      • meterRegistry

        @Inject
        io.micrometer.core.instrument.MeterRegistry meterRegistry
    • Constructor Detail

      • MicrometerResource

        public MicrometerResource()
    • Method Detail

      • getMetricValue

        @Path("/metric/{type}/{name}")
        @Produces("application/json")
        @GET
        public javax.ws.rs.core.Response getMetricValue​(@PathParam("type")
                                                        String type,
                                                        @PathParam("name")
                                                        String name,
                                                        @QueryParam("tags")
                                                        String tagValues)
      • counter

        @Path("/counter")
        @GET
        public javax.ws.rs.core.Response counter()
      • summarySetValue

        @Path("/summary")
        @GET
        public javax.ws.rs.core.Response summarySetValue​(@QueryParam("value")
                                                         int value)
      • timerStartStop

        @Path("/timer")
        @GET
        public javax.ws.rs.core.Response timerStartStop()
      • logMessage

        @Path("/log")
        @GET
        public javax.ws.rs.core.Response logMessage()