The Keyword monitor checks if specific text is present (or absent) in a web page's response body. It's essentially an HTTP monitor with a mandatory keyword check.
🎯 ما يفعله
- Fetches a web page via HTTP
- Searches the response body for a specific keyword or phrase
- Alerts if the keyword is missing (or present, if you want to detect errors)
⚙️ التكوين
Same as the HTTP monitor, plus:
| الإعداد | الوصف |
|---|
| Keyword | The text to search for in the response |
| Keyword Should Exist | ✅ = must be present, ❌ = must be absent |
📖 أمثلة الاستخدام
Example 1: Verify page content is correct
| الإعداد | القيمة |
|---|
| URL | https://example.com |
| Keyword | Welcome to our website |
| Should Exist | ✅ Yes |
Example 2: Detect error pages
| الإعداد | القيمة |
|---|
| URL | https://example.com |
| Keyword | 500 Internal Server Error |
| Should Exist | ❌ No |
Example 3: Check API response
| الإعداد | القيمة |
|---|
| URL | https://api.example.com/health |
| Keyword | "healthy":true |
| Should Exist | ✅ Yes |
💡 نصائح
- Keyword search is case-sensitive
- The keyword is searched in the raw HTML/response body, not the rendered page
- For JSON APIs, search for a key-value pair like
"status":"ok" to verify the response structure, not just the status code