Package jenkins.metrics.api
Class Metrics.HealthCheckData
java.lang.Object
jenkins.metrics.api.Metrics.HealthCheckData
- Enclosing class:
- Metrics
Health check data.
-
Constructor Summary
ConstructorsConstructorDescriptionHealthCheckData
(SortedMap<String, com.codahale.metrics.health.HealthCheck.Result> results) Constructor for when you do not know how long before the next collection.HealthCheckData
(SortedMap<String, com.codahale.metrics.health.HealthCheck.Result> results, long nextMillis) Constructor for when you know how long before the next collection. -
Method Summary
Modifier and TypeMethodDescriptionThe number of milliseconds since 1st January 1970 GMT when the results are expected to be superceded by a newer result.long
The number of milliseconds since 1st January 1970 GMT when the results were collected.The results.
-
Constructor Details
-
HealthCheckData
public HealthCheckData(@NonNull SortedMap<String, com.codahale.metrics.health.HealthCheck.Result> results, long nextMillis) Constructor for when you know how long before the next collection.- Parameters:
results
- the current results.nextMillis
- how long until the next results will be available.
-
HealthCheckData
public HealthCheckData(@NonNull SortedMap<String, com.codahale.metrics.health.HealthCheck.Result> results) Constructor for when you do not know how long before the next collection.- Parameters:
results
- the current results.
-
-
Method Details
-
getLastModified
public long getLastModified()The number of milliseconds since 1st January 1970 GMT when the results were collected.- Returns:
- The number of milliseconds since 1st January 1970 GMT when the results were collected.
-
getExpires
The number of milliseconds since 1st January 1970 GMT when the results are expected to be superceded by a newer result.- Returns:
- The number of milliseconds since 1st January 1970 GMT when the results are expected to be
superceded by a newer result or
null
-
getResults
The results.- Returns:
- the results.
-