+
+
+ 0 ? "destructive" : undefined}
+ hint={summary ? `${count(summary.failed)} of ${count(summary.requests)} requests` : undefined}
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
}
+ >
+
+ STACKED_USAGE_PALETTE[index % STACKED_USAGE_PALETTE.length])
+ }
+ valueFormatter={(value) => formatRate(value)}
+ showLegend={rateView === "status"}
+ showDots={rateRows.length === 1}
+ className="h-64"
+ />
+
+
+
+ row.failed === 0) ? "No failed requests in this range" : null}
+ >
+ failedByDate.get(date)}
+ totalLabel="failed"
+ className="h-64"
+ />
+
+ {series.codes.map((code, index) => (
+ -
+
+ {code}
+
+ ))}
+
+
+
+
+
+
+
+
+
+ {statusRows.map((row) => (
+ -
+ {row.status_code === 0 ? "—" : row.status_code}
+
+ {row.label}
+
+
+
+
+
+ {count(row.failed_requests)} · {row.share.toFixed(1)}%
+
+
+ ))}
+
+
+
+
+
}
+ >
+
+
+
+
+ {ERROR_ENTITY_LABEL[kind].singular}
+ Requests
+ Failed
+ Error rate
+ Top status
+
+
+
+ {rows.map((row) => (
+
+
+
+ {row.name}
+
+ {row.name !== row.id && (
+
+ {row.id}
+
+ )}
+
+ {count(row.requests)}
+ {count(row.failed)}
+
+
+
+ {row.topStatus ?? "—"}
+
+ ))}
+
+
+
+
+
}>
+ Inspect failed requests in Logs
+
+
+
+
+
+
+ );
+}
+
+function EmptyNote({ children }: { children: React.ReactNode }) {
+ return