Как пользоваться методом toJson() для Event'a в nxsl скриптах?
-
Согласно этим постам
https://www.netxms.org/forum/e-eoe-o-koaot-netxms/to_json-eta/
https://www.netxms.org/forum/announcements/netxms-2-0-5-released/
появился метод toJson() для класса Event, но как им пользоваться в nxsl скриптах?
Мне нужно отладить какой аларм терминируется пришедшим ивентом, и было бы удобно увидеть в логе все параметры пришедшего ивента.
Напрмер, в EventProcessingPolicy для правила на ивент SYS_ALARM_TIMEOUT добавить в Filtering Script такое:trace(3,toJson($event)); -
It should look like:
trace(3,$event->toJson()); -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login