Class DataCollectionItem

    • Constructor Detail

      • DataCollectionItem

        public DataCollectionItem​(DataCollectionConfiguration owner,
                                  org.netxms.base.NXCPMessage msg)
        Create data collection item object from NXCP message
        Parameters:
        owner - Owning configuration object
        msg - NXCP message
      • DataCollectionItem

        public DataCollectionItem​(DataCollectionConfiguration owner,
                                  long id)
        Constructor for new data collection items.
        Parameters:
        owner - Owning configuration object
        id - Identifier assigned to new item
    • Method Detail

      • fillMessage

        public void fillMessage​(org.netxms.base.NXCPMessage msg)
        Fill NXCP message with item's data.
        Overrides:
        fillMessage in class DataCollectionObject
        Parameters:
        msg - NXCP message
      • getDataType

        public DataType getDataType()
        Returns:
        the dataType
      • setDataType

        public void setDataType​(DataType dataType)
        Parameters:
        dataType - the dataType to set
      • getDeltaCalculation

        public int getDeltaCalculation()
        Returns:
        the deltaCalculation
      • setDeltaCalculation

        public void setDeltaCalculation​(int deltaCalculation)
        Parameters:
        deltaCalculation - the deltaCalculation to set
      • isProcessAllThresholds

        public boolean isProcessAllThresholds()
        Returns:
        the processAllThresholds
      • setProcessAllThresholds

        public void setProcessAllThresholds​(boolean processAllThresholds)
        Parameters:
        processAllThresholds - the processAllThresholds to set
      • isSnmpRawValueInOctetString

        public boolean isSnmpRawValueInOctetString()
        Returns:
        State of DCF_RAW_VALUE_OCTET_STRING flag
      • setSnmpRawValueInOctetString

        public void setSnmpRawValueInOctetString​(boolean enable)
        Set state of DCF_RAW_VALUE_OCTET_STRING flag
        Parameters:
        enable - true to enable
      • isShowOnObjectTooltip

        public boolean isShowOnObjectTooltip()
        Returns:
        true of DCI should be shown on object tooltip
      • setShowOnObjectTooltip

        public void setShowOnObjectTooltip​(boolean show)
        Parameters:
        show - indicator if DCI should be shown on object tooltip
      • isShowInObjectOverview

        public boolean isShowInObjectOverview()
        Returns:
        true of DCI should be shown in object overview
      • setShowInObjectOverview

        public void setShowInObjectOverview​(boolean show)
        Parameters:
        show - indicator if DCI should be shown in object overview
      • getAggregationFunction

        public int getAggregationFunction()
        Returns:
        aggregation function
      • setAggregationFunction

        public void setAggregationFunction​(int func)
        Parameters:
        func - The function to set
      • getBaseUnits

        public int getBaseUnits()
        Returns:
        the baseUnits
      • setBaseUnits

        public void setBaseUnits​(int baseUnits)
        Parameters:
        baseUnits - the baseUnits to set
      • getMultiplier

        public int getMultiplier()
        Returns:
        the multiplier
      • setMultiplier

        public void setMultiplier​(int multiplier)
        Parameters:
        multiplier - the multiplier to set
      • getCustomUnitName

        public String getCustomUnitName()
        Returns:
        the customUnitName
      • setCustomUnitName

        public void setCustomUnitName​(String customUnitName)
        Parameters:
        customUnitName - the customUnitName to set
      • getSnmpRawValueType

        public int getSnmpRawValueType()
        Returns:
        the snmpRawValueType
      • setSnmpRawValueType

        public void setSnmpRawValueType​(int snmpRawValueType)
        Parameters:
        snmpRawValueType - the snmpRawValueType to set
      • getSampleCount

        public int getSampleCount()
        Returns:
        the sampleCount
      • setSampleCount

        public void setSampleCount​(int sampleCount)
        Parameters:
        sampleCount - the sampleCount to set
      • isUsedForNodeStatusCalculation

        public boolean isUsedForNodeStatusCalculation()
        Returns:
        State of DCF_CALCULATE_NODE_STATUS flag
      • setUsedForNodeStatusCalculation

        public void setUsedForNodeStatusCalculation​(boolean enable)
        Enable or disable usage of this DCI for node status calculation
        Parameters:
        enable - true to enable
      • getPredictionEngine

        public String getPredictionEngine()
        Returns:
        the predictionEngine
      • setPredictionEngine

        public void setPredictionEngine​(String predictionEngine)
        Parameters:
        predictionEngine - the predictionEngine to set