public static interface Metric.Builder extends SdkPojo, CopyableBuilder<Metric.Builder,Metric>
| Modifier and Type | Method and Description |
|---|---|
Metric.Builder |
dimensions(Collection<Dimension> dimensions)
The dimensions for the metric.
|
Metric.Builder |
dimensions(Consumer<Dimension.Builder>... dimensions)
The dimensions for the metric.
|
Metric.Builder |
dimensions(Dimension... dimensions)
The dimensions for the metric.
|
Metric.Builder |
metricName(String metricName)
The name of the metric.
|
Metric.Builder |
namespace(String namespace)
The namespace of the metric.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildMetric.Builder namespace(String namespace)
The namespace of the metric.
namespace - The namespace of the metric.Metric.Builder metricName(String metricName)
The name of the metric. This is a required field.
metricName - The name of the metric. This is a required field.Metric.Builder dimensions(Collection<Dimension> dimensions)
The dimensions for the metric.
dimensions - The dimensions for the metric.Metric.Builder dimensions(Dimension... dimensions)
The dimensions for the metric.
dimensions - The dimensions for the metric.Metric.Builder dimensions(Consumer<Dimension.Builder>... dimensions)
The dimensions for the metric.
This is a convenience method that creates an instance of theDimension.Builder avoiding the need to create one
manually via Dimension.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #dimensions(List.
dimensions - a consumer that will call methods on
Dimension.Builder#dimensions(java.util.Collection) Copyright © 2023. All rights reserved.