+
+
+ {isGrafanaRulerRule(rule.rulerRule) && (
+ <>
+
+
+ {updated && (
+
+ )}
+ >
+ )}
+
+
+
+ {isPaused ? (
+ pausedIcon
+ ) : (
+ <>
+ {hasEvaluationDuration && evaluationTimestamp && (
+
+ )}
+ {hasEvaluationDuration && (
+
+ )}
+ >
+ )}
+
+ {pendingPeriod && (
+
+ )}
+
+
+ {isGrafanaRulerRule(rule.rulerRule) &&
+ // grafana recording rules don't have these fields
+ rule.rulerRule.grafana_alert.no_data_state &&
+ rule.rulerRule.grafana_alert.exec_err_state && (
+
+ {hasEvaluationDuration && (
+
+ )}
+ {pendingPeriod && (
+
+ )}
+
+ )}
+
+ {annotations && (
+
+ {Object.keys(annotations).length === 0 ? (
+
+
+ No annotations
+
+
+ ) : (
+ Object.entries(annotations).map(([name, value]) => {
+ const id = `annotation-${name.replace(/\s/g, '-')}`;
+ return } />;
+ })
+ )}
+
+ )}
+
+ );
};
interface AnnotationValueProps {
@@ -152,7 +203,7 @@ export function AnnotationValue({ value }: AnnotationValueProps) {
if (needsExternalLink) {
return (
-