Interface MetricsDataSource.Builder

    • Method Detail

      • dimensionsWithStrings

        MetricsDataSource.Builder dimensionsWithStrings​(Map<String,​? extends Collection<String>> dimensions)

        An object that contains a mapping between a MetricDimensionName and MetricDimensionValue to filter metrics by. Must contain a least 1 dimension but no more than 3 unique ones.

        Parameters:
        dimensions - An object that contains a mapping between a MetricDimensionName and MetricDimensionValue to filter metrics by. Must contain a least 1 dimension but no more than 3 unique ones.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dimensions

        MetricsDataSource.Builder dimensions​(Map<MetricDimensionName,​? extends Collection<String>> dimensions)

        An object that contains a mapping between a MetricDimensionName and MetricDimensionValue to filter metrics by. Must contain a least 1 dimension but no more than 3 unique ones.

        Parameters:
        dimensions - An object that contains a mapping between a MetricDimensionName and MetricDimensionValue to filter metrics by. Must contain a least 1 dimension but no more than 3 unique ones.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metrics

        MetricsDataSource.Builder metrics​(Collection<ExportMetric> metrics)

        A list of ExportMetric objects to export.

        Parameters:
        metrics - A list of ExportMetric objects to export.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metrics

        MetricsDataSource.Builder metrics​(ExportMetric... metrics)

        A list of ExportMetric objects to export.

        Parameters:
        metrics - A list of ExportMetric objects to export.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • startDate

        MetricsDataSource.Builder startDate​(Instant startDate)

        Represents the start date for the export interval as a timestamp.

        Parameters:
        startDate - Represents the start date for the export interval as a timestamp.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • endDate

        MetricsDataSource.Builder endDate​(Instant endDate)

        Represents the end date for the export interval as a timestamp.

        Parameters:
        endDate - Represents the end date for the export interval as a timestamp.
        Returns:
        Returns a reference to this object so that method calls can be chained together.