public static interface MetricResultV2.Builder extends SdkPojo, CopyableBuilder<MetricResultV2.Builder,MetricResultV2>
| Modifier and Type | Method and Description |
|---|---|
MetricResultV2.Builder |
collections(Collection<MetricDataV2> collections)
The set of metrics.
|
MetricResultV2.Builder |
collections(Consumer<MetricDataV2.Builder>... collections)
The set of metrics.
|
MetricResultV2.Builder |
collections(MetricDataV2... collections)
The set of metrics.
|
MetricResultV2.Builder |
dimensions(Map<String,String> dimensions)
The dimension for the metrics.
|
default MetricResultV2.Builder |
metricInterval(Consumer<MetricInterval.Builder> metricInterval)
The interval period with the start and end time for the metrics.
|
MetricResultV2.Builder |
metricInterval(MetricInterval metricInterval)
The interval period with the start and end time for the metrics.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildMetricResultV2.Builder dimensions(Map<String,String> dimensions)
The dimension for the metrics.
dimensions - The dimension for the metrics.MetricResultV2.Builder metricInterval(MetricInterval metricInterval)
The interval period with the start and end time for the metrics.
metricInterval - The interval period with the start and end time for the metrics.default MetricResultV2.Builder metricInterval(Consumer<MetricInterval.Builder> metricInterval)
The interval period with the start and end time for the metrics.
This is a convenience method that creates an instance of theMetricInterval.Builder avoiding the need
to create one manually via MetricInterval.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to metricInterval(MetricInterval).
metricInterval - a consumer that will call methods on MetricInterval.BuildermetricInterval(MetricInterval)MetricResultV2.Builder collections(Collection<MetricDataV2> collections)
The set of metrics.
collections - The set of metrics.MetricResultV2.Builder collections(MetricDataV2... collections)
The set of metrics.
collections - The set of metrics.MetricResultV2.Builder collections(Consumer<MetricDataV2.Builder>... collections)
The set of metrics.
This is a convenience method that creates an instance of theMetricDataV2.Builder avoiding the need to create one
manually via MetricDataV2.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #collections(List.
collections - a consumer that will call methods on
MetricDataV2.Builder#collections(java.util.Collection) Copyright © 2023. All rights reserved.