Package com.ocient.rest
Class MetricsResponse
java.lang.Object
com.ocient.rest.MetricsResponse
public class MetricsResponse extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetricsResponse.SerializerReturns a flat array of JSON objects, each representing a metric. -
Method Summary
Modifier and Type Method Description static MetricsResponsedelayed(List<Metric<?>> metrics)Returns a response that defers capture ofMetricvalues until JSON serialization using the com.fasterxml.jackson.databindJsonSerializer.static MetricsResponsesnapshot(List<Metric<?>> metrics)Eagerly snapshots the current values for allMetrics.
-
Method Details
-
delayed
Returns a response that defers capture ofMetricvalues until JSON serialization using the com.fasterxml.jackson.databindJsonSerializer.- Parameters:
metrics- the list ofMetrics- Returns:
- the response object
-
snapshot
Eagerly snapshots the current values for allMetrics.- Parameters:
metrics- the list ofMetrics- Returns:
- the response object
-