correlate_deploy_with_errors
Compare error rate and p99 latency before and after the latest deploy to see if it caused a service's errors, returning a verdict with confidence level.
Instructions
Find whether a recent deploy explains a service's current errors.
Compares error rate and p99 latency before vs. after the most recent deploy in the window, pulls matching ERROR log samples, and returns a verdict with a confidence level.
This is the tool to reach for on "why is X broken" — it does in one call what would otherwise be a get_deploys + two get_metrics + query_logs chain, and it does the before/after arithmetic for you.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service | Yes | ||
| lookback_minutes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service | Yes | ||
| verdict | Yes | ||
| confidence | Yes | ||
| p99_after_ms | Yes | ||
| p99_before_ms | Yes | ||
| p99_delta_pct | Yes | ||
| sample_errors | Yes | ||
| suspect_deploy | Yes | ||
| error_rate_after | Yes | ||
| error_rate_before | Yes | ||
| error_rate_delta_pct | Yes |