Feature/server metrics (#405)

* adds skeleton structure to task runners

* finishes server metrics

* Apply suggestions from code review

Co-authored-by: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com>

* cleans up meminfo call

* changes error creation method

Co-authored-by: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com>
This commit is contained in:
Keagan McClelland
2021-08-17 17:32:07 -06:00
committed by Aiden McClelland
parent 5a13320921
commit bcb6d9d673
4 changed files with 453 additions and 2 deletions

View File

@@ -50,6 +50,7 @@ pub enum ErrorKind {
ParseSshKey = 42,
SoundError = 43,
ParseTimestamp = 44,
ParseSysInfo = 45,
}
impl ErrorKind {
pub fn as_str(&self) -> &'static str {
@@ -99,6 +100,7 @@ impl ErrorKind {
ParseSshKey => "SSH Key Parsing Error",
SoundError => "Sound Interface Error",
ParseTimestamp => "Timestamp Parsing Error",
ParseSysInfo => "System Info Parsing Error",
}
}
}