stats+log : am stats (agregats par agent, periodes 7d/30d/90d, barres ASCII) et am log (filtres agent/kind/date, limite) (issue #6)
This commit is contained in:
@@ -32,6 +32,24 @@ pub enum EventKind {
|
||||
Shell,
|
||||
}
|
||||
|
||||
impl EventKind {
|
||||
pub fn as_str(&self) -> &'static str {
|
||||
match self {
|
||||
EventKind::Start => "start",
|
||||
EventKind::Stop => "stop",
|
||||
EventKind::Run => "run",
|
||||
EventKind::Restart => "restart",
|
||||
EventKind::Install => "install",
|
||||
EventKind::Update => "update",
|
||||
EventKind::Uninstall => "uninstall",
|
||||
EventKind::Doctor => "doctor",
|
||||
EventKind::Config => "config",
|
||||
EventKind::Repl => "repl",
|
||||
EventKind::Shell => "shell",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// One journal entry. Optional fields are omitted from the JSON line.
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||
pub struct Event {
|
||||
|
||||
Reference in New Issue
Block a user