mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-10-10 12:46:14 -08:00
introduce uptime monitor for easytier public nodes (#1250)
This commit is contained in:
1 parent
8f37d4ef7c
commit
e6ec7f405c
61 files changed
+12122
-17
No files matched your search
@@ -134,6 +134,12 @@ impl NetworkInstanceManager {
|
||||
Ok(ret)
|
||||
}
|
||||
|
||||
pub fn get_network_info(&self, instance_id: &uuid::Uuid) -> Option<NetworkInstanceRunningInfo> {
|
||||
self.instance_map
|
||||
.get(instance_id)
|
||||
.and_then(|instance| instance.value().get_running_info())
|
||||
}
|
||||
|
||||
pub fn list_network_instance_ids(&self) -> Vec<uuid::Uuid> {
|
||||
self.instance_map.iter().map(|item| *item.key()).collect()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user