Class MetricsResponse

java.lang.Object
com.ocient.rest.MetricsResponse

public class MetricsResponse extends Object
  • Method Details

    • delayed

      public static MetricsResponse delayed(List<Metric<?>> metrics)
      Returns a response that defers capture of Metric values until JSON serialization using the com.fasterxml.jackson.databind JsonSerializer.
      Parameters:
      metrics - the list of Metrics
      Returns:
      the response object
    • snapshot

      public static MetricsResponse snapshot(List<Metric<?>> metrics)
      Eagerly snapshots the current values for all Metrics.
      Parameters:
      metrics - the list of Metrics
      Returns:
      the response object