public static class MetricsRootAction.Sampler.Sample extends Object
Constructor and Description |
---|
Sample(long t,
byte[] v)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Date |
getTime()
Gets the time the sample was taken.
|
com.fasterxml.jackson.databind.JsonNode |
getValue(com.fasterxml.jackson.databind.ObjectReader reader)
Gets the JSON from the sample.
|
public Sample(long t, @NonNull byte[] v)
t
- the time of the sample.v
- the compressed JSON bytes.@NonNull public Date getTime()
@CheckForNull public com.fasterxml.jackson.databind.JsonNode getValue(@NonNull com.fasterxml.jackson.databind.ObjectReader reader)
reader
- the ObjectReader
to use.Copyright © 2016–2019. All rights reserved.