Global Variables can be defined in a single place and reused across checks.
The Global Variables form is accessible from the administrator menu at the top right of the screen.
- Description (optional): A description can be useful to explain the purpose of the variable for future reference.
- Key: The name of the variable. You will use this to access your variable within a check.
- Value: The value that will replace the variable when the check is run.
Using Global Variables
Global Variables can be used like any other variables in an API Check. They can be accessed via the
env namespace. For example, if you have a Global Variable with key
rigor_url, you can access it within a check with
If you need a reminder of what Global Variables are available while creating or editing an API Check, hints are available by clicking the
i icon at the top right of the check. You can view all available built-in variables and Global Variables. Experienced users might find the keyboard shortcut useful:
[i]. Please note that this help panel does not show request variables or custom variables that have been defined in the check.