feat: add expectedBodyContains for HTTP checks (#6)

This commit is contained in:
2026-04-15 20:30:56 +02:00
committed by GitHub
parent 26cc1dac8a
commit 98ef89aa06
12 changed files with 310 additions and 29 deletions

View File

@@ -111,6 +111,17 @@ monitors:
expected_status: 200
timeout_ms: 10000
alerts: ["default"]
# Example with expected_body_contains
- name: "json-api-health"
type: http
target: "https://api.example.com/health"
method: GET
expected_status: 200
expected_body_contains: '"status":"healthy"' # Check JSON response contains healthy status
headers:
Content-Type: "application/json"
alerts: ["default"]
"""
# optional