To create a script, go to
Script in Gladys dashboard, then click on
If you want just to log something in the logs, just write :
console.log('Hey, it just works !');
You can try the script by hitting the
Start Script button !
Scripts are running in a sandbox, you don’t have access to the full Node.js native API ( like
require for example ). You can only call Gladys functions. This is for security purpose.
You call all Gladys functions, and all function exposed by Gladys modules. Functions are listed in the Gladys Node.js API documentation.