implement container stuff in periphery client

This commit is contained in:
beckerinj
2022-11-09 01:52:21 -05:00
parent 6728507914
commit b96a6cf7c2
4 changed files with 147 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ pub struct Server {
#[serde(rename = "_id", skip_serializing_if = "Option::is_none")]
pub id: Option<ObjectId>,
pub name: String,
pub host: String,
pub address: String,
pub permissions: PermissionsMap,
pub to_notify: Vec<String>,
pub cpu_alert: f64,
@@ -67,7 +67,7 @@ impl Default for Server {
Self {
id: None,
name: String::new(),
host: String::new(),
address: String::new(),
permissions: HashMap::new(),
to_notify: Vec::new(),
cpu_alert: 50.0,