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 Summary
ConstructorsConstructorDescriptionDefaultMetricCollection(String name, Map<SdkMetric<?>, List<MetricRecord<?>>> metrics, List<MetricCollection> children) -
Method Summary
Modifier 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.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface software.amazon.awssdk.metrics.MetricCollection
childrenWithName, stream
-
Constructor Details
-
DefaultMetricCollection
public DefaultMetricCollection(String name, Map<SdkMetric<?>, List<MetricRecord<?>>> metrics, List<MetricCollection> children)
-
-
Method Details
-
name
- Specified by:
namein interfaceMetricCollection- Returns:
- The name of this metric collection.
-
metricValues
Description copied from interface:MetricCollectionReturn all the values of the given metric.- Specified by:
metricValuesin interfaceMetricCollection- Type Parameters:
T- The type of the value.- Parameters:
metric- The metric.- Returns:
- All of the values of this metric.
-
children
- Specified by:
childrenin interfaceMetricCollection- Returns:
- The child metric collections.
-
creationTime
- Specified by:
creationTimein interfaceMetricCollection- Returns:
- The time at which this collection was created.
-
iterator
- Specified by:
iteratorin interfaceIterable<MetricRecord<?>>
-
toString
-