Merge pull request #6451 from backstage/orkohunter/document-default-status-check-behavior

docs: add a docstring about the default healthcheck middleware behavior
This commit is contained in:
Ben Lambert
2021-07-13 19:27:47 +02:00
committed by GitHub
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-common': patch
---
Document the default behavior of `statusCheck` option in `createStatusCheckRouter`.
@@ -22,6 +22,10 @@ import { errorHandler, statusCheckHandler, StatusCheck } from '../middleware';
export interface StatusCheckRouterOptions {
logger: Logger;
path?: string;
/**
* If not implemented, the default express middleware always returns 200.
* Override this to implement your own logic for a health check.
*/
statusCheck?: StatusCheck;
}