diff --git a/proxmox-notify/src/lib.rs b/proxmox-notify/src/lib.rs index c69ac26d..53f897a9 100644 --- a/proxmox-notify/src/lib.rs +++ b/proxmox-notify/src/lib.rs @@ -261,6 +261,11 @@ impl Notification { pub fn id(&self) -> &Uuid { &self.id } + + /// Return the notification's timestamp + pub fn timestamp(&self) -> i64 { + self.metadata.timestamp + } } /// Notification configuration