NXSL:GetDCIValues

Revision as of 13:55, 7 January 2016 by Victor (talk | contribs) (Created page with "__NOTOC__ Get all values for period of DCI with given ID on given node. == Syntax == GetDCIValues(''node'', ''id'', ''startTime'', ''endTime''); == Parameters == :{| |-...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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


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