public static class MetricsAggregationRange.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MetricsAggregationRange |
build() |
MetricsAggregationRange.Builder |
copy(MetricsAggregationRange model) |
MetricsAggregationRange.Builder |
header(DbManagementAnalyticsMetric header) |
MetricsAggregationRange.Builder |
metrics(List<DbManagementAnalyticsMetric> metrics)
The list of metrics returned for the specified request.
|
MetricsAggregationRange.Builder |
rangeEndTimeInEpochSeconds(Long rangeEndTimeInEpochSeconds)
The end of the time range (exclusive) of the returned metric data.
|
MetricsAggregationRange.Builder |
rangeStartTimeInEpochSeconds(Long rangeStartTimeInEpochSeconds)
The beginning of the time range (inclusive) of the returned metric data.
|
public MetricsAggregationRange.Builder header(DbManagementAnalyticsMetric header)
public MetricsAggregationRange.Builder metrics(List<DbManagementAnalyticsMetric> metrics)
The list of metrics returned for the specified request. Each of the metrics has a metricName
and additional properties like metadata
, dimensions
. If a
property is not set, then use the value from header
.
Suppose m
be an item in the metrics
array: - If m.metricName
is not set, use header.metricName
instead - If m.durationInSeconds
is not
set, use header.durationInSeconds
instead - If m.dimensions
is not set,
use header.dimensions
instead - If m.metadata
is not set, use header.metadata
instead
metrics
- the value to setpublic MetricsAggregationRange.Builder rangeStartTimeInEpochSeconds(Long rangeStartTimeInEpochSeconds)
The beginning of the time range (inclusive) of the returned metric data.
rangeStartTimeInEpochSeconds
- the value to setpublic MetricsAggregationRange.Builder rangeEndTimeInEpochSeconds(Long rangeEndTimeInEpochSeconds)
The end of the time range (exclusive) of the returned metric data.
rangeEndTimeInEpochSeconds
- the value to setpublic MetricsAggregationRange build()
public MetricsAggregationRange.Builder copy(MetricsAggregationRange model)
Copyright © 2016–2024. All rights reserved.