Class DefaultMetricCollection
java.lang.Object
software.amazon.awssdk.metrics.internal.DefaultMetricCollection
- All Implemented Interfaces:
- Iterable<MetricRecord<?>>,- MetricCollection
@SdkInternalApi
public final class DefaultMetricCollection
extends Object
implements MetricCollection
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultMetricCollection(String name, Map<SdkMetric<?>, List<MetricRecord<?>>> metrics, List<MetricCollection> children) 
- 
Method SummaryModifier and TypeMethodDescriptionchildren()Iterator<MetricRecord<?>> iterator()<T> List<T> metricValues(SdkMetric<T> metric) Return all the values of the given metric.name()toString()Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface software.amazon.awssdk.metrics.MetricCollectionchildrenWithName, stream
- 
Constructor Details- 
DefaultMetricCollectionpublic DefaultMetricCollection(String name, Map<SdkMetric<?>, List<MetricRecord<?>>> metrics, List<MetricCollection> children) 
 
- 
- 
Method Details- 
name- Specified by:
- namein interface- MetricCollection
- Returns:
- The name of this metric collection.
 
- 
metricValuesDescription copied from interface:MetricCollectionReturn all the values of the given metric.- Specified by:
- metricValuesin interface- MetricCollection
- Type Parameters:
- T- The type of the value.
- Parameters:
- metric- The metric.
- Returns:
- All of the values of this metric.
 
- 
children- Specified by:
- childrenin interface- MetricCollection
- Returns:
- The child metric collections.
 
- 
creationTime- Specified by:
- creationTimein interface- MetricCollection
- Returns:
- The time at which this collection was created.
 
- 
iterator- Specified by:
- iteratorin interface- Iterable<MetricRecord<?>>
 
- 
toString
 
-