public class MetricApi extends Object
Constructor and Description |
---|
MetricApi() |
public ResourceCountModel getResourceCount(AppProperties.RESOURCE_TYPE resourceType, Integer resourceId)
public MetricDouble getSensorVariableMetricDouble(SensorVariable sensorVariable, Long start, Long end)
public List<McHeatMap> getHeatMapSensorVariableDouble(List<Integer> svIds, Double upperLimit)
public List<McHeatMap> getHeatMapScript(String scriptName) throws McBadRequestException, IllegalAccessException, IOException, McScriptException, ScriptException
public static String getBucketDuration(Long start, Long end, MetricsUtils.METRIC_TYPE metricType)
public List<MetricsDoubleTypeDevice> getMetricsDoubleData(SensorVariable sensorVariable, Long start, Long end)
public List<MetricsBatteryUsage> getMetricsBatteryUsage(Node node, Long start, Long end)
public List<MetricsBinaryTypeDevice> getMetricsBinaryData(SensorVariable sensorVariable, Long start)
public List<?> getMetricData(Integer resourceId, String resourceType, Long start, Long end, String duration, String bucketDuration, DATA_TYPE dataType) throws McBadRequestException
McBadRequestException
public List<?> getMetricData(String uid, Long start, Long end, String duration, String bucketDuration, DATA_TYPE dataType) throws McBadRequestException
McBadRequestException
public ResourceModel getResourceModel(Integer resourceId, String resourceType, String uid) throws McBadRequestException
McBadRequestException
public List<?> getMetricData(ResourceModel resourceModel, Long start, Long end, String duration, String bucketDuration, DATA_TYPE dataType) throws McBadRequestException
McBadRequestException
Copyright © 2015–2019. All rights reserved.