Class MetricCollectionResponseBody
- java.lang.Object
-
- org.apache.flink.runtime.rest.messages.job.metrics.MetricCollectionResponseBody
-
- All Implemented Interfaces:
ResponseBody
public final class MetricCollectionResponseBody extends Object implements ResponseBody
Response type for a collection of metrics.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"}]
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MetricCollectionResponseBody.Deserializer
JSON deserializer forMetricCollectionResponseBody
.static class
MetricCollectionResponseBody.Serializer
JSON serializer forMetricCollectionResponseBody
.
-
Constructor Summary
Constructors Constructor Description MetricCollectionResponseBody(Collection<Metric> metrics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Metric>
getMetrics()
-
-
-
Constructor Detail
-
MetricCollectionResponseBody
public MetricCollectionResponseBody(Collection<Metric> metrics)
-
-
Method Detail
-
getMetrics
public Collection<Metric> getMetrics()
-
-