Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Metric |
build() |
Metric.Builder |
computeExpression(String computeExpression)
Compute Expression to calculate the value of this metric
|
Metric.Builder |
copy(Metric model) |
Metric.Builder |
dataType(Metric.DataType dataType)
Data type of value of this metric
|
Metric.Builder |
displayName(String displayName)
Display name of the metric.
|
Metric.Builder |
isDimension(Boolean isDimension)
Current metric need to be included as dimension or not
|
Metric.Builder |
isHidden(Boolean isHidden)
Flag to marks whether a metric has to be uploaded or not.
|
Metric.Builder |
metricCategory(Metric.MetricCategory metricCategory)
Metric category
|
Metric.Builder |
name(String name)
Name of the metric.
|
Metric.Builder |
unit(String unit)
Unit of metric value
|
public Metric.Builder name(String name)
Name of the metric.
name
- the value to setpublic Metric.Builder displayName(String displayName)
Display name of the metric.
displayName
- the value to setpublic Metric.Builder isDimension(Boolean isDimension)
Current metric need to be included as dimension or not
isDimension
- the value to setpublic Metric.Builder computeExpression(String computeExpression)
Compute Expression to calculate the value of this metric
computeExpression
- the value to setpublic Metric.Builder dataType(Metric.DataType dataType)
Data type of value of this metric
dataType
- the value to setpublic Metric.Builder isHidden(Boolean isHidden)
Flag to marks whether a metric has to be uploaded or not. When isHidden = false -> Metric is uploaded, isHidden = true -> Metric is NOT uploaded
isHidden
- the value to setpublic Metric.Builder metricCategory(Metric.MetricCategory metricCategory)
Metric category
metricCategory
- the value to setpublic Metric.Builder unit(String unit)
Unit of metric value
unit
- the value to setpublic Metric build()
public Metric.Builder copy(Metric model)
Copyright © 2016–2024. All rights reserved.