GetDCIValues
- GetDCIValues(node, id, startTime, endTime, rawValues): Array
-
Get all values for period of DCI with given ID on given node.
Table 1. Parameters node
node object instance
id
Integer
DCI ID
startTime
Integer
Start of the period (as UNIX timestamp).
endTime
Integer
End of the period (as UNIX timestamp). Optional, current time will be used if this parameter is not specified
rawValues
Boolean
False - return transformed values. True - return RAW values. Optional, False by default.
Added in version 4.4.1: rawValues parameter
Return Array of value ordered from latest to earliest for given DCI or null if
DCI with given ID does not exist or has no collected values. This function cannot be used for table DCIs.
GetDCIValues($node, FindDCIByName($node, "Status"), time() - 3600, time()); // Values for last hour