Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Metric |
build() |
Metric.Builder |
copy(Metric model) |
Metric.Builder |
description(String description)
A description of the metric.
|
Metric.Builder |
name(String name)
The name of the metric.
|
Metric.Builder |
unit(String unit)
The unit of the metric.
|
Metric.Builder |
valueSource(String valueSource)
This must not be set.
|
public Metric.Builder name(String name)
The name of the metric. This must be a known metric name.
name
- the value to setpublic Metric.Builder valueSource(String valueSource)
This must not be set.
valueSource
- the value to setpublic Metric.Builder unit(String unit)
The unit of the metric.
unit
- the value to setpublic Metric.Builder description(String description)
A description of the metric.
description
- the value to setpublic Metric build()
public Metric.Builder copy(Metric model)
Copyright © 2016–2024. All rights reserved.