java.lang.Object
io.helidon.metrics.serviceapi.JsonFormat
Support for creating MicroProfile JSON responses for metrics endpoints.
-
Method Summary
Modifier and TypeMethodDescriptionstatic JsonObjectJSON for a single registry.static JsonObjectCreate JSON metric response for specified registries.static JsonObjectjsonDataByName(Registry registry, String metricName) Create JSON metric response for specified metric in a specified registry.static JsonObjectCreate JSON metric metadata response for a single registry.static JsonObjectCreate JSON metric metadata response for specified registries.static voidjsonMeta(JsonObjectBuilder builder, HelidonMetric helidonMetric, List<MetricID> metricIds) Update JSON metric metadata response for specified metric and its ids.
-
Method Details
-
jsonData
Create JSON metric response for specified registries.- Parameters:
registries- registries to use- Returns:
- JSON with data of metrics
-
jsonData
JSON for a single registry.- Parameters:
registry- registry- Returns:
- JSON with data of a single registry
-
jsonDataByName
Create JSON metric response for specified metric in a specified registry.- Parameters:
registry- registrymetricName- metric name- Returns:
- JSON with data of the metric
-
jsonMeta
public static void jsonMeta(JsonObjectBuilder builder, HelidonMetric helidonMetric, List<MetricID> metricIds) Update JSON metric metadata response for specified metric and its ids.- Parameters:
builder- JSON builder to updatehelidonMetric- metric instancemetricIds- metric IDs
-
jsonMeta
Create JSON metric metadata response for specified registries.- Parameters:
registries- registries to use- Returns:
- JSON with all metadata
-
jsonMeta
Create JSON metric metadata response for a single registry.- Parameters:
registry- registry to use- Returns:
- JSON with all metadata for metrics in the specified registry
-