pub struct ClusterInfo {
pub mode: Option<String>,
pub domain: Option<Vec<String>>,
pub region: Option<String>,
pub deployment_id: Option<String>,
pub buckets: Option<BucketsInfo>,
pub objects: Option<ObjectsInfo>,
pub usage: Option<UsageInfo>,
pub backend: Option<BackendInfo>,
pub servers: Option<Vec<ServerInfo>>,
}Expand description
Complete cluster information response
Fields§
§mode: Option<String>Deployment mode (distributed, standalone)
domain: Option<Vec<String>>Domain names
region: Option<String>Region
deployment_id: Option<String>Deployment ID
buckets: Option<BucketsInfo>Bucket information
objects: Option<ObjectsInfo>Object information
usage: Option<UsageInfo>Storage usage
backend: Option<BackendInfo>Backend information
servers: Option<Vec<ServerInfo>>Server information
Implementations§
Source§impl ClusterInfo
impl ClusterInfo
Sourcepub fn online_disks(&self) -> usize
pub fn online_disks(&self) -> usize
Get the total number of online disks across all servers
Sourcepub fn offline_disks(&self) -> usize
pub fn offline_disks(&self) -> usize
Get the total number of offline disks across all servers
Sourcepub fn total_capacity(&self) -> u64
pub fn total_capacity(&self) -> u64
Get total storage capacity in bytes
Sourcepub fn used_capacity(&self) -> u64
pub fn used_capacity(&self) -> u64
Get used storage in bytes
Trait Implementations§
Source§impl Clone for ClusterInfo
impl Clone for ClusterInfo
Source§fn clone(&self) -> ClusterInfo
fn clone(&self) -> ClusterInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClusterInfo
impl Debug for ClusterInfo
Source§impl Default for ClusterInfo
impl Default for ClusterInfo
Source§fn default() -> ClusterInfo
fn default() -> ClusterInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClusterInfo
impl<'de> Deserialize<'de> for ClusterInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ClusterInfo
impl RefUnwindSafe for ClusterInfo
impl Send for ClusterInfo
impl Sync for ClusterInfo
impl Unpin for ClusterInfo
impl UnwindSafe for ClusterInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more