NXSL:GetDCIValues

From NetXMS Wiki
Revision as of 14:01, 7 January 2016 by Victor (talk | contribs)
Jump to navigation Jump to search

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