public static class PostMetricDataDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PostMetricDataDetails.Builder |
batchAtomicity(PostMetricDataDetails.BatchAtomicity batchAtomicity)
Batch atomicity behavior.
|
PostMetricDataDetails |
build() |
PostMetricDataDetails.Builder |
copy(PostMetricDataDetails model) |
PostMetricDataDetails.Builder |
metricData(List<MetricDataDetails> metricData)
A metric object containing raw metric data points to be posted to the Monitoring service.
|
public PostMetricDataDetails.Builder metricData(List<MetricDataDetails> metricData)
A metric object containing raw metric data points to be posted to the Monitoring service.
metricData
- the value to setpublic PostMetricDataDetails.Builder batchAtomicity(PostMetricDataDetails.BatchAtomicity batchAtomicity)
Batch atomicity behavior. Requires either partial or full pass of input validation for metric objects in PostMetricData requests. The default value of NON_ATOMIC requires a partial pass: at least one metric object in the request must pass input validation, and any objects that failed validation are identified in the returned summary, along with their error messages. A value of ATOMIC requires a full pass: all metric objects in the request must pass input validation.
Example: NON_ATOMIC
batchAtomicity
- the value to setpublic PostMetricDataDetails build()
public PostMetricDataDetails.Builder copy(PostMetricDataDetails model)
Copyright © 2016–2024. All rights reserved.