public static class FleetMetricDefinition.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
FleetMetricDefinition.Builder |
baselineValue(Double baselineValue)
The baseline value of the metric.
|
FleetMetricDefinition |
build() |
FleetMetricDefinition.Builder |
copy(FleetMetricDefinition model) |
FleetMetricDefinition.Builder |
dimensions(List<MetricDimensionDefinition> dimensions)
The dimensions of the metric.
|
FleetMetricDefinition.Builder |
metricName(String metricName)
The name of the metric.
|
FleetMetricDefinition.Builder |
percentageChange(Double percentageChange)
The percentage change in the metric aggregated value compared to the baseline value.
|
FleetMetricDefinition.Builder |
targetValue(Double targetValue)
The target value of the metric.
|
FleetMetricDefinition.Builder |
timestamp(Date timestamp)
The data point date and time in UTC in ISO-8601 format, which is
“yyyy-MM-dd’T’hh:mm:ss.sss’Z’”.
|
FleetMetricDefinition.Builder |
unit(String unit)
The unit of the value.
|
public FleetMetricDefinition.Builder metricName(String metricName)
The name of the metric.
metricName
- the value to setpublic FleetMetricDefinition.Builder baselineValue(Double baselineValue)
The baseline value of the metric.
baselineValue
- the value to setpublic FleetMetricDefinition.Builder targetValue(Double targetValue)
The target value of the metric.
targetValue
- the value to setpublic FleetMetricDefinition.Builder unit(String unit)
The unit of the value.
unit
- the value to setpublic FleetMetricDefinition.Builder timestamp(Date timestamp)
The data point date and time in UTC in ISO-8601 format, which is “yyyy-MM-dd’T’hh:mm:ss.sss’Z’”.
timestamp
- the value to setpublic FleetMetricDefinition.Builder percentageChange(Double percentageChange)
The percentage change in the metric aggregated value compared to the baseline value.
percentageChange
- the value to setpublic FleetMetricDefinition.Builder dimensions(List<MetricDimensionDefinition> dimensions)
The dimensions of the metric.
dimensions
- the value to setpublic FleetMetricDefinition build()
public FleetMetricDefinition.Builder copy(FleetMetricDefinition model)
Copyright © 2016–2024. All rights reserved.