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 ofValue
instance 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 class
MetricsResponse.Metrics
Different 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 metricValue
getValue()
Gets theValue
partstatic MetricsResponse
of(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
-
-