Package jenkins.metrics.api
Class MetricsRootAction.Sampler.Sample
java.lang.Object
jenkins.metrics.api.MetricsRootAction.Sampler.Sample
- Enclosing class:
- MetricsRootAction.Sampler
A sample.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Sample
public Sample(long t, @NonNull byte[] v) Constructor.- Parameters:
t
- the time of the sample.v
- the compressed JSON bytes.
-
-
Method Details
-
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
- theObjectReader
to use.- Returns:
- the JSON.
-