mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-06 08:09:24 +00:00
fix: alerts folders UI improvements (#6398)
1. code refactoring for alert list --------- Co-authored-by: omkark06 <omkar@zinclabs.io> Co-authored-by: udev <uddhavdave1@gmail.com>
This commit is contained in:
co-authored by
omkark06
udev
parent
700b9e59c4
commit
5dd59cd495
@@ -44,6 +44,7 @@ pub struct ListAlertsResponseBodyItem {
|
||||
pub enabled: bool,
|
||||
pub last_triggered_at: Option<i64>,
|
||||
pub last_satisfied_at: Option<i64>,
|
||||
pub is_real_time: bool,
|
||||
}
|
||||
|
||||
/// HTTP response body for `EnableAlert` endpoint.
|
||||
@@ -101,6 +102,7 @@ impl TryFrom<(meta_folders::Folder, meta_alerts::Alert, Option<Trigger>)>
|
||||
enabled: alert.enabled,
|
||||
last_triggered_at,
|
||||
last_satisfied_at,
|
||||
is_real_time: alert.is_real_time,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user