Package com.faunadb.client.types
Class MetricsResponse
- java.lang.Object
-
- com.faunadb.client.types.MetricsResponse
-
public class MetricsResponse extends Object
An aggregation type which consists ofValueinstance and extra information of response. Extra information is stored in the metricsMap and can be retrieved by usinggetMetric(Metrics)method
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetricsResponse.MetricsDifferent header names that indicate the resources used in any query to faunadb server
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>getMetric(MetricsResponse.Metrics metric)Gets a specified metricValuegetValue()Gets theValuepartstatic MetricsResponseof(Value value, Map<MetricsResponse.Metrics,String> metricsMap)
-
-
-
Method Detail
-
of
public static MetricsResponse of(Value value, Map<MetricsResponse.Metrics,String> metricsMap)
-
getMetric
public Optional<String> getMetric(MetricsResponse.Metrics metric)
Gets a specified metric- Parameters:
metric- a metric user wants to retrieve- Returns:
- the metric value
-
-