Interface MetricsDataSource.Builder

  • Method Details

    • 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

      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.
    • namespace

      MetricsDataSource.Builder namespace(String namespace)

      The metrics namespace - e.g., VDM.

      Parameters:
      namespace - The metrics namespace - e.g., VDM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • namespace

      The metrics namespace - e.g., VDM.

      Parameters:
      namespace - The metrics namespace - e.g., VDM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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

      A list of ExportMetric objects to export.

      This is a convenience method that creates an instance of the ExportMetric.Builder avoiding the need to create one manually via ExportMetric.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to metrics(List<ExportMetric>).

      Parameters:
      metrics - a consumer that will call methods on ExportMetric.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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.