Difference between revisions of "NXSL:GetDCIValueByDescription"

From NetXMS Wiki
Jump to navigation Jump to search
m
m
Line 5: Line 5:
== Syntax ==
== Syntax ==


GetDCIValueByName(''node'', ''description'');
GetDCIValueByDescription(''node'', ''description'');




Line 25: Line 25:
== Examples ==
== Examples ==


  GetDCIValueByName($node, "Status") -> 0
  GetDCIValueByDescription($node, "Status") -> 0

Revision as of 21:39, 21 April 2012

Get last value of DCI with given description on given node.


Syntax

GetDCIValueByDescription(node, description);


Parameters

node Node object. Predefined variable $node can be used to refer to current node in transformation script or event processing policy rule.
description DCI description.


Return Value

Last value for given DCI or null if DCI with given description does not exist or has no collected values.


Examples

GetDCIValueByDescription($node, "Status")	->	0