Difference between revisions of "NXSL:Event"
Jump to navigation
Jump to search
Line 26: | Line 26: | ||
|- | |- | ||
| severity || int32 || Event severity | | severity || int32 || Event severity | ||
|- | |||
| source || object || Source object ([[NXSL:NetObj]] or it's subclass) | |||
|- | |||
| sourceId || int32 || ID of source object | |||
|- | |- | ||
| timestamp || int64 || Timestamp as number of seconds since epoch (1 Jan 1970 00:00:00 UTC) | | timestamp || int64 || Timestamp as number of seconds since epoch (1 Jan 1970 00:00:00 UTC) | ||
Line 45: | Line 49: | ||
[[NXSL:Event:setUserTag|setUserTag]] | [[NXSL:Event:setUserTag|setUserTag]] | ||
[[NXSL:Event:toJson|toJson]] | |||
[[Category:NXSL Class Reference]] | [[Category:NXSL Class Reference]] |
Revision as of 11:02, 30 June 2016
Represents NetXMS event object.
Class Name
Event
Attributes
Name | Type | Description |
---|---|---|
code | int32 | Event code |
customMessage | string | Custom message set in event processing policy |
id | int64 | Unique event identifier |
message | string | Event message |
name | string | Event name |
parameters | array | Event-specific parameters |
severity | int32 | Event severity |
source | object | Source object (NXSL:NetObj or it's subclass) |
sourceId | int32 | ID of source object |
timestamp | int64 | Timestamp as number of seconds since epoch (1 Jan 1970 00:00:00 UTC) |
userTag | string | User tag associated with event |
The $event->parameters array contains the event's parameters.
$event->parameters[1] == %1
$event->parameters[n] == %n
Methods