Completed initial implementation of logs, events, and tasks

This commit is contained in:
Dark-Alex-17 committed 2023-08-08 10:50:06 -06:00
1 parent 519778c0ca
commit 460efb2497
16 files changed
+304 -42

No files matched your search

+13
View File
@@ -437,3 +437,16 @@ pub struct Task {
pub last_duration: String,
pub next_execution: DateTime<Utc>,
}
#[derive(Default, Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Event {
pub trigger: String,
pub name: String,
pub command_name: String,
pub status: String,
pub queued: DateTime<Utc>,
pub started: Option<DateTime<Utc>>,
pub ended: Option<DateTime<Utc>>,
pub duration: String,
}