Class SupportMetricsFilter

java.lang.Object
com.cloudbees.jenkins.support.SupportMetricsFilter
All Implemented Interfaces:
javax.servlet.Filter
Direct Known Subclasses:
DefaultSupportMetricsFilter

public class SupportMetricsFilter extends Object implements javax.servlet.Filter
The metrics filter.
Author:
Stephen Connolly
  • Constructor Details

    • SupportMetricsFilter

      public SupportMetricsFilter(com.codahale.metrics.MetricRegistry registry, Map<Integer,String> meterNamesByStatusCode, String otherMetricName)
      Creates a new instance of the filter.
      Parameters:
      registry - Metric registry to use.
      meterNamesByStatusCode - A map, keyed by status code, of meter names that we are interested in.
      otherMetricName - The name used for the catch-all meter.
  • Method Details

    • init

      public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
      Specified by:
      init in interface javax.servlet.Filter
      Throws:
      javax.servlet.ServletException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface javax.servlet.Filter
    • doFilter

      public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
      Specified by:
      doFilter in interface javax.servlet.Filter
      Throws:
      IOException
      javax.servlet.ServletException