Enum Class的使用
com.alibaba.csp.sentinel.slots.statistic.MetricEvent
使用MetricEvent的程序包
程序包
说明
-
com.alibaba.csp.sentinel.slots.statistic中MetricEvent的使用
修饰符和类型方法说明static MetricEventReturns the enum constant of this class with the specified name.static MetricEvent[]MetricEvent.values()Returns an array containing the constants of this enum class, in the order they are declared. -
com.alibaba.csp.sentinel.slots.statistic.data中MetricEvent的使用
-
com.alibaba.csp.sentinel.slots.statistic.metric中MetricEvent的使用
修饰符和类型方法说明voidArrayMetric.add(MetricEvent event, long count) doubleArrayMetric.getAvg(MetricEvent event) Get average count for provided event per second.longArrayMetric.getCurrentCount(MetricEvent event) longArrayMetric.getSum(MetricEvent event) Get total sum for provided event inintervalInSec.