public class MetricsWriterImpl extends Object implements MetricsWriter
| Constructor and Description |
|---|
MetricsWriterImpl(MetricExporter exporter,
Supplier<Set<String>> registryNames,
Function<String,org.eclipse.microprofile.metrics.MetricRegistry> getMetricsRegistryByName) |
| 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 registryName.
|
void |
write(org.eclipse.microprofile.metrics.MetricRegistry.Type scope,
String metricName)
Write the metrics that matches the metricName for the respective registryName.
|
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 © 2020. All rights reserved.