Package io.smallrye.metrics.exporters
Class JsonExporter
- java.lang.Object
-
- io.smallrye.metrics.exporters.JsonExporter
-
-
Constructor Summary
Constructors Constructor Description JsonExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringBuilderexportAllScopes()StringBuilderexportMetricsByName(org.eclipse.microprofile.metrics.MetricRegistry.Type scope, String name)Exports all metrics with the given name inside the given scope.StringBuilderexportOneMetric(org.eclipse.microprofile.metrics.MetricRegistry.Type scope, org.eclipse.microprofile.metrics.MetricID metricID)Exports just one metric obtained from a scope using its MetricID.StringBuilderexportOneScope(org.eclipse.microprofile.metrics.MetricRegistry.Type scope)StringgetContentType()
-
-
-
Method Detail
-
exportOneScope
public StringBuilder exportOneScope(org.eclipse.microprofile.metrics.MetricRegistry.Type scope)
- Specified by:
exportOneScopein interfaceExporter
-
exportAllScopes
public StringBuilder exportAllScopes()
- Specified by:
exportAllScopesin interfaceExporter
-
exportOneMetric
public StringBuilder exportOneMetric(org.eclipse.microprofile.metrics.MetricRegistry.Type scope, org.eclipse.microprofile.metrics.MetricID metricID)
Description copied from interface:ExporterExports just one metric obtained from a scope using its MetricID.- Specified by:
exportOneMetricin interfaceExporter
-
exportMetricsByName
public StringBuilder exportMetricsByName(org.eclipse.microprofile.metrics.MetricRegistry.Type scope, String name)
Description copied from interface:ExporterExports all metrics with the given name inside the given scope.- Specified by:
exportMetricsByNamein interfaceExporter
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceExporter
-
-