Package org.apache.dubbo.metrics.model
Class MetricsSupport
java.lang.Object
org.apache.dubbo.metrics.model.MetricsSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationTags(ApplicationModel applicationModel) applicationTags(ApplicationModel applicationModel, Map<String, String> extraInfo) static voiddec(MetricsKey metricsKey, MetricsPlaceValue placeType, MethodMetricsCollector<TimeCounterEvent> collector, MetricsEvent event) Dec method numstatic <T> voidfillZero(Map<?, Map<T, AtomicLong>> data) Generate a complete indicator item for an interface/methodstatic MetricsKeygetAggMetricsKey(Throwable throwable) static StringgetGroup(Invocation invocation) static StringgetInterfaceName(Invocation invocation) static MetricsKeygetMetricsKey(Throwable throwable) static StringgetSide(Invocation invocation) static StringgetVersion(Invocation invocation) static voidincrAndAddRt(MetricsKey metricsKey, MetricsPlaceValue placeType, MethodMetricsCollector<TimeCounterEvent> collector, TimeCounterEvent event) Incr method numinvalid input: '&'invalid input: '&rt'static voidincrAndAddRt(MetricsKey metricsKey, MetricsPlaceValue placeType, ServiceMetricsCollector<TimeCounterEvent> collector, TimeCounterEvent event) Incr service numinvalid input: '&'invalid input: '&rt'static voidincrement(MetricsKey metricsKey, MetricsPlaceValue placeType, MethodMetricsCollector<TimeCounterEvent> collector, MetricsEvent event) Incr method numstatic voidincrement(MetricsKey metricsKey, MetricsPlaceValue placeType, ServiceMetricsCollector<TimeCounterEvent> collector, MetricsEvent event) Incr service numstatic voidinit(MetricsKey metricsKey, MetricsPlaceValue placeType, MethodMetricsCollector<TimeCounterEvent> collector, MetricsEvent event) methodTags(ApplicationModel applicationModel, String serviceKey, String methodName) serviceTags(ApplicationModel applicationModel, String serviceKey, Map<String, String> extraInfo)
-
Constructor Details
-
MetricsSupport
public MetricsSupport()
-
-
Method Details
-
applicationTags
-
applicationTags
-
serviceTags
-
methodTags
-
getMetricsKey
-
getAggMetricsKey
-
getSide
-
getInterfaceName
-
getGroup
-
getVersion
-
increment
public static void increment(MetricsKey metricsKey, MetricsPlaceValue placeType, ServiceMetricsCollector<TimeCounterEvent> collector, MetricsEvent event) Incr service num -
incrAndAddRt
public static void incrAndAddRt(MetricsKey metricsKey, MetricsPlaceValue placeType, ServiceMetricsCollector<TimeCounterEvent> collector, TimeCounterEvent event) Incr service numinvalid input: '&'invalid input: '&rt' -
increment
public static void increment(MetricsKey metricsKey, MetricsPlaceValue placeType, MethodMetricsCollector<TimeCounterEvent> collector, MetricsEvent event) Incr method num -
init
public static void init(MetricsKey metricsKey, MetricsPlaceValue placeType, MethodMetricsCollector<TimeCounterEvent> collector, MetricsEvent event) -
dec
public static void dec(MetricsKey metricsKey, MetricsPlaceValue placeType, MethodMetricsCollector<TimeCounterEvent> collector, MetricsEvent event) Dec method num -
incrAndAddRt
public static void incrAndAddRt(MetricsKey metricsKey, MetricsPlaceValue placeType, MethodMetricsCollector<TimeCounterEvent> collector, TimeCounterEvent event) Incr method numinvalid input: '&'invalid input: '&rt' -
fillZero
Generate a complete indicator item for an interface/method
-