Class Metric.Builder
- java.lang.Object
- 
- com.oracle.bmc.stackmonitoring.model.Metric.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Metricbuild()Metric.BuildercomputeExpression(String computeExpression)Compute Expression to calculate the value of this metricMetric.Buildercopy(Metric model)Metric.BuilderdataType(Metric.DataType dataType)Data type of value of this metricMetric.BuilderdisplayName(String displayName)Display name of the metric.Metric.BuilderisDimension(Boolean isDimension)Current metric need to be included as dimension or notMetric.BuilderisHidden(Boolean isHidden)Flag to marks whether a metric has to be uploaded or not.Metric.BuildermetricCategory(Metric.MetricCategory metricCategory)Metric categoryMetric.Buildername(String name)Name of the metric.Metric.Builderunit(String unit)Unit of metric value
 
- 
- 
- 
Method Detail- 
namepublic Metric.Builder name(String name) Name of the metric.- Parameters:
- name- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic Metric.Builder displayName(String displayName) Display name of the metric.- Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
isDimensionpublic Metric.Builder isDimension(Boolean isDimension) Current metric need to be included as dimension or not- Parameters:
- isDimension- the value to set
- Returns:
- this builder
 
 - 
computeExpressionpublic Metric.Builder computeExpression(String computeExpression) Compute Expression to calculate the value of this metric- Parameters:
- computeExpression- the value to set
- Returns:
- this builder
 
 - 
dataTypepublic Metric.Builder dataType(Metric.DataType dataType) Data type of value of this metric- Parameters:
- dataType- the value to set
- Returns:
- this builder
 
 - 
isHiddenpublic 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 - Parameters:
- isHidden- the value to set
- Returns:
- this builder
 
 - 
metricCategorypublic Metric.Builder metricCategory(Metric.MetricCategory metricCategory) Metric category- Parameters:
- metricCategory- the value to set
- Returns:
- this builder
 
 - 
unitpublic Metric.Builder unit(String unit) Unit of metric value- Parameters:
- unit- the value to set
- Returns:
- this builder
 
 - 
buildpublic Metric build() 
 - 
copypublic Metric.Builder copy(Metric model) 
 
- 
 
-