3.2.0 • Published 4 years ago
@runnerty/executor-check-online-service v3.2.0
Check Online Service executor for Runnerty:
Installation:
Through NPM
npm i @runnerty/executor-check-online-serviceYou can also add modules to your project with runnerty
npx runnerty add @runnerty/executor-check-online-serviceThis command installs the module in your project, adds example configuration in your config.json and creates an example plan of use.
If you have installed runnerty globally you can include the module with this command:
runnerty add @runnerty/executor-check-online-serviceConfiguration sample:
Add in config.json:
{
"id": "check_online_service_default",
"type": "@runnerty-executor-check-online-service"
}Plan sample:
Add in plan.json:
{
"id":"check_online_service_default",
"hostname": "http://www.google.com/en",
"check_contains": "I'm Feeling Lucky"
}Plan advanced:
Add in plan.json:
{
"id":"check_online_service_default",
"hostname": "http://www.google.com/en",
"check_contains": "I'm Feeling Lucky",
"method": "GET",
"auth":{
"user": "user",
"pass": "password",
}
}{
"id":"check_online_service_default",
"hostname": "http://www.myservice.com/api/health",
"headers": { "User-Agent": "runnerty", "Content-Type": "application/json" }
}{
"id":"check_online_service_default",
"hostname": "http://www.myservice.com/api/health",
"timeout": "5s"
}