@Path(value="/v1/metrics") public class MetricsResource extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ALLOWED_ORIGIN |
static String |
DURATION_UNIT |
static String |
METRICS_REGISTRY |
static String |
RATE_UNIT |
static String |
SHOW_SAMPLES |
| Constructor and Description |
|---|
MetricsResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
doGet() |
javax.ws.rs.core.Response |
doPost() |
void |
init() |
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
@PostConstruct public void init()
@GET
@Produces(value={"application/json","application/xml"})
public javax.ws.rs.core.Response doGet()
@POST
@Produces(value={"application/json","application/xml"})
public javax.ws.rs.core.Response doPost()
Copyright © 2020 The Apache Software Foundation. All rights reserved.