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"}]
 
See Also:
  • Constructor Details

    • MetricCollectionResponseBody

      public MetricCollectionResponseBody(Collection<Metric> metrics)
  • Method Details