public static interface MetricsDataSource.Builder extends SdkPojo, CopyableBuilder<MetricsDataSource.Builder,MetricsDataSource>
| Modifier and Type | Method and Description |
|---|---|
MetricsDataSource.Builder |
dimensions(Map<MetricDimensionName,? extends Collection<String>> dimensions)
An object that contains a mapping between a
MetricDimensionName and
MetricDimensionValue to filter metrics by. |
MetricsDataSource.Builder |
dimensionsWithStrings(Map<String,? extends Collection<String>> dimensions)
An object that contains a mapping between a
MetricDimensionName and
MetricDimensionValue to filter metrics by. |
MetricsDataSource.Builder |
endDate(Instant endDate)
Represents the end date for the export interval as a timestamp.
|
MetricsDataSource.Builder |
metrics(Collection<ExportMetric> metrics)
A list of
ExportMetric objects to export. |
MetricsDataSource.Builder |
metrics(Consumer<ExportMetric.Builder>... metrics)
A list of
ExportMetric objects to export. |
MetricsDataSource.Builder |
metrics(ExportMetric... metrics)
A list of
ExportMetric objects to export. |
MetricsDataSource.Builder |
namespace(MetricNamespace namespace)
The metrics namespace - e.g.,
VDM. |
MetricsDataSource.Builder |
namespace(String namespace)
The metrics namespace - e.g.,
VDM. |
MetricsDataSource.Builder |
startDate(Instant startDate)
Represents the start date for the export interval as a timestamp.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildMetricsDataSource.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.
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.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.
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.MetricsDataSource.Builder namespace(String namespace)
The metrics namespace - e.g., VDM.
namespace - The metrics namespace - e.g., VDM.MetricNamespace,
MetricNamespaceMetricsDataSource.Builder namespace(MetricNamespace namespace)
The metrics namespace - e.g., VDM.
namespace - The metrics namespace - e.g., VDM.MetricNamespace,
MetricNamespaceMetricsDataSource.Builder metrics(Collection<ExportMetric> metrics)
A list of ExportMetric objects to export.
metrics - A list of ExportMetric objects to export.MetricsDataSource.Builder metrics(ExportMetric... metrics)
A list of ExportMetric objects to export.
metrics - A list of ExportMetric objects to export.MetricsDataSource.Builder metrics(Consumer<ExportMetric.Builder>... metrics)
A list of ExportMetric objects to export.
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.
metrics - a consumer that will call methods on
ExportMetric.Builder#metrics(java.util.Collection) MetricsDataSource.Builder startDate(Instant startDate)
Represents the start date for the export interval as a timestamp.
startDate - Represents the start date for the export interval as a timestamp.MetricsDataSource.Builder endDate(Instant endDate)
Represents the end date for the export interval as a timestamp.
endDate - Represents the end date for the export interval as a timestamp.Copyright © 2023. All rights reserved.