Package org.netxms.client.datacollection
Class DciLastValue
java.lang.Object
org.netxms.client.datacollection.DciLastValue
Generic last value for single valued or table DCI.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet data originGet data type for single value DCIintGet DCI type (table or single valued).intGet number of consecutive data collection errorsGet error code of last data collection attemptGet raw value of single value DCIGet DCI statusGet value of table DCIGet timestamp for this valuegetValue()Get value of single value DCIbooleanCheck if this DCI never has a value of its own (for example, instance discovery source DCI)
-
Constructor Details
-
DciLastValue
Create from NXCP message- Parameters:
msg- NXCP message
-
-
Method Details
-
getDciType
public int getDciType()Get DCI type (table or single valued). Will return eitherDataCollectionObject.DCO_TYPE_ITEMorDataCollectionObject.DCO_TYPE_TABLE.- Returns:
- DCI type
-
getDataOrigin
Get data origin- Returns:
- data origin
-
getTimestamp
Get timestamp for this value- Returns:
- timestamp for this value
-
getDataType
Get data type for single value DCI- Returns:
- data type for single value DCI or null for table DCI
-
getValue
Get value of single value DCI- Returns:
- value of single value DCI or null for table DCI
-
getRawValue
Get raw value of single value DCI- Returns:
- raw value of single value DCI or null for table DCI
-
getTableValue
Get value of table DCI- Returns:
- table DCI value or null for single value DCI
-
getStatus
Get DCI status- Returns:
- DCI status
-
getErrorCount
public int getErrorCount()Get number of consecutive data collection errors- Returns:
- number of consecutive data collection errors
-
getLastCollectionError
Get error code of last data collection attempt- Returns:
- error code of last data collection attempt
-
isNoValueObject
public boolean isNoValueObject()Check if this DCI never has a value of its own (for example, instance discovery source DCI)- Returns:
- true if this DCI never has a value of its own
-