NXSL:GetDCIValues

From NetXMS Wiki
Jump to navigation Jump to search
This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide)

Get all values for period of DCI with given ID on given node.

Since: 1.2.10


Syntax

GetDCIValues(node, id, startTime, endTime);


Parameters

node Node object. Predefined variable $node can be used to refer to current node in transformation script or event processing policy rule.
id DCI ID.
startTime Start of the period (as UNIX timestamp).
endTime End of the period (as UNIX timestamp).


Return Value

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.


Examples

GetDCIValues($node, FindDCIByName($node, "Status"), time() - 3600, time()); // Values for last hour