public final class MetricCollectionResponseBody extends Object implements ResponseBody
As JSON this type will be represented as an array of metrics, i.e., the field metrics
will not show up. For example, a collection with a single metric will be represented as
follows:
[{"id": "metricName", "value": "1"}]
Modifier and Type | Class and Description |
---|---|
static class |
MetricCollectionResponseBody.Deserializer
JSON deserializer for
MetricCollectionResponseBody . |
static class |
MetricCollectionResponseBody.Serializer
JSON serializer for
MetricCollectionResponseBody . |
Constructor and Description |
---|
MetricCollectionResponseBody(Collection<Metric> metrics) |
Modifier and Type | Method and Description |
---|---|
Collection<Metric> |
getMetrics() |
public MetricCollectionResponseBody(Collection<Metric> metrics)
public Collection<Metric> getMetrics()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.