public abstract class BaseMetric<T extends io.prometheus.client.SimpleCollector,C> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected MetricTag.Keys |
labels |
protected String |
name |
protected String |
tips |
protected MetricTag.Values |
values |
| Constructor and Description |
|---|
BaseMetric(String name,
String tips,
MetricTag.Keys labels,
MetricTag.Values values) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
create(String[] labelNames) |
protected C |
getMetric() |
protected boolean |
isIDReady() |
protected final String name
protected final String tips
protected final MetricTag.Keys labels
protected final MetricTag.Values values
public BaseMetric(String name, String tips, MetricTag.Keys labels, MetricTag.Values values)
Copyright © 2019 The Apache Software Foundation. All rights reserved.