{% set rc = result.root_cause %}
{% set conf_pct = (rc.confidence * 100) | int %}
{% set color = "red" if rc.confidence >= 0.7 else ("orange" if rc.confidence >= 0.4 else "green") %}
Root Cause {{ conf_pct }}% confidence
{{ rc.cause }}
Suggested Fix
{{ rc.suggested_fix }}
{% if result.metrics %}
{% set m = result.metrics %}
CloudWatch Metrics (last {{ m.lookback_hours }}h)
Metric
Average
Maximum
CPU Utilization
{% if m.cpu_avg_percent is not none %}{{ "%.1f"|format(m.cpu_avg_percent) }}%{% else %}—{% endif %}
{% if m.cpu_max_percent is not none %}{{ "%.1f"|format(m.cpu_max_percent) }}%{% else %}—{% endif %}
Memory Utilization
{% if m.memory_avg_percent is not none %}{{ "%.1f"|format(m.memory_avg_percent) }}%{% else %}—{% endif %}
{% if m.memory_max_percent is not none %}{{ "%.1f"|format(m.memory_max_percent) }}%{% else %}—{% endif %}
{% endif %}
{% if result.service_config %}
{% set sc = result.service_config %}