@Path(value="statistics")
public class StatisticsWebResource
extends org.onosproject.rest.AbstractWebResource
| Constructor and Description |
|---|
StatisticsWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getActiveEntriesCountPerDevice()
Gets sum of active entries in all tables for all devices.
|
javax.ws.rs.core.Response |
getLoads(String deviceId,
String port)
Gets load statistics for all links or for a specific link.
|
javax.ws.rs.core.Response |
getPortDeltaStatistics()
Gets port delta statistics of all devices.
|
javax.ws.rs.core.Response |
getPortDeltaStatisticsByDeviceId(String deviceId)
Gets port delta statistics of a specified devices.
|
javax.ws.rs.core.Response |
getPortDeltaStatisticsByDeviceIdAndPort(String deviceId,
String port)
Gets port delta statistics of a specified device and port.
|
javax.ws.rs.core.Response |
getPortStatistics()
Gets port statistics of all devices.
|
javax.ws.rs.core.Response |
getPortStatisticsByDeviceId(String deviceId)
Gets port statistics of a specified devices.
|
javax.ws.rs.core.Response |
getPortStatisticsByDeviceIdAndPort(String deviceId,
String port)
Gets port statistics of a specified device and port.
|
javax.ws.rs.core.Response |
getTableStatistics()
Gets table statistics for all tables of all devices.
|
javax.ws.rs.core.Response |
getTableStatisticsByDeviceId(String deviceId)
Gets table statistics for all tables of a specified device.
|
codec, encodeArray, getService, mapper, newArray, newObject@GET
@Path(value="flows/link")
@Produces(value="application/json")
public javax.ws.rs.core.Response getLoads(@QueryParam(value="device")
String deviceId,
@QueryParam(value="port")
String port)
deviceId - (optional) device ID for a specific linkport - (optional) port number for a specified link@GET @Path(value="flows/tables") @Produces(value="application/json") public javax.ws.rs.core.Response getTableStatistics()
@GET
@Path(value="flows/tables/{deviceId}")
@Produces(value="application/json")
public javax.ws.rs.core.Response getTableStatisticsByDeviceId(@PathParam(value="deviceId")
String deviceId)
deviceId - device ID@GET @Path(value="ports") @Produces(value="application/json") public javax.ws.rs.core.Response getPortStatistics()
@GET
@Path(value="ports/{deviceId}")
@Produces(value="application/json")
public javax.ws.rs.core.Response getPortStatisticsByDeviceId(@PathParam(value="deviceId")
String deviceId)
deviceId - device ID@GET
@Path(value="ports/{deviceId}/{port}")
@Produces(value="application/json")
public javax.ws.rs.core.Response getPortStatisticsByDeviceIdAndPort(@PathParam(value="deviceId")
String deviceId,
@PathParam(value="port")
String port)
deviceId - device IDport - port@GET @Path(value="delta/ports") @Produces(value="application/json") public javax.ws.rs.core.Response getPortDeltaStatistics()
@GET
@Path(value="delta/ports/{deviceId}")
@Produces(value="application/json")
public javax.ws.rs.core.Response getPortDeltaStatisticsByDeviceId(@PathParam(value="deviceId")
String deviceId)
deviceId - device ID@GET
@Path(value="delta/ports/{deviceId}/{port}")
@Produces(value="application/json")
public javax.ws.rs.core.Response getPortDeltaStatisticsByDeviceIdAndPort(@PathParam(value="deviceId")
String deviceId,
@PathParam(value="port")
String port)
deviceId - device IDport - port@GET @Path(value="flows/activeentries") @Produces(value="application/json") public javax.ws.rs.core.Response getActiveEntriesCountPerDevice()