Class PostMetricDataDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • metricData

        public PostMetricDataDetails.Builder metricData​(List<MetricDataDetails> metricData)
        A metric object containing raw metric data points to be posted to the Monitoring service.
        Parameters:
        metricData - the value to set
        Returns:
        this builder
      • batchAtomicity

        public 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

        Parameters:
        batchAtomicity - the value to set
        Returns:
        this builder