Search in sources :

Example 1 with SensorResult

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;
}
Also used : SensorResult(com.vmware.flowgate.poweriqworker.model.SensorResult) Sensor(com.vmware.flowgate.poweriqworker.model.Sensor)

Aggregations

Sensor (com.vmware.flowgate.poweriqworker.model.Sensor)1 SensorResult (com.vmware.flowgate.poweriqworker.model.SensorResult)1