Class SummarizedMetricData.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • sampleTime

        public SummarizedMetricData.Builder sampleTime​(Date sampleTime)
        The time at which the metric data was recorded.
        Parameters:
        sampleTime - the value to set
        Returns:
        this builder
      • resolution

        public SummarizedMetricData.Builder resolution​(String resolution)
        The duration over which the metric data is aggregated.

        Supported values: 1m-60m, 1h-24h, 1d.

        Parameters:
        resolution - the value to set
        Returns:
        this builder
      • dimensions

        public SummarizedMetricData.Builder dimensions​(Map<String,​DimensionValue> dimensions)
        Qualifiers provided in the definition of the returned metric.

        Available dimensions vary by metric namespace.

        Parameters:
        dimensions - the value to set
        Returns:
        this builder
      • aggregationMethod

        public SummarizedMetricData.Builder aggregationMethod​(String aggregationMethod)
        The aggregation method used for aggregating the metric values.

        The aggregation method depends on the metric itself.

        Parameters:
        aggregationMethod - the value to set
        Returns:
        this builder
      • aggregatedValue

        public SummarizedMetricData.Builder aggregatedValue​(Float aggregatedValue)
        The aggregated metric value for the specified request.
        Parameters:
        aggregatedValue - the value to set
        Returns:
        this builder