@Path(value="metrics")
public class MetricsWebResource
extends org.onosproject.rest.AbstractWebResource
| Constructor and Description |
|---|
MetricsWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getAllMetrics()
Gets stats information of all metrics.
|
javax.ws.rs.core.Response |
getMetricByName(String metricName)
Gets stats information of a metric.
|
codec, encodeArray, getService, mapper, newArray, newObject@GET @Produces(value="application/json") public javax.ws.rs.core.Response getAllMetrics()
@GET
@Produces(value="application/json")
@Path(value="{metricName}")
public javax.ws.rs.core.Response getMetricByName(@PathParam(value="metricName")
String metricName)
metricName - metric name