Difference between revisions of "NXSL:GetDCIValues"
Jump to navigation
Jump to search
(Created page with "__NOTOC__ Get all values for period of DCI with given ID on given node. == Syntax == GetDCIValues(''node'', ''id'', ''startTime'', ''endTime''); == Parameters == :{| |-...") |
m (Text replacement - "^" to "{{deprecated}}") |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | {{deprecated}}__NOTOC__ | ||
Get all values for period of DCI with given ID on given node. | Get all values for period of DCI with given ID on given node. | ||
'''Since:''' 1.2.10 | |||
Latest revision as of 18:13, 13 September 2022
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