Class DefaultMetricCollection
java.lang.Object
software.amazon.awssdk.metrics.internal.DefaultMetricCollection
- All Implemented Interfaces:
Iterable<MetricRecord<?>>
,MetricCollection
-
Constructor Summary
ConstructorDescriptionDefaultMetricCollection
(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, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods 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:
name
in interfaceMetricCollection
- Returns:
- The name of this metric collection.
-
metricValues
Description copied from interface:MetricCollection
Return all the values of the given metric.- Specified by:
metricValues
in interfaceMetricCollection
- Type Parameters:
T
- The type of the value.- Parameters:
metric
- The metric.- Returns:
- All of the values of this metric.
-
children
- Specified by:
children
in interfaceMetricCollection
- Returns:
- The child metric collections.
-
creationTime
- Specified by:
creationTime
in interfaceMetricCollection
- Returns:
- The time at which this collection was created.
-
iterator
- Specified by:
iterator
in interfaceIterable<MetricRecord<?>>
-
toString
-