pub struct History {
pub database: Option<PathBuf>,
pub samples: Duration,
pub logs: Duration,
pub events: Duration,
pub jobs: Duration,
pub log_max: ByteSize,
}Expand description
[history]: the job history database and how long it keeps what. Every field has a default.
Fields§
§database: Option<PathBuf>The SQLite database; default $XDG_STATE_HOME/runnerd/runnerd.db.
samples: DurationHow long CPU and memory samples are kept; a job’s totals and peaks stay. Default 7 days.
logs: DurationHow long a finished job’s log is kept. Default 30 days.
events: DurationHow long events are kept for clients resuming with Last-Event-ID. Default 30 days.
jobs: DurationHow long a finished job’s record is kept, with its steps, totals and runner. Default 90 days.
log_max: ByteSizeThe most log stored per job; later lines are dropped. Default 50M.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for History
impl<'de> Deserialize<'de> for History
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for History
impl StructuralPartialEq for History
Auto Trait Implementations§
impl Freeze for History
impl RefUnwindSafe for History
impl Send for History
impl Sync for History
impl Unpin for History
impl UnsafeUnpin for History
impl UnwindSafe for History
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.