mirror of
https://github.com/Kizuren/statusPage.git
synced 2026-01-06 06:29:14 +01:00
Added link icon for each endpoint
This commit is contained in:
parent
1b7384afbe
commit
f62e171411
5 changed files with 43 additions and 11 deletions
16
config.js
16
config.js
|
|
@ -35,16 +35,16 @@ export default {
|
|||
endpoints : [
|
||||
{
|
||||
id : 'homepage', // optional
|
||||
name : 'Homepage',
|
||||
link : 'https://www.google.com', // optional (for notifications and dashboard only), [defaults to endpoint.url]
|
||||
url : 'https://www.google.com',
|
||||
request : { // fetch options
|
||||
name : 'Homepage', // optional
|
||||
link : 'https://www.google.com', // optional, for notifications and dashboard only, [defaults to endpoint.url], can be disabled by settig it to false
|
||||
url : 'https://www.google.com', // required
|
||||
request : { // optional, fetch options
|
||||
method: 'GET',
|
||||
},
|
||||
mustFind : 'Feeling Lucky', // String | Array | Regex | Function | AsyncFunction
|
||||
mustNotFind : /Page not found/i, // String | Array | 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]
|
||||
mustFind : 'Feeling Lucky', // optional, String | Array | Regex | Function | AsyncFunction
|
||||
mustNotFind : /Page not found/i, // optional, String | Array | Regex | Function | AsyncFunction
|
||||
customCheck : async (content, response)=>{return true;}, // optional, Function | AsyncFunction -> Run your own custom checks return false in case of errors
|
||||
validStatus : [200], // optional, Which http status should be considered non errors [defaults to 200-299]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue