PROCUCT DOCUMENTATION
SUBSCRIBE

AppliesTo Function Configuration

In this article

AppliesTo functions are a core component of AppliesTo scripting, a powerful method for selecting LogicMonitor resources based on their properties. You can create your own custom AppliesTo functions globally, making them reusable across any area in LogicMonitor that accepts AppliesTo scripts.

After created, these user-defined functions serve asconvenient shortcuts within the AppliesTo scripting language, helping simplify complex logic and improve script readability.

Creating AppliesTo Function

  1. In LogicMonitor, navigate to ModulesMy Modules Toolbox.
  2. Select add blue icon Add.
  3. In the Add modal, select AppliesTo Function.
  4. In the Basic Information settings, enter the relevant information such as Name, Description, and Tags.
  5. In the Access Groups settings, add the relevant access groups.
  6.  In the AppliesTo settings, do the following:
    1. Enter your user-defined function.
      User-defined appliesto function page
      or
      Select launch icon Launch IDE and select the different filter functions on the wizard.
      AppliesTo Launch IDE page
    2. Select Done.
    3. Select Run test icon Test AppliesTo.
      The number of matching resources (along with a link allowing you to view these resources) is returned.
      User-Appliesto test page

Recommendation: You can use built-in convenience functions, such as isStorage, that are exposed as user-defined functions.

  1. Select Save.