@Path(value="/rest/metrics") @Produces(value="application/json") @Consumes(value="application/json") @RolesAllowed(value="User") public class MetricsHandler extends AccessEngine
| Modifier and Type | Field and Description |
|---|---|
static String |
COLOR_MAXIMUM |
static String |
COLOR_MINIMUM |
static String |
TOPOLOGY_KIND_GATEWAY |
static String |
TOPOLOGY_KIND_NODE |
static String |
TOPOLOGY_KIND_SENSOR |
static String |
TOPOLOGY_KIND_SENSOR_VARIABLE |
static String |
TOPOLOGY_PREFIX_GATEWAY |
static String |
TOPOLOGY_PREFIX_NODE |
static String |
TOPOLOGY_PREFIX_SENSOR |
static String |
TOPOLOGY_PREFIX_SENSOR_VARIABLE |
NO_ACCESS_MESSAGE| Constructor and Description |
|---|
MetricsHandler() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getBulletChart(List<Integer> variableIds,
Long start,
Long end) |
javax.ws.rs.core.Response |
getHeatMapBatteryLevel(List<Integer> nodeIds) |
javax.ws.rs.core.Response |
getHeatMapNodeStatus(List<Integer> nodeIds) |
javax.ws.rs.core.Response |
getHeatMapScript(String scriptName) |
javax.ws.rs.core.Response |
getHeatMapSensorVariable(List<Integer> sVariableIds,
Double upperLimit) |
javax.ws.rs.core.Response |
getMetricsBattery(Integer nodeId,
Long start,
Long end,
Boolean withMinMax,
String bucketDuration) |
javax.ws.rs.core.Response |
getMetricsData(Integer resourceId,
String resourceType,
Long start,
Long end,
String duration,
String bucketDuration,
String uid,
String dataType) |
javax.ws.rs.core.Response |
getMetricsNvd3Data(Integer sensorId,
List<Integer> variableIds,
Long start,
Long end,
String duration,
Boolean withMinMax,
String chartType,
String bucketDuration,
Boolean enableDetailedKey) |
javax.ws.rs.core.Response |
getResourceCount(AppProperties.RESOURCE_TYPE resourceType,
Integer resourceId) |
javax.ws.rs.core.Response |
getResourceData(Integer resourceId,
String resourceType,
Long start,
Long end,
String duration,
String bucketDuration,
String uid) |
javax.ws.rs.core.Response |
getTopology(AppProperties.RESOURCE_TYPE resourceType,
Integer resourceId,
Boolean realtime) |
getUser, hasAccessGateway, hasAccessNode, hasAccessSensor, hasAccessSensorVariable, isSuperAdmin, updateGatewayIds, updateNodeIds, updateSensorIds, updateSensorVariableIdspublic static final String COLOR_MINIMUM
public static final String COLOR_MAXIMUM
public static final String TOPOLOGY_PREFIX_GATEWAY
public static final String TOPOLOGY_PREFIX_NODE
public static final String TOPOLOGY_PREFIX_SENSOR
public static final String TOPOLOGY_PREFIX_SENSOR_VARIABLE
public static final String TOPOLOGY_KIND_GATEWAY
public static final String TOPOLOGY_KIND_NODE
public static final String TOPOLOGY_KIND_SENSOR
public static final String TOPOLOGY_KIND_SENSOR_VARIABLE
@GET
@Path(value="/resourceCount")
public javax.ws.rs.core.Response getResourceCount(@QueryParam(value="resourceType")
AppProperties.RESOURCE_TYPE resourceType,
@QueryParam(value="resourceId")
Integer resourceId)
@GET
@Path(value="/nvd3data")
public javax.ws.rs.core.Response getMetricsNvd3Data(@QueryParam(value="sensorId")
Integer sensorId,
@QueryParam(value="variableId")
List<Integer> variableIds,
@QueryParam(value="start")
Long start,
@QueryParam(value="end")
Long end,
@QueryParam(value="duration")
String duration,
@QueryParam(value="withMinMax")
Boolean withMinMax,
@QueryParam(value="chartType")
String chartType,
@QueryParam(value="bucketDuration")
String bucketDuration,
@QueryParam(value="enableDetailedKey")
Boolean enableDetailedKey)
@GET
@Path(value="/stats")
public javax.ws.rs.core.Response getMetricsData(@QueryParam(value="resourceId")
Integer resourceId,
@QueryParam(value="resourceType")
String resourceType,
@QueryParam(value="start")
Long start,
@QueryParam(value="end")
Long end,
@QueryParam(value="duration")
String duration,
@QueryParam(value="bucketDuration")
String bucketDuration,
@QueryParam(value="uid")
String uid,
@QueryParam(value="dataType")
String dataType)
@GET
@Path(value="/bulletChart")
public javax.ws.rs.core.Response getBulletChart(@QueryParam(value="variableId")
List<Integer> variableIds,
@QueryParam(value="start")
Long start,
@QueryParam(value="end")
Long end)
@GET
@Path(value="/heatMapBatteryLevel")
public javax.ws.rs.core.Response getHeatMapBatteryLevel(@QueryParam(value="nodeId")
List<Integer> nodeIds)
@GET
@Path(value="/heatMapNodeStatus")
public javax.ws.rs.core.Response getHeatMapNodeStatus(@QueryParam(value="nodeId")
List<Integer> nodeIds)
@GET
@Path(value="/heatMapSensorVariable")
public javax.ws.rs.core.Response getHeatMapSensorVariable(@QueryParam(value="variableId")
List<Integer> sVariableIds,
@QueryParam(value="upperLimit")
Double upperLimit)
@GET
@Path(value="/heatMapScript")
public javax.ws.rs.core.Response getHeatMapScript(@QueryParam(value="scriptName")
String scriptName)
@GET
@Path(value="/export")
public javax.ws.rs.core.Response getResourceData(@QueryParam(value="resourceId")
Integer resourceId,
@QueryParam(value="resourceType")
String resourceType,
@QueryParam(value="start")
Long start,
@QueryParam(value="end")
Long end,
@QueryParam(value="duration")
String duration,
@QueryParam(value="bucketDuration")
String bucketDuration,
@QueryParam(value="uid")
String uid)
@GET
@Path(value="/statsBattery")
public javax.ws.rs.core.Response getMetricsBattery(@QueryParam(value="nodeId")
Integer nodeId,
@QueryParam(value="start")
Long start,
@QueryParam(value="end")
Long end,
@QueryParam(value="withMinMax")
Boolean withMinMax,
@QueryParam(value="bucketDuration")
String bucketDuration)
@GET
@Path(value="/topology")
public javax.ws.rs.core.Response getTopology(@QueryParam(value="resourceType")
AppProperties.RESOURCE_TYPE resourceType,
@QueryParam(value="resourceId")
Integer resourceId,
@QueryParam(value="realtime")
Boolean realtime)
Copyright © 2015–2019. All rights reserved.