| Modifier and Type | Method and Description |
|---|---|
TimeGauge.Builder<T> |
description(String description) |
TimeGauge |
register(MeterRegistry registry)
Add the time gauge to a single registry, or return an existing time gauge in that registry.
|
TimeGauge.Builder<T> |
tag(String key,
String value) |
TimeGauge.Builder<T> |
tags(Iterable<Tag> tags) |
TimeGauge.Builder<T> |
tags(String... tags) |
public TimeGauge.Builder<T> tags(String... tags)
tags - Must be an even number of arguments representing key/value pairs of tags.public TimeGauge.Builder<T> tags(Iterable<Tag> tags)
tags - Tags to add to the eventual time gauge.public TimeGauge.Builder<T> tag(String key, String value)
key - The tag key.value - The tag value.public TimeGauge.Builder<T> description(@Nullable String description)
description - Description text of the eventual time gauge.public TimeGauge register(MeterRegistry registry)
registry - A registry to add the time gauge to, if it doesn't already exist.Copyright © 2020 LeanCloud. All rights reserved.