public static interface MetricDataV2.Builder extends SdkPojo, CopyableBuilder<MetricDataV2.Builder,MetricDataV2>
| Modifier and Type | Method and Description |
|---|---|
default MetricDataV2.Builder |
metric(Consumer<MetricV2.Builder> metric)
The metric name, thresholds, and metric filters of the returned metric.
|
MetricDataV2.Builder |
metric(MetricV2 metric)
The metric name, thresholds, and metric filters of the returned metric.
|
MetricDataV2.Builder |
value(Double value)
The corresponding value of the metric returned in the response.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildMetricDataV2.Builder metric(MetricV2 metric)
The metric name, thresholds, and metric filters of the returned metric.
metric - The metric name, thresholds, and metric filters of the returned metric.default MetricDataV2.Builder metric(Consumer<MetricV2.Builder> metric)
The metric name, thresholds, and metric filters of the returned metric.
This is a convenience method that creates an instance of theMetricV2.Builder avoiding the need to
create one manually via MetricV2.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to metric(MetricV2).
metric - a consumer that will call methods on MetricV2.Buildermetric(MetricV2)MetricDataV2.Builder value(Double value)
The corresponding value of the metric returned in the response.
value - The corresponding value of the metric returned in the response.Copyright © 2023. All rights reserved.