Package | Description |
---|---|
org.avaje.metric |
The main public API for Avaje Metrics.
|
org.avaje.metric.spi |
The service provider API that needs to be implemented by implementors.
|
Modifier and Type | Method and Description |
---|---|
MetricName |
MetricNameCache.get(String name)
Return the MetricName from the cache creating it if required.
|
MetricName |
Metric.getName()
Return the name of the metric.
|
static MetricName |
MetricManager.name(Class<?> cls,
String name)
Create a MetricName based on a class and name.
|
static MetricName |
MetricManager.name(String name)
Create a Metric name by parsing a name that is expected to include periods (dot notation
similar to package.Class.method).
|
static MetricName |
MetricManager.name(String group,
String type,
String name)
Create a Metric name based on group, type and name.
|
MetricName |
MetricName.withSuffix(String nameSuffix)
Create and return another MetricName based on this instance with an additional suffix added to
the name.
|
Modifier and Type | Method and Description |
---|---|
static CounterMetric |
MetricManager.getCounterMetric(MetricName name)
Return a CounterMetric given the name.
|
static MetricNameCache |
MetricManager.getMetricNameCache(MetricName baseName)
Return a MetricNameCache for a given base metric name.
|
static TimedMetric |
MetricManager.getTimedMetric(MetricName name)
Return a TimedMetric given the name.
|
static BucketTimedMetric |
MetricManager.getTimedMetric(MetricName name,
int... bucketRanges)
Return a BucketTimedMetric given the name and bucket ranges.
|
static TimedMetricGroup |
MetricManager.getTimedMetricGroup(MetricName baseName)
Return the TimedMetricGroup with a based metric name.
|
static ValueMetric |
MetricManager.getValueMetric(MetricName name)
Return a ValueMetric given the name.
|
static GaugeDoubleMetric |
MetricManager.register(MetricName name,
GaugeDouble gauge)
Create and register a GaugeMetric using the gauge supplied.
|
static GaugeLongMetric |
MetricManager.register(MetricName name,
GaugeLong gauge)
Create and register a GaugeCounterMetric using the gauge supplied.
|
Modifier and Type | Method and Description |
---|---|
MetricName |
PluginMetricManager.name(Class<?> cls,
String name)
Create a MetricName based on the class and name.
|
MetricName |
PluginMetricManager.name(String name)
Create a Metric name by parsing a name that is expected to include periods.
|
MetricName |
PluginMetricManager.name(String group,
String type,
String name)
Create a Metric name based on group, type and name.
|
Modifier and Type | Method and Description |
---|---|
BucketTimedMetric |
PluginMetricManager.getBucketTimedMetric(MetricName name,
int... bucketRanges)
Return the BucketTimedMetric using the given base metric name and bucketRanges.
|
CounterMetric |
PluginMetricManager.getCounterMetric(MetricName name)
Return the CounterMetric using the metric name.
|
MetricNameCache |
PluginMetricManager.getMetricNameCache(MetricName baseName)
Return the MetricNameCache using a MetricName as a base name.
|
TimedMetric |
PluginMetricManager.getTimedMetric(MetricName name)
Return the TimedMetric using the metric name.
|
TimedMetricGroup |
PluginMetricManager.getTimedMetricGroup(MetricName baseName)
Return the TimedMetricGroup using the given base metric name.
|
ValueMetric |
PluginMetricManager.getValueMetric(MetricName name)
Return the ValueMetric using the metric name.
|
GaugeDoubleMetric |
PluginMetricManager.register(MetricName name,
GaugeDouble gauge)
Create and register a GaugeMetric using the gauge supplied (double values).
|
GaugeLongMetric |
PluginMetricManager.register(MetricName name,
GaugeLong gauge)
Create and register a GaugeCounterMetric using the gauge supplied (long values).
|
Copyright © 2014. All Rights Reserved.