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
CompactSensorRecord
orFullSensorRecord
. 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 theEntityId
from the currentSensorRecord record;
instance- Returns:
EntityId
instance
-
getDeviceId
Get the device identifier- Returns:
Byte
value ornull
if the type of the sensor cannot be detected.
-
getName
Get the name of the sensor record- Returns:
String
value
-
getStates
- Returns:
- state values formatted as: $sensorName=$state|$sensorName=$state...|$sensorName=$state
-