NXSL:PostEvent

From NetXMS Wiki
Revision as of 16:07, 9 January 2013 by Victor (talk | contribs)
Jump to navigation Jump to search

Post event on behalf of given node.

Since: 1.0.8

Syntax

PostEvent(node, event, tag, ...);


Parameters

node Node object to send event on behalf of.
event Event code or name (name can be used since 1.2.6).
tag User tag associated with event. Optional, can be leaved out or set to null.
... 0 or more event-specific parameters.


Return Value

TRUE if event was posted successfully or FALSE if not.


Examples

PostEvent($node, 100000)
PostEvent($node, 100000, "my tag", "param1", "param2")
PostEvent($node, "MY_EVENT_NAME", null, "param1")