public class MetricsServlet
extends javax.servlet.http.HttpServlet
application/json
response.Modifier and Type | Class and Description |
---|---|
static class |
MetricsServlet.ContextListener
An abstract
ServletContextListener which allows you to programmatically inject the
MetricRegistry , rate and duration units, and allowed origin for
MetricsServlet . |
Modifier and Type | Field and Description |
---|---|
static String |
ALLOWED_ORIGIN |
static String |
CALLBACK_PARAM |
static String |
DURATION_UNIT |
static String |
METRIC_FILTER |
static String |
METRICS_REGISTRY |
static String |
RATE_UNIT |
static String |
SHOW_SAMPLES |
Constructor and Description |
---|
MetricsServlet() |
MetricsServlet(MetricRegistry registry) |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
init(javax.servlet.ServletConfig config) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
public static final String RATE_UNIT
public static final String DURATION_UNIT
public static final String SHOW_SAMPLES
public static final String METRICS_REGISTRY
public static final String ALLOWED_ORIGIN
public static final String METRIC_FILTER
public static final String CALLBACK_PARAM
public MetricsServlet()
public MetricsServlet(MetricRegistry registry)
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
Copyright © 2014. All Rights Reserved.