]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/models/prometheus-alerts.ts
import 15.2.0 Octopus source
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / models / prometheus-alerts.ts
index 56a0eb7f605d35d6a2f55f820cf8f55284eba2f4..f5e8f850b15bb1011e52100d4843c7f7ebf3f166 100644 (file)
@@ -26,6 +26,12 @@ class PrometheusAlert {
   value: number;
 }
 
+export interface PrometheusRuleGroup {
+  name: string;
+  file: string;
+  rules: PrometheusRule[];
+}
+
 export class PrometheusRule {
   name: string; // => PrometheusAlertLabels.alertname
   query: string;
@@ -37,6 +43,7 @@ export class PrometheusRule {
   alerts: PrometheusAlert[]; // Shows only active alerts
   health: string;
   type: string;
+  group?: string; // Added field for flattened list
 }
 
 export class AlertmanagerAlert extends CommonAlertmanagerAlert {