public final class DefaultMetricCollection extends Object implements MetricCollection
| Constructor and Description |
|---|
DefaultMetricCollection(String name,
Map<SdkMetric<?>,List<MetricRecord<?>>> metrics,
List<MetricCollection> children) |
| Modifier and Type | Method and Description |
|---|---|
List<MetricCollection> |
children() |
Instant |
creationTime() |
Iterator<MetricRecord<?>> |
iterator() |
<T> List<T> |
metricValues(SdkMetric<T> metric)
Return all the values of the given metric.
|
String |
name() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchildrenWithName, streamforEach, spliteratorpublic DefaultMetricCollection(String name, Map<SdkMetric<?>,List<MetricRecord<?>>> metrics, List<MetricCollection> children)
public String name()
name in interface MetricCollectionpublic <T> List<T> metricValues(SdkMetric<T> metric)
MetricCollectionmetricValues in interface MetricCollectionT - The type of the value.metric - The metric.public List<MetricCollection> children()
children in interface MetricCollectionpublic Instant creationTime()
creationTime in interface MetricCollectionpublic Iterator<MetricRecord<?>> iterator()
iterator in interface Iterable<MetricRecord<?>>Copyright © 2023. All rights reserved.