GetDCIValue

Deprecated in 6.2.

Please use cachedValue attribute of DCI class instead, for example $node.findDCIById(id)?.cachedValue.

GetDCIValue(node, dciId): String | Table

Get last collected value of the DCI. Return null on error, Table instance for table DCI, or the value otherwise. Values of DCIs with data type unsigned integer, 64-bit integer, counter, or float are converted to the matching numeric type; other values are returned as String.

Table 1. Parameters

node

Node

node object instance (e.g. $node)

dciId

Integer

DCI ID

Return

Table for table DCIs, value (see above), or null if failed or no data is available.

>>> GetDCIValue($node, FindDCIByName($node, "Status"))
0
>>> GetDCIValue($node, FindDCIByName($node, "Non-Existing"))
null