Completed initial implementation of logs, events, and tasks

This commit is contained in:
2023-08-08 10:50:06 -06:00
parent 519778c0ca
commit 460efb2497
16 changed files with 304 additions and 42 deletions
+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,
}