Scripts

Use scripts to implement custom logic for handling edge cases that aren't covered by the standard product functionality. Scripts are maintained on the Settings > Advanced > Scripts page and can be used across each of your workspaces.

Add a script

  1. Navigate to Settings > Advanced > Scripts.
  2. Click Add script.
  3. Complete the following in the Add script window:
    1. Display name:
      Enter a name for your script. This helps you to identify this script in the list of your scripts.
    2. Script editor:
      Enter your script. By default, you will see an example script in the editor. The example will help you to understand how to structure your script.
  4. Click Save. The script is created and added to the table.

Monitor condition scripts

This feature is available with an Enterprise plan

When adding a monitor to a tile, you might occasionally find that you're unable to configure a state or threshold using the available data. Or you may want to evaluate a state based on some complex logic. In cases such as these, you can instead use a monitoring condition script.

These scripts allow you to write your own logic for returning error states to the tile editor. You can also define parameters in your scripts which you can then populate using your data stream data when configuring a tile.

See Monitor Condition Scripts for a comprehensive guide.

Was this article helpful?


Have more questions or facing an issue?