pub struct SubnetMetrics {
pub num_canisters: u64,
pub canister_state_bytes: u64,
pub consumed_cycles_total: u128,
pub update_transactions_total: u64,
}Expand description
A list of subnet metrics.
Fields§
§num_canisters: u64The number of canisters on this subnet.
canister_state_bytes: u64The total size of the state in bytes taken by canisters on this subnet since this subnet was created.
consumed_cycles_total: u128The total number of cycles consumed by all current and deleted canisters on this subnet.
update_transactions_total: u64The total number of transactions processed on this subnet since this subnet was created.
Trait Implementations§
Source§impl Clone for SubnetMetrics
impl Clone for SubnetMetrics
Source§fn clone(&self) -> SubnetMetrics
fn clone(&self) -> SubnetMetrics
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 SubnetMetrics
impl Debug for SubnetMetrics
Source§impl<'de> Deserialize<'de> for SubnetMetrics
impl<'de> Deserialize<'de> for SubnetMetrics
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SubnetMetrics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SubnetMetrics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SubnetMetrics
impl Serialize for SubnetMetrics
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for SubnetMetrics
Auto Trait Implementations§
impl Freeze for SubnetMetrics
impl RefUnwindSafe for SubnetMetrics
impl Send for SubnetMetrics
impl Sync for SubnetMetrics
impl Unpin for SubnetMetrics
impl UnsafeUnpin for SubnetMetrics
impl UnwindSafe for SubnetMetrics
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