LogicMonitor seeks to disrupt AI landscape with $800M strategic investment at $2.4B valuation to revolutionize data centers.

Learn More

User-Defined AppliesTo Functions

Last updated on 13 July, 2021

Overview

AppliesTo functions are part of AppliesTo scripting, which is a scripting method for selecting a set of LogicMonitor resources based on their properties. You can define your own AppliesTo functions globally, and those functions can then be called from any location within LogicMonitor that takes AppliesTo scripting as input.

Once created, user-defined AppliesTo functions, in essence, act as convenience functions within the AppliesTo scripting language. For more information on AppliesTo convenience functions, as well as the syntax used to build AppliesTo statements, see AppliesTo Scripting Overview.

Creating an AppliesTo Function

To create a user-defined AppliesTo function, select Settings | AppliesTo Functions | Add. The Add New AppliesTo Function dialog appears, allowing you to configure various function settings including the function name, description, and its actual AppliesTo statement.

User-defined function
Some of LogicMonitor’s built-in convenience functions, such as isVirtualization(), are exposed as user-defined functions.

As you’re building your user-defined function, use the Test AppliesTo button to test the AppliesTo statement against all resources in monitoring. As discussed in AppliesTo Scripting Overview, the number of matching resources (along with a link allowing you to view these resources) is returned.

In This Article