Update uptime.config.ts

pull/30/head
linbmv 2024-05-22 15:33:44 +08:00 committed by GitHub
parent f4bed644e1
commit ae223fca27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 18 additions and 1 deletions

View File

@ -131,4 +131,21 @@ const workerConfig = {
reason: string
) => {
// This callback will be called when there's a status change for any monitor
// Write any Types
// Write any Typescript code here
},
onIncident: async (
env: any,
monitor: any,
timeIncidentStart: number,
timeNow: number,
reason: string
) => {
// This callback will be called EVERY 1 MINUTE if there's an on-going incident for any monitor
// Write any Typescript code here
},
}
}
};
// Don't forget this, otherwise compilation fails.
export { pageConfig, workerConfig }