pub trait StatNode:
ReadStat
+ WriteStat
+ ConcurrencyStat
+ MetricItemRetriever
+ Any
+ AsAny {
// Required method
fn generate_read_stat(
&self,
sample_count: u32,
interval_ms: u32,
) -> Result<Arc<dyn ReadStat>>;
}
Expand description
StatNode holds real-time statistics for resources.
Required Methods§
Sourcefn generate_read_stat(
&self,
sample_count: u32,
interval_ms: u32,
) -> Result<Arc<dyn ReadStat>>
fn generate_read_stat( &self, sample_count: u32, interval_ms: u32, ) -> Result<Arc<dyn ReadStat>>
generate_read_stat generates the readonly metric statistic based on resource level global statistic If parameters, sampleCount and intervalInMs, are not suitable for resource level global statistic, return (nil, error)