內容簡介
這個簡單的外掛程式會建立一個 /health 的端點,讓你監控 WordPress 網站的狀態。端點會測試資料庫連接的狀態,當你的網頁健康時返回 200 OK 的 HTTP 狀態碼。你可以在維基百科上閱讀更多資訊有關 HTTP 狀態碼。
類似網站監控服務的外部工具可以定期存取暴露出的端點。這有助於確認 WordPress 網站的正常運作。
你可以在Microsoft Azure 文件網站上找到更多有關 健康端點監控模式的資訊。
開發
這個外掛程式正在GitHub上開發。如果你想要協作,歡迎提交拉取要求或在問題追踪器上回報漏洞。
外掛標籤
開發者團隊
原文外掛簡介
This simple plugin creates a /health endpoint to let you monitor the status of your WordPress website. The endpoint tests the status of your database connection and returns a 200 OK HTTP status code while your page is healthy. You can read more on HTTP status codes at the Wikipedia article.
External tools such as website monitoring services can access the exposed endpoint at regular intervals. This can help you verify that your WordPress website is performing correctly.
You can find more information about the Health Endpoint Monitoring Pattern at the Microsoft Azure Documentation website.
Development
This plugin is being developed on GitHub. If you want to collaborate, feel free to submit pull requests or report bugs on the issue tracker.
