pub trait StatNode: ReadStat + WriteStat + ConcurrencyStat + MetricItemRetriever + Any + AsAny {
    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

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)

Implementors