mirror of
https://github.com/Kizuren/statusPage.git
synced 2026-01-10 00:20:31 +01:00
Added two settings for notification triggers
This commit is contained in:
parent
6f939a0e47
commit
3a6a79df6d
1 changed files with 6 additions and 4 deletions
10
config.js
10
config.js
|
|
@ -26,6 +26,8 @@ export default {
|
|||
toEmail : '',
|
||||
toFromEmail : '',
|
||||
},
|
||||
consecutiveErrorsNotify : 1,
|
||||
consecutiveHighLatencyNotify : 3,
|
||||
sites : [
|
||||
{
|
||||
id : 'google', // optional
|
||||
|
|
@ -34,15 +36,15 @@ export default {
|
|||
{
|
||||
id : 'homepage', // optional
|
||||
name : 'Homepage',
|
||||
link : 'https://www.google.com', // optional
|
||||
link : 'https://www.google.com', // optional (for notifications and dashboard only), [defaults to endpoint.url]
|
||||
url : 'https://www.google.com',
|
||||
request : { // fetch options
|
||||
method: 'GET',
|
||||
},
|
||||
mustFind : 'Feeling Lucky', // String | Regex | Function | AsyncFunction
|
||||
mustNotFind : /Page not found/i,
|
||||
customCheck : (content, response)=>{return true;},
|
||||
validStatus : [200],
|
||||
mustNotFind : /Page not found/i, // String | Regex | Function | AsyncFunction
|
||||
customCheck : async (content, response)=>{return true;}, // Function | AsyncFunction -> Run your own custom checks return false in case of errors
|
||||
validStatus : [200], // Which http status should be considered non errors [defaults to 200-299]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue