Package com.cloudbees.jenkins.support
Class SupportMetricsFilter
java.lang.Object
com.cloudbees.jenkins.support.SupportMetricsFilter
- All Implemented Interfaces:
javax.servlet.Filter
- Direct Known Subclasses:
DefaultSupportMetricsFilter
The metrics filter.
- Author:
- Stephen Connolly
-
Constructor Summary
ConstructorDescriptionSupportMetricsFilter
(com.codahale.metrics.MetricRegistry registry, Map<Integer, String> meterNamesByStatusCode, String otherMetricName) Creates a new instance of the filter. -
Method Summary
-
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 interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroy
in interfacejavax.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 interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
-