| Package | Description |
|---|---|
| com.alibaba.csp.sentinel.slots.statistic | |
| com.alibaba.csp.sentinel.slots.statistic.data | |
| com.alibaba.csp.sentinel.slots.statistic.metric |
| Modifier and Type | Method and Description |
|---|---|
static MetricEvent |
MetricEvent.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricEvent[] |
MetricEvent.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
MetricBucket |
MetricBucket.add(MetricEvent event,
long n) |
long |
MetricBucket.get(MetricEvent event) |
| Modifier and Type | Method and Description |
|---|---|
void |
ArrayMetric.add(MetricEvent event,
long count) |
double |
ArrayMetric.getAvg(MetricEvent event)
Get average count for provided event per second.
|
long |
ArrayMetric.getCurrentCount(MetricEvent event) |
long |
ArrayMetric.getSum(MetricEvent event)
Get total sum for provided event in
intervalInSec. |
Copyright © 2021 Alibaba Group. All rights reserved.