Module stat

Source
Expand description

Stat

Structs§

NopReadStat
NopWriteStat

Enums§

MetricEvent
There are five events to record pass + block == Total

Constants§

GLOBAL_STATISTIC_NON_REUSABLE_ERROR
ILLEGAL_GLOBAL_STATISTIC_PARAMS_ERROR
ILLEGAL_STATISTIC_PARAMS_ERROR

Traits§

ConcurrencyStat
ReadStat
StatNode
StatNode holds real-time statistics for resources.
WriteStat

Functions§

check_validity_for_reuse_statistic
check_validity_for_reuse_statistic check the compliance whether readonly metric statistic can be built based on resource’s global statistic The parameters, sample_count and interval_ms, are the parameters of the metric statistic you want to build The parameters, parent_sample_count and parent_interval_ms, are the parameters of the resource’s global statistic If compliance passes, return Ok(()), if not returns specific error
check_validity_for_statistic
nop_read_stat
nop_write_stat

Type Aliases§

TimePredicate