@Target(value={ANNOTATION_TYPE,TYPE,METHOD}) @Repeatable(value=TimedSet.class) @Retention(value=RUNTIME) @Inherited public @interface Timed
| Modifier and Type | Optional Element and Description |
|---|---|
String |
description
Description of the
Timer. |
String[] |
extraTags
List of key-value pair arguments to supply the Timer as extra tags.
|
boolean |
histogram
Whether to enable recording of a percentile histogram for the
Timer. |
boolean |
longTask
Flag of whether the Timer should be a
LongTaskTimer. |
double[] |
percentiles
List of percentiles to calculate client-side for the
Timer. |
String |
value
Name of the Timer metric.
|
public abstract String value
public abstract String[] extraTags
Timer.Builder.tags(String...)public abstract boolean longTask
LongTaskTimer.public abstract double[] percentiles
Timer.
For example, the 95th percentile should be passed as 0.95.Timer.Builder.publishPercentiles(double...)public abstract boolean histogram
Timer.Timer.Builder.publishPercentileHistogram(Boolean)public abstract String description
Timer.Timer.Builder.description(String)Copyright © 2020 LeanCloud. All rights reserved.