public class MetricsWriterImpl extends Object implements MetricsWriter
| Constructor and Description |
|---|
MetricsWriterImpl(MetricExporter exporter,
Set<String> contextNames,
Function<String,MetricsService.MetricsContext> getContextByName,
org.eclipse.microprofile.metrics.Tag... globalTags) |
| Modifier and Type | Method and Description |
|---|---|
void |
write()
Write all the registered metrics
|
void |
write(org.eclipse.microprofile.metrics.MetricRegistry.Type scope)
Write the metrics that registered for the respective scope.
|
void |
write(org.eclipse.microprofile.metrics.MetricRegistry.Type scope,
String metricName)
Write the metrics that matches the metricName for the respective scope.
|
public MetricsWriterImpl(MetricExporter exporter, Set<String> contextNames, Function<String,MetricsService.MetricsContext> getContextByName, org.eclipse.microprofile.metrics.Tag... globalTags)
public void write(org.eclipse.microprofile.metrics.MetricRegistry.Type scope,
String metricName)
throws NoSuchRegistryException,
NoSuchMetricException
MetricsWriterwrite in interface MetricsWriterNoSuchRegistryExceptionNoSuchMetricExceptionpublic void write(org.eclipse.microprofile.metrics.MetricRegistry.Type scope)
throws NoSuchRegistryException
MetricsWriterwrite in interface MetricsWriterNoSuchRegistryExceptionpublic void write()
throws IOException
MetricsWriterwrite in interface MetricsWriterIOExceptionCopyright © 2021. All rights reserved.