| 程序包 | 说明 |
|---|---|
| com.alipay.lookout.api | |
| com.alipay.lookout.api.composite | |
| com.alipay.lookout.common.top |
| 限定符和类型 | 方法和说明 |
|---|---|
Id |
NoopRegistry.createId(String name) |
Id |
Registry.createId(String name)
Generate an identifier for a metric.
|
Id |
MetricRegistry.createId(String name) |
Id |
NoopRegistry.createId(String name,
Iterable<Tag> tags) |
Id |
Registry.createId(String name,
Iterable<Tag> tags)
Generate an identifier for a metric.
|
Id |
MetricRegistry.createId(String name,
Iterable<Tag> tags) |
Id |
NoopRegistry.createId(String name,
Map<String,String> tags) |
Id |
Registry.createId(String name,
Map<String,String> tags) |
Id |
MetricRegistry.createId(String name,
Map<String,String> tags)
Creates an identifier for a meter.
|
Id |
Indicator.id() |
Id |
NoopMixinMetric.id() |
Id |
Metric.id()
Identifier used to lookup this metric in the registry.
|
Id |
Id.withTag(String k,
String v) |
Id |
Id.withTag(Tag t) |
Id |
Id.withTags(Iterable<Tag> tags) |
Id |
Id.withTags(Map<String,String> tags)
add tags
|
Id |
Id.withTags(Tag... tags) |
| 限定符和类型 | 方法和说明 |
|---|---|
Counter |
NoopRegistry.counter(Id id) |
Counter |
Registry.counter(Id id)
Measures the rate of some activity.
|
DistributionSummary |
NoopRegistry.distributionSummary(Id id) |
DistributionSummary |
Registry.distributionSummary(Id id)
Measures the rate and variation in amount for some activity.
|
<T extends Number> |
NoopRegistry.gauge(Id id,
Gauge<T> gauge) |
<T extends Number> |
Registry.gauge(Id id,
Gauge<T> gauge)
Register a gauge instance
|
Metric |
NoopRegistry.get(Id id) |
<X extends Metric> |
Registry.get(Id id)
Returns the metric associated with a given id.
|
static String |
Utils.getTagValue(Id id,
String tagKey)
get the value of a tag which belongs to an id.
|
<I,Y extends Info<I>> |
NoopRegistry.info(Id id,
Y info) |
<I,Y extends Info<I>> |
Registry.info(Id id,
Y info)
Register a info instance
|
MixinMetric |
NoopRegistry.mixinMetric(Id id) |
MixinMetric |
Registry.mixinMetric(Id id)
Generate a mixinMetric
|
void |
NoopRegistry.removeMetric(Id id) |
void |
Registry.removeMetric(Id id)
Remove a metric by id.
|
Timer |
NoopRegistry.timer(Id id) |
Timer |
Registry.timer(Id id)
Measures the rate and time taken for short running tasks.
|
| 构造器和说明 |
|---|
Indicator(long timestamp,
Id id) |
Indicator(long timestamp,
Id id,
T value) |
| 限定符和类型 | 方法和说明 |
|---|---|
Counter |
CompositeRegistry.counter(Id id) |
DistributionSummary |
CompositeRegistry.distributionSummary(Id id) |
<T extends Number> |
CompositeRegistry.gauge(Id id,
Gauge<T> gauge) |
<X extends Metric> |
CompositeRegistry.get(Id id) |
<I,Y extends Info<I>> |
CompositeRegistry.info(Id id,
Y info) |
MixinMetric |
CompositeRegistry.mixinMetric(Id id) |
void |
CompositeRegistry.removeMetric(Id id) |
Timer |
CompositeRegistry.timer(Id id) |
| 限定符和类型 | 方法和说明 |
|---|---|
static TopGauger |
TopUtil.topGauger(Registry registry,
Id id,
int maxNumber)
新创建一个 TopGuager 实例,不用重复创建相同的 TopGuager,需要复用;
「默认降序」;
|
static TopGauger |
TopUtil.topGauger(Registry registry,
Id id,
int maxNumber,
TopUtil.Order order) |
Copyright © 2018. All rights reserved.