Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

dewiz-xyz/healthcheck-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Healthcheck-monitor

Simple node.js server for monitoring.

API

POST /
{
 params: Array<any>, // Params for check function (in case of type "downtime" this will be the URL)
 type: Checks, // now we are supporting only one type which is `downtime`
 message?: DiscordMessage & { callbackUrl: string } // discord message object see: https://discord.com/developers/docs/resources/webhook#execute-webhook-jsonform-params
}

Usage

curl -X POST \
  https://HEALTH_CHECK_MONITOR_URL/ \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -d '{
  "params": ["https://google.com"],
  "type": "downtime",
  "message": {
	"callbackUrl": "DISCORD_WEBHOOK_URL"
  	"username": "Health Monitor",
	 "embeds": [
		{
		    "title": "Google is down!"
		}	
     ]	
  }
}'

Releases

No releases published

Packages

No packages published