Class MetricsRootAction.Sampler.Sample

    • Constructor Detail

      • Sample

        public Sample​(long t,
                      @NonNull
                      byte[] v)
        Constructor.
        Parameters:
        t - the time of the sample.
        v - the compressed JSON bytes.
    • Method Detail

      • getTime

        @NonNull
        public Date getTime()
        Gets the time the sample was taken.
        Returns:
        the time the sample was taken.
      • getValue

        @CheckForNull
        public com.fasterxml.jackson.databind.JsonNode getValue​(@NonNull
                                                                com.fasterxml.jackson.databind.ObjectReader reader)
        Gets the JSON from the sample.
        Parameters:
        reader - the ObjectReader to use.
        Returns:
        the JSON.