接口 AdvancedMetricExtension
- 所有超级接口:
MetricExtension
Extended
MetricExtension extending input parameters of each metric
collection method with EntryType.- 从以下版本开始:
- 1.8.0
- 作者:
- bill_yip, Eric Zhao
-
方法概要
修饰符和类型方法说明voidonBlocked(ResourceWrapper rw, int batchCount, String origin, BlockException e, Object[] args) Add current block count of the resource name.voidonComplete(ResourceWrapper rw, long rt, int batchCount, Object[] args) Add current completed count of the resource name.voidonError(ResourceWrapper rw, Throwable throwable, int batchCount, Object[] args) Add current exception count of the resource name.voidonPass(ResourceWrapper rw, int batchCount, Object[] args) Add current pass count of the resource name.从接口继承的方法 com.alibaba.csp.sentinel.metric.extension.MetricExtension
addBlock, addException, addPass, addRt, addSuccess, decreaseThreadNum, increaseThreadNum
-
方法详细资料
-
onPass
Add current pass count of the resource name.- 参数:
rw- resource representation (including resource name, traffic type, etc.)batchCount- count to addargs- additional arguments of the resource, eg. if the resource is a method name, the args will be the parameters of the method.
-
onBlocked
Add current block count of the resource name.- 参数:
rw- resource representation (including resource name, traffic type, etc.)batchCount- count to addorigin- the origin of caller (if present)e- the associatedBlockExceptionargs- additional arguments of the resource, eg. if the resource is a method name, the args will be the parameters of the method.
-
onComplete
Add current completed count of the resource name.- 参数:
rw- resource representation (including resource name, traffic type, etc.)batchCount- count to addrt- response time of current invocationargs- additional arguments of the resource
-
onError
Add current exception count of the resource name.- 参数:
rw- resource representation (including resource name, traffic type, etc.)batchCount- count to addthrowable- exception related.args- additional arguments of the resource
-