Package org.metricshub.ipmi.client.model
Class Sensor
java.lang.Object
org.metricshub.ipmi.client.model.Sensor
Wraps Sensor information:
- The Sensor record which can be either
CompactSensorRecordorFullSensorRecord. Note that the compact sensor record is used to discover and collect the state of the devices, where the full sensor record is used to collect the devices reading values, i.e. temperature, power consumption, voltage, ...etc. - The sensor reading response data wrapping the reading value
- The states of the sensor record formatted as the following: $sensorName=$state|$sensorName=$state|...|$sensorName=$state
-
Constructor Summary
ConstructorsConstructorDescriptionSensor(SensorRecord sensorRecord, GetSensorReadingResponseData data, String states) -
Method Summary
-
Constructor Details
-
Sensor
-
-
Method Details
-
getRecord
-
getData
-
isCompact
public boolean isCompact() -
isFull
public boolean isFull() -
getEntityId
Get theEntityIdfrom the currentSensorRecord record;instance- Returns:
EntityIdinstance
-
getDeviceId
Get the device identifier- Returns:
Bytevalue ornullif the type of the sensor cannot be detected.
-
getName
Get the name of the sensor record- Returns:
Stringvalue
-
getStates
- Returns:
- state values formatted as: $sensorName=$state|$sensorName=$state...|$sensorName=$state
-