public interface MetricCollection extends Iterable<MetricRecord<?>>
| Modifier and Type | Method and Description |
|---|---|
List<MetricCollection> |
children() |
default Stream<MetricCollection> |
childrenWithName(String name)
Return all of the
children() with a specific name. |
Instant |
creationTime() |
<T> List<T> |
metricValues(SdkMetric<T> metric)
Return all the values of the given metric.
|
String |
name() |
default Stream<MetricRecord<?>> |
stream()
Return a stream of records in this collection.
|
forEach, iterator, spliteratorString name()
default Stream<MetricRecord<?>> stream()
<T> List<T> metricValues(SdkMetric<T> metric)
T - The type of the value.metric - The metric.List<MetricCollection> children()
default Stream<MetricCollection> childrenWithName(String name)
children() with a specific name.name - The name by which we will filter children().Instant creationTime()
Copyright © 2021. All rights reserved.