Forum Discussion

Thaddaeus_Johns's avatar
8 years ago

List of Variables LM Provides to Groovy Scripts

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

4 Replies

Replies have been turned off for this discussion
  • Sarah_Terry's avatar
    Sarah_Terry
    Icon for Product Manager rankProduct Manager

    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

  • 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!

  • Sarah_Terry's avatar
    Sarah_Terry
    Icon for Product Manager rankProduct Manager

    You should see it next month, pending that there are no unforeseen road blocks :)/emoticons/smile@2x.png 2x" title=":)" width="20">