Class MetricsNameStrategyFactory


  • public final class MetricsNameStrategyFactory
    extends java.lang.Object
    Used as a factory for the spring configuration for configuring the InstrumentedHttpClients.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.codahale.metrics.httpclient.HttpClientMetricNameStrategy hostAndMethod()
      Strategy for naming the http requests made for the metrics tracking.
      static com.codahale.metrics.httpclient.HttpClientMetricNameStrategy methodOnly()
      Strategy for naming the http requests made for the metrics tracking.
      static com.codahale.metrics.httpclient.HttpClientMetricNameStrategy querylessUrlAndMethod()
      Strategy for naming the http requests made for the metrics tracking.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • hostAndMethod

        public static com.codahale.metrics.httpclient.HttpClientMetricNameStrategy hostAndMethod()
        Strategy for naming the http requests made for the metrics tracking. Host and method will be tracked.
      • methodOnly

        public static com.codahale.metrics.httpclient.HttpClientMetricNameStrategy methodOnly()
        Strategy for naming the http requests made for the metrics tracking. Only the http method is tracked
      • querylessUrlAndMethod

        public static com.codahale.metrics.httpclient.HttpClientMetricNameStrategy querylessUrlAndMethod()
        Strategy for naming the http requests made for the metrics tracking. Host, method and path will be tracked.