Diagnose Issue (Root Cause Analysis)
appd_diagnose_issueAutomatically diagnose application performance issues by analyzing health violations, anomalies, and metrics with baseline comparison to identify root causes.
Instructions
Perform a two-phase automated root cause analysis for an application.
Phase 1 (topology): Fetches health violations, anomalies, error events, transaction snapshots, business transactions, tiers, nodes, and backends in parallel — correlating them into ranked root cause candidates.
Phase 2 (metrics with baseline): For each affected tier, backend, and node, fetches metrics for BOTH the current window AND a prior equivalent baseline window. Anomaly flags (isSlow, isCpuSaturated, hasGcPressure) are computed as percentage degradation vs baseline — no hardcoded absolute thresholds. Example: a backend normally at 50ms now at 600ms is flagged (+1100%); one normally at 2000ms now at 2100ms is not (+5%).
Use this when you need to quickly understand why an application is behaving badly without manually calling many separate tools.
Args:
application (string|number): App name or numeric ID
durationInMins (number, optional): Lookback window in minutes (default: 60)
focus (string, optional): Narrow diagnosis to 'performance', 'errors', 'availability', or 'all' (default)
Returns: A structured diagnostic report with summary, causalityChain (ordered root→effect), tierMetrics, backendAnalysis, infrastructureInsights (all with baseline comparison), ranked root cause candidates, timeline, error breakdown, sample snapshots (with sqlQueries/httpCalls/errorStackTrace), and metric-aware investigation steps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| focus | No | Narrow the diagnosis focus. 'performance' = slow/stall events + snapshots + anomalies; 'errors' = error events + crash events + snapshots; 'availability' = health violations + anomalies; 'all' (default) = everything. | |
| application | Yes | Application name or numeric ID. | |
| durationInMins | No | Time window to analyse in minutes. Defaults to 60. |