find_cascade_risk
Detects upstream methods at risk of failure from saturated downstream endpoints by comparing current request rates against downstream saturation capacity.
Instructions
Find upstream endpoints at cascade risk from saturated downstream services.
Walks CALLS_REST edges: if Method A (in repo_name) calls Endpoint B (in
another repo) and B's corresponding PerfSample has a lower saturation_rps
than A's current_rps, A is flagged as being at cascade risk.
saturation_rps for endpoint B = thread_pool_size / (p99_ms / 1000).
Args:
repo_name: The logical name of the upstream repository to analyse.
Returns:
List of dicts: ``upstream_method_fqn``, ``downstream_endpoint``,
``downstream_saturation_rps``, ``upstream_current_rps``,
``risk`` (``"SATURATED"`` or ``"NEAR_SATURATION"``).Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |