Bird
0
0

This alert configuration snippet is not triggering alerts:

medium📝 Troubleshoot Q7 of 15
Rest API - API Testing and Monitoring
This alert configuration snippet is not triggering alerts:
{"alert": {"condition": "error_rate > 5", "action": "notify"}}

What is a likely cause?
AThe alert key should be "alerts"
BThe condition syntax is invalid JSON
CThe action "notify" is unsupported
DThe error_rate metric is not being collected
Step-by-Step Solution
Solution:
  1. Step 1: Verify if the metric used in condition is available

    If error_rate is not collected, the condition cannot be evaluated, so no alert triggers.
  2. Step 2: Check JSON syntax and action validity

    The JSON syntax and action "notify" are correct, so they are not the cause.
  3. Final Answer:

    The error_rate metric is not being collected -> Option D
  4. Quick Check:

    Missing metric means no alert triggers [OK]
Quick Trick: Alerts need valid metrics collected to trigger [OK]
Common Mistakes:
MISTAKES
  • Assuming JSON syntax error
  • Thinking action notify is invalid
  • Changing alert key unnecessarily

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes