• 0

List of Variables LM Provides to Groovy Scripts


Thaddaeus Johnson
 Share

Question

Is there a list of functions and variables that LogicMonitor Exposes to Groovy?

I'm specifically looking to leverage a device ID in a groovy script that pulls data from the LM API.  I know I can pull device/instance properties but the actual device ID LM uses doesn't appear to be one of them.

 

Thanks,

Thaddaeus

  • Upvote 1
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
  • LogicMonitor Staff

Hi Thaddaeus,

In general, properties are going to be the best way to get variable information. We will be adding device id as a device property in an upcoming release, so that should help this specific scenario.

Thanks,
Sarah

Link to comment
Share on other sites

  • 0

Ok, thank you - is there a time frame on that?  The end result is to add an alert level # as a DataSource for specific devices - That would be a great addition as well for running complex weighted system level reporting.  It would probably save LM some resources by not referencing the API for extra devices details.

Thanks for the quick response as well!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share