From 879204788c734ad25c02b08dc5a418194ac5d6ce Mon Sep 17 00:00:00 2001 From: ybouane Date: Wed, 9 Oct 2024 10:37:51 -0400 Subject: [PATCH] Implemented config.js --- config.js | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/config.js b/config.js index 4c57566..86e4c67 100644 --- a/config.js +++ b/config.js @@ -1,8 +1,24 @@ export default { - "port" : 2600, - "sites" : [ + verbose : true, + interval : 15, // In minutes + responseTimeGood : 300, // In milliseconds, this and below will be green + responseTimeWarning : 600, // In milliseconds, above this will be red + timeout : 5000, // In milliseconds, requests will be aborted above this. (Do not ) + sites : [ { - + id : 'google', + name : 'Google', + endpoints : [ + { + name : 'Homepage', + url : 'https://www.google.com', + request : { + method: 'GET', + }, + mustFind : 'Feeling Lucky', + mustNotFind : /not found/i, + } + ] } ], }; \ No newline at end of file