= ({
/>
-
- {series.id !== 'ALL' ? (
-
-
-
- ) : (
-
-
-
- )}
-
+ {!hideTitle && (
+
+ {series.id !== 'ALL' ? (
+
+
+
+ ) : (
+
+
+
+ )}
+
+ )}
>
);
};
diff --git a/x-pack/plugins/infra/public/alerting/metric_threshold/mocks/metric_threshold_rule.ts b/x-pack/plugins/infra/public/alerting/metric_threshold/mocks/metric_threshold_rule.ts
index 3f579a56ce7a3..812a8864cffd7 100644
--- a/x-pack/plugins/infra/public/alerting/metric_threshold/mocks/metric_threshold_rule.ts
+++ b/x-pack/plugins/infra/public/alerting/metric_threshold/mocks/metric_threshold_rule.ts
@@ -130,18 +130,29 @@ export const buildMetricThresholdAlert = (
'kibana.alert.rule.parameters': {
criteria: [
{
- aggType: 'avg',
- comparator: '>',
- threshold: [0.1],
- timeSize: 1,
+ aggType: Aggregators.AVERAGE,
+ comparator: Comparator.GT,
+ threshold: [2000],
+ timeSize: 15,
timeUnit: 'm',
metric: 'system.cpu.user.pct',
},
+ {
+ aggType: Aggregators.MAX,
+ comparator: Comparator.GT,
+ threshold: [4],
+ timeSize: 15,
+ timeUnit: 'm',
+ metric: 'system.cpu.user.pct',
+ warningComparator: Comparator.GT,
+ warningThreshold: [2.2],
+ },
],
sourceId: 'default',
alertOnNoData: true,
alertOnGroupDisappear: true,
},
+ 'kibana.alert.evaluation.values': [2500, 5],
'kibana.alert.rule.category': 'Metric threshold',
'kibana.alert.rule.consumer': 'alerts',
'kibana.alert.rule.execution.uuid': '62dd07ef-ead9-4b1f-a415-7c83d03925f7',
diff --git a/x-pack/plugins/observability/public/pages/alert_details/alert_details.tsx b/x-pack/plugins/observability/public/pages/alert_details/alert_details.tsx
index d994669fbc6b0..9572c287257de 100644
--- a/x-pack/plugins/observability/public/pages/alert_details/alert_details.tsx
+++ b/x-pack/plugins/observability/public/pages/alert_details/alert_details.tsx
@@ -130,6 +130,7 @@ export function AlertDetails() {
rule={rule}
timeZone={timeZone}
setAlertSummaryFields={setSummaryFields}
+ ruleLink={http.basePath.prepend(paths.observability.ruleDetails(rule.id))}
/>
)}