Package com.ocient.rest
Class MetricsResponse
java.lang.Object
com.ocient.rest.MetricsResponse
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classReturns a flat array of JSON objects, each representing a metric. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricsResponseReturns a response that defers capture ofMetricvalues until JSON serialization using the com.fasterxml.jackson.databindJsonSerializer.static MetricsResponseEagerly 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
-