Package jenkins.metrics.api
Class MetricsRootAction.Sampler.Sample
- java.lang.Object
-
- jenkins.metrics.api.MetricsRootAction.Sampler.Sample
-
- Enclosing class:
- MetricsRootAction.Sampler
public static class MetricsRootAction.Sampler.Sample extends Object
A sample.
-
-
Constructor Summary
Constructors Constructor Description Sample(long t, byte[] v)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
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
- theObjectReader
to use.- Returns:
- the JSON.
-
-