Reorganizing files
This commit is contained in:
parent
1c4077ffc3
commit
883a0669fe
11 changed files with 105 additions and 45 deletions
16
src/core/models.rs
Normal file
16
src/core/models.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
use crate::data::heartbeat::model::{HeartbeatEntry, HeartbeatResponse, UptimeData};
|
||||
use crate::data::status_page::model::{MonitorInfo, StatusPageResponse};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct UnifiedMonitorData {
|
||||
pub monitor_info: MonitorInfo,
|
||||
pub heartbeats: Vec<HeartbeatEntry>,
|
||||
pub uptime_data: Option<UptimeData>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct UnifiedData {
|
||||
pub status_page_title: String,
|
||||
pub status_page_description: Option<String>,
|
||||
pub monitors: Vec<UnifiedMonitorData>,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue