mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-14 05:19:25 +00:00
notify: add getter for notification timestamp
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com> Tested-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
parent
08b7c501ac
commit
8f408ea4af
@ -261,6 +261,11 @@ impl Notification {
|
|||||||
pub fn id(&self) -> &Uuid {
|
pub fn id(&self) -> &Uuid {
|
||||||
&self.id
|
&self.id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Return the notification's timestamp
|
||||||
|
pub fn timestamp(&self) -> i64 {
|
||||||
|
self.metadata.timestamp
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Notification configuration
|
/// Notification configuration
|
||||||
|
Loading…
Reference in New Issue
Block a user