Interface StatusSnapshot
public interface StatusSnapshot
A StatusSnapshot represents a Component's status report at some point in time
-
Method Summary
Modifier and TypeMethodDescriptionSet<MetricDescriptor<?>> getStatusMetric(MetricDescriptor<?> descriptor) Returns an instance of StatusSnapshot that has all the same information asthisexcept for Counters.
-
Method Details
-
getTimestamp
Date getTimestamp()- Returns:
- the point in time for which the status values were obtained
-
getMetricDescriptors
Set<MetricDescriptor<?>> getMetricDescriptors() -
getStatusMetric
-
withoutCounters
StatusSnapshot withoutCounters()Returns an instance of StatusSnapshot that has all the same information asthisexcept for Counters. Ifthisdoes not contain any counters, the object returned may (or may not) bethis.- Returns:
- a StatusSnapshot without counters
-
getValueReducer
ValueReducer<StatusSnapshot,StatusSnapshot> getValueReducer()- Returns:
- a
ValueReducerthat is capable of merging multiple StatusSnapshot objects into a single one
-