Retrieve go-sbot systemd process statistics #76

Merged
glyph merged 2 commits from sbot_stats into main 2022-01-25 09:46:51 +00:00
Owner

Adds the ability to retieve process statistics for go-sbot by querying systemctl.

The following type is returned:

pub struct SbotStat {
    /// Current process state.
    state: String,
    /// Current process memory usage in bytes.
    memory: Option<u32>,
    /// Uptime for the process (if state is `active`).
    uptime: Option<String>,
    /// Downtime for the process (if state is `inactive`).
    downtime: Option<String>,
}

More fields can be added as required.

Adds the ability to retieve process statistics for go-sbot by querying `systemctl`. The following type is returned: ```rust pub struct SbotStat { /// Current process state. state: String, /// Current process memory usage in bytes. memory: Option<u32>, /// Uptime for the process (if state is `active`). uptime: Option<String>, /// Downtime for the process (if state is `inactive`). downtime: Option<String>, } ``` More fields can be added as required.
glyph added the
enhancement
peach-stats
labels 2022-01-25 09:42:53 +00:00
glyph added 2 commits 2022-01-25 09:42:54 +00:00
glyph merged commit 178af281ed into main 2022-01-25 09:46:51 +00:00
glyph deleted branch sbot_stats 2022-01-25 09:46:51 +00:00
Sign in to join this conversation.
No description provided.