public static class MySqlFleetMetricDefinition.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MySqlFleetMetricDefinition |
build() |
MySqlFleetMetricDefinition.Builder |
copy(MySqlFleetMetricDefinition model) |
MySqlFleetMetricDefinition.Builder |
dimensions(List<MetricDimensionDefinition> dimensions)
The dimensions of the metric.
|
MySqlFleetMetricDefinition.Builder |
metricName(String metricName)
The name of the metric.
|
MySqlFleetMetricDefinition.Builder |
metricValue(Integer metricValue)
The value of the metric.
|
MySqlFleetMetricDefinition.Builder |
metricValueDouble(Double metricValueDouble)
The value of the metric.
|
MySqlFleetMetricDefinition.Builder |
timestamp(Date timestamp)
The data point date and time in UTC in ISO-8601 format.
|
MySqlFleetMetricDefinition.Builder |
unit(String unit)
The unit of the metric value.
|
public MySqlFleetMetricDefinition.Builder metricValue(Integer metricValue)
The value of the metric.
metricValue
- the value to setpublic MySqlFleetMetricDefinition.Builder metricValueDouble(Double metricValueDouble)
The value of the metric.
metricValueDouble
- the value to setpublic MySqlFleetMetricDefinition.Builder metricName(String metricName)
The name of the metric.
metricName
- the value to setpublic MySqlFleetMetricDefinition.Builder timestamp(Date timestamp)
The data point date and time in UTC in ISO-8601 format.
timestamp
- the value to setpublic MySqlFleetMetricDefinition.Builder dimensions(List<MetricDimensionDefinition> dimensions)
The dimensions of the metric.
dimensions
- the value to setpublic MySqlFleetMetricDefinition.Builder unit(String unit)
The unit of the metric value.
unit
- the value to setpublic MySqlFleetMetricDefinition build()
public MySqlFleetMetricDefinition.Builder copy(MySqlFleetMetricDefinition model)
Copyright © 2016–2024. All rights reserved.