use of com.vmware.flowgate.poweriqworker.model.SensorResult in project flowgate by vmware.
the class PowerIQAPIClient method getSensorById.
public Sensor getSensorById(String id) {
Sensor sensor = new Sensor();
ResponseEntity<SensorResult> sensorResult = this.restTemplate.exchange(getPowerIQServiceEndpoint() + String.format(GetSensorByIdURL, id), HttpMethod.GET, getDefaultEntity(), SensorResult.class);
if (sensorResult != null) {
sensor = sensorResult.getBody().getSensor();
}
return sensor;
}
Aggregations