Interface MetricCollection
- All Superinterfaces:
- Iterable<MetricRecord<?>>
- All Known Implementing Classes:
- DefaultMetricCollection,- EmptyMetricCollection
An immutable collection of metrics.
- 
Method SummaryModifier and TypeMethodDescriptionchildren()default Stream<MetricCollection> childrenWithName(String name) Return all of thechildren()with a specific name.<T> List<T> metricValues(SdkMetric<T> metric) Return all the values of the given metric.name()default Stream<MetricRecord<?>> stream()Return a stream of records in this collection.Methods inherited from interface java.lang.IterableforEach, iterator, spliterator
- 
Method Details- 
nameString name()- Returns:
- The name of this metric collection.
 
- 
streamReturn a stream of records in this collection.
- 
metricValues
- 
childrenList<MetricCollection> children()- Returns:
- The child metric collections.
 
- 
childrenWithNameReturn all of thechildren()with a specific name.- Parameters:
- name- The name by which we will filter- children().
- Returns:
- The child metric collections that have the provided name.
 
- 
creationTimeInstant creationTime()- Returns:
- The time at which this collection was created.
 
 
-