This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Event object

Please guide me to a documentation on how to access the event object and what all details are available from event object. Whats the difference between an event object and an alarm object.

Regards

Parents
  • Hi,

    You should be able to find the docs here:

    Administration -> Tooling -> Script Console

     

    You can then pick the "Alarm" class to get the details, including some examples on the "Use" tab at the top.

    An event is an instance of certain things happening in Foglight, for example, an AlarmSystemEvent - this is when an alarm fires.

    We could write an event driven rule that is triggered on an AlarmSystemEvent - eg. it fires when another alarm fires. You can then inspect that instance of the alarm with code like "@event.get("message") which would give the message variable of the original alarm.

     

     

     

     

Reply
  • Hi,

    You should be able to find the docs here:

    Administration -> Tooling -> Script Console

     

    You can then pick the "Alarm" class to get the details, including some examples on the "Use" tab at the top.

    An event is an instance of certain things happening in Foglight, for example, an AlarmSystemEvent - this is when an alarm fires.

    We could write an event driven rule that is triggered on an AlarmSystemEvent - eg. it fires when another alarm fires. You can then inspect that instance of the alarm with code like "@event.get("message") which would give the message variable of the original alarm.

     

     

     

     

Children
No Data